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&...]