[jboss-user] [jBPM] - Re: Pass the result of a workitem to the next workitem with a workitemhandler

Esteban Aliverti do-not-reply at jboss.com
Fri Jun 1 03:21:57 EDT 2012


Esteban Aliverti [https://community.jboss.org/people/eaa] created the discussion

"Re: Pass the result of a workitem to the next workitem with a workitemhandler"

To view the discussion, visit: https://community.jboss.org/message/739233#739233

--------------------------------------------------------------
The wItem parameter that you have in the handlers is a reference to the curren Work Item and not to the previous one. 
What you have to do is to return a Map<String,Object> in WorkItemA (just like you are doing), then map the results of that Work Item as process variables, and then map those variables (just the one you will need) as input parameters of WorkItemB. In WorkItemB you can get those values using wItem.getParameter(...).
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/739233#739233]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120601/8e44c82a/attachment.html 


More information about the jboss-user mailing list