[jboss-user] [jBPM] - Re: Result Mapping for ServiceTask in CustomWorkItemEditor

Chris Melas do-not-reply at jboss.com
Thu Feb 2 08:10:45 EST 2012


Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Result Mapping for ServiceTask in CustomWorkItemEditor"

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

--------------------------------------------------------------
Hi,
If i understood correctly, you can return results from your custom work item by passing your parameters to the 
*completeWorkItem(WorkItem workItem, WorkItemManager manager, Map<String, Object> results)* method of WorkItemManager object 
i.e.

Map<String, Object> results;
results.put("result", resultObject); results.put("error",errorObject);
manager.completeWorkItem(workItem.getId(), results);
or even better from the StatefulKnowledgeSession object via
ksession.getWorkItemManager().completeWorkItem(....) .

Then you can assign the result mapping i.e from editors.
--------------------------------------------------------------

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

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/20120202/951a3f6c/attachment.html 


More information about the jboss-user mailing list