JBoss Community

Re: working with variables in custom work items

created by Jiri Svitak in jBPM - View the full discussion

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