Hello everybody,
I created such a service task:
[
"name" : "LogTask",
"parameters" : [
"par1" : new StringDataType(),
"par2" : new StringDataType(),
],
"results" : [
"LogTaskExitValue" : new IntegerDataType()
],
"displayName" : "LogTask",
"category" : "External Applications",
"defaultHandler" : "eu.discoveryreply.serviceLayer.jbpm.RunActionHandler",
"dependencies" : [
]
]
and the following handler
public class LogTaskHandler implements WorkItemHandler {
@Override
public void abortWorkItem(WorkItem workItem, WorkItemManager manager) {
}
@Override
public void executeWorkItem(WorkItem workItem, WorkItemManager manager) {
System.out.println("This is LogTaskHandler");
int exitValue=1;
Map<String, Object> result = new HashMap<String, Object>();
result.put("LogTaskExitValue", new Integer(exitValue));
manager.completeWorkItem(workItem.getId(), result);
}
}
but I cannot access the LogTaskExitValue varaible from a script task placed in the same process, after the log task.
Can anyone help me setting the LogTask Output?
Thanks
Laura