[jboss-user] [jBPM] - Re: working with variables in custom work items

Jiri Svitak do-not-reply at jboss.com
Mon Jul 9 10:01:15 EDT 2012

Jiri Svitak [https://community.jboss.org/people/jsvitak] created the discussion

"Re: working with variables in custom work items"

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

To retrieve a result from a user defined service task you have to add a new result parameter into your work item definition file.
Then you can pass a result value from your work item handler into your business process using this code:

Map workItemResults = new HashMap();
workItemResults.put("parameter", value);
workItemManager.completeWorkItem(workItem.getId(), workItemResults);

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120709/7b88085a/attachment.html 

More information about the jboss-user mailing list