[jboss-dev-forums] [jBPM Development] - How to get results form Work Item handler
Ashutosh Kumar
do-not-reply at jboss.com
Mon Feb 18 00:57:34 EST 2013
Ashutosh Kumar [https://community.jboss.org/people/ashu.itbhu] created the discussion
"How to get results form Work Item handler"
To view the discussion, visit: https://community.jboss.org/message/798109#798109
--------------------------------------------------------------
I want to impl db handler and my dbhandler.wid file is like this...
------------------------------------------------------------ ----------------------------------------
In my WorkItemHandler impl class i have code like this
public void executeWorkItem(WorkItem workItem, WorkItemManager manager) {
Map<String, Object> outputMap = new HashMap<String, Object>();
outputMap.put("results", emps);
manager.completeWorkItem(workItem.getId(), outputMap);
and in porcess i have
WI impl like
Result Mapping----->DB_OPS ---> map(java.util.HashMap)
but his is returning nothing from handler calss.... please let me know what wrong i am doing here.
Thanks....Ashutosh
import org.drools.process.core.datatype.impl.type.StringDataType;
import org.drools.process.core.datatype.impl.type.ObjectDataType;
[
// the Notification work item
[
"name" : "Database",
"parameters" : [
"GET_OR_UPDATE" : new StringDataType(),
"SQL" : new StringDataType(),
"ReturnMode" : new StringDataType(),
],
"results" : [
"DB_OPS" : new ObjectDataType(),
],
"displayName" : "Database",
"icon" : "icons/dbops.png"
]
]
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/798109#798109]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130218/e773e487/attachment.html
More information about the jboss-dev-forums
mailing list