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]
_______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user