Michael Wohlfart [
http://community.jboss.org/people/mwohlf] replied to the discussion
"Get subprocess id from outside the process"
To view the discussion, visit:
http://community.jboss.org/message/555435#555435
--------------------------------------------------------------
use a command:
processEngine.execute(new Command() {
public Object execute(Environment env) {
Execution exe = processInstance.findActiveExecutionIn("subprocess-task");
String subprocessid = ((ExecutionImpl)execution).getSubprocessInstance();
System.out.printlnl("subprocessid is: " + subprocessid);
return null;
}
});
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/555435#555435]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]