Bug 821460 - Mistake in documentation of Modify Command in Drools Integration User Guide
Summary: Mistake in documentation of Modify Command in Drools Integration User Guide
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: Documentation
Version: BRMS 5.3.0.GA
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: lcarlon
QA Contact: Andrew Ross
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-14 14:54 UTC by Radovan Synek
Modified: 2013-10-20 22:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-16 23:22:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.