This content has been marked as final.
Show 2 replies
-
1. Re: how to signal a sub-process in 3.2.2
dfrenkiel Sep 26, 2007 8:14 PM (in response to dfrenkiel)for now we're gonna recursively look for the deepest sub-process instance and signal that (or the parent process instance if there are no sub-processes).
public void signalDeepest(ProcessInstance processInstance) {
ProcessInstance subProcess = processInstance.getRootToken().getSubProcessInstance();
if(subProcess == null) {
processInstance.signal();
}
else {
signalDeepest(subProcess);
}
}
does this seem like the right way?
thanks very much for any comments.
david f. -
2. Re: how to signal a sub-process in 3.2.2
dfrenkiel Sep 26, 2007 8:30 PM (in response to dfrenkiel)sorry. here's the method declaration in a more readable format:
public void signalProcessInstance(ProcessInstance processInstance) { ProcessInstance subProcessInstance = ProcessInstance.getRootToken().getSubProcessInstance(); if(subProcessInstance == null) { processInstance.signal(); } else { signalProcessInstance(subProcessInstance); } }