Bug 821460

Summary: Mistake in documentation of Modify Command in Drools Integration User Guide
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Radovan Synek <rsynek>
Component: DocumentationAssignee: lcarlon <lcarlon>
Status: CLOSED NOTABUG QA Contact: Andrew Ross <anross>
Severity: low Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GACC: atangrin, brms-jira, mdoyle, rwagner
Target Milestone: ---Keywords: Documentation
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-16 23:22:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Radovan Synek 2012-05-14 14:54:45 UTC
http://docs.jboss.org/drools/release/5.3.0.Final/droolsjbpm-integration-docs/html_single/#d0e1177

JAXB:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<batch-execution lookup="ksession1">
    <modify fact-handle="0:234:345:456:567">
        <set value="30" accessor="age"/>
    </modify>
</batch-execution>

This command format gives me NPE in org.drools.command.runtime.rule.ModifyCommand.getMvelExpr() because setters are null. Instead, using Command API and marshalling works fine, but the marshalled command is different:

<batch-execution>
  <modify fact-handle="...">
    <setters>
      <item accessor="name" value="..."/>
      <item accessor="age" value="..."/>
    </setters>
  </modify>
</batch-execution>

Comment 1 lcarlon 2012-05-16 23:22:41 UTC
Hi Ryan, 

This issue needs to be raised against the community docs. The integration docs are not (yet) part of the BRMS docs.

Thanks
Lee