[
http://jira.jboss.com/jira/browse/JBESB-1586?page=all ]
Daniel Bevenius closed JBESB-1586.
----------------------------------
Resolution: Done
Committed to main trunk with revision 20225.
Committed to JBESB_4_2_1_GA_CP branch with revision 20224.
Added read, write access to customer firstname, lastName and status.
I needed to update processessdefinition.xml and the node named "Calculate
Discount", so that the contents of the jbpm process variables customer_firstName,
customer_lastName, and customer_status, which are written to by the form, are mapped to
the customer objects fields:
<bpmToEsbVars>
<mapping bpm="entireCustomerAsObject"
esb="body.customer" />
<mapping bpm="customer_firstName"
esb="body.customer.firstName" />
<mapping bpm="customer_lastName"
esb="body.customer.lastName" />
<mapping bpm="customer_status"
esb="body.customer.status" />
<mapping bpm="entireOrderAsObject"
esb="orderHeader" />
<mapping bpm="entireOrderAsXML" esb="BODY_CONTENT"
/>
</bpmToEsbVars>
I actually thought that I would have been possible to have jbpm set this. I was thinking
that I could specify that the variable mapping for the form controller could have been
specified like this:
<controller>
<variable name="entireCustomerAsObject.firstName"
access="read,write,required"/>
<variable name="customer_lastName"
access="read,write,required"/>
...
</controller>
But the variable name is only a string id and this sort of notation (or variant of it) is
not possible. So this is the reason for the additional mapping in bpmToEsbVars.
So, currently only firstName,lastName and status can be modified. More fields can be made
writable if needed.
Update bpm_orchestration4 quickstart
------------------------------------
Key: JBESB-1586
URL:
http://jira.jboss.com/jira/browse/JBESB-1586
Project: JBoss ESB
Issue Type: Task
Security Level: Public(Everyone can see)
Components: Examples
Affects Versions: 4.2.1, 4.2.1 CP2
Reporter: Kevin Conner
Assigned To: Daniel Bevenius
Fix For: 4.2.1 CP3, 4.4
Attachments: bpm_orchestration4.zip, jpetstore2.zip
Burr has updated the bpm_orchestration4 quickstart, this needs to be put into trunk.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira