[jBPM] - How to set serviceTask exit value
by Laura delli Paoli
Laura delli Paoli [https://community.jboss.org/people/lauradp] created the discussion
"How to set serviceTask exit value"
To view the discussion, visit: https://community.jboss.org/message/783439#783439
--------------------------------------------------------------
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
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/783439#783439]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[jBPM] - Interprocess communication [Message flow]
by Salman Hameed
Salman Hameed [https://community.jboss.org/people/nommyravian] created the discussion
"Interprocess communication [Message flow]"
To view the discussion, visit: https://community.jboss.org/message/783310#783310
--------------------------------------------------------------
Hi,
As we have pools in BPMN2 modeler so is it possible to draw a diagram with multiple pools and execute it in jBPM? Does jBPM engine execute a diagram with multiple pools as it's not supported in Activiti. It's available in Bonita Open Solution.
If it's not possible in jBPM then how do we pass messages among two pools (processes)?
I want to have two different processes in same guvnor repository (or in different repositories on different machines) and want to pass a message from one process to the other process. What I have in mind is to write a java program which will get the variable value from one process and set the variable in the other process. Is it right? Is inter process communication available by default in jBPM? If not then how will we achieve it in jBPM? I would like to mention that Bonia Open Solution has interprocess communication by default using the construct Message Flow.
Thank you in anticipation.
Salman
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/783310#783310]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years