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.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089124#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...