[jboss-user] [JBoss jBPM] - Re: how to signal a sub-process in 3.2.2

dfrenkiel do-not-reply at jboss.com
Wed Sep 26 20:14:32 EDT 2007


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#4089124

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089124



More information about the jboss-user mailing list