[jboss-user] [jBPM] - Passing work item results to process variables

David Harris do-not-reply at jboss.com
Thu May 2 18:34:59 EDT 2013

David Harris [https://community.jboss.org/people/dmwpepper] created the discussion

"Passing work item results to process variables"

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

In my executeWorkItem method, I have

Map<String,Object> results = new HashMap<String,Object>();
results.put("Source_IP", "333.33.333.33");
results.put("Start_Date", "1999 01 01");
results.put("End_Date", "2000 01 01");

Chapter 14 of the User Guide says: 
Result Mapping: Allows you to map a result (returned once a work item has been executed) to a variable of the process.  This allows you to use results in the remainder of the process.

In Eclipse, there is a "Result Mapping" attribute associated with the service task.  Do I create an association between the results variable and the process variable by using the "Result Mapping" attribute?  The association seems to go in backwards.  In other words, the Parameter (work item) and Variable (process) only go in one way, so I can't put the work item result into the process variable.  I can only put the process variable into a work item result, which is the opposite of what I need to do.  So, I know I'm doing this wrong, but not sure how to do this with the Result Mapping, if that's the way its supposed to work. Thanks.

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/20130502/7ed52f26/attachment.html 

More information about the jboss-user mailing list