2 Replies Latest reply on Sep 16, 2006 1:59 PM by kaobiore

    process instance "stuck" in ActionHandler

    hheckel

      Hello,

      I have a custom action within a node:

      ...





      ...

      Execution of DoSomethingHandler threw an exception causing the instance to halt in "doSomethingNode".

      Is processInstance.signal() the correct way to move to "nextStep" in the workflow?

      And if so, will processInstance.signal() call the ActionHandler again?

      Thanks for your help!

      Holger.

        • 1. Re: process instance
          hheckel

          I guess it will help, if I post the xml as well...

          <node name="doSomethingNode">
           <action class="ca.avera.client.workflow.action.DoSomethingHandler">
           </action>
           <transition name="" to="nextStep"></transition>
          </node>
          


          • 2. Re: process instance
            kaobiore

            hi!

            your action-class should look like this:

            public class DoSomethingHandler implements ActionHandler {
            
             private static final long serialVersionUID = 1L;
            
             public void execute(ExecutionContext executionContext) throws Exception {
            
             executionContext.leaveNode();
            
             }
            
            }
            
            


            By calling "leaveNode()" you will leave this node and go ahead with graph-execution.

            brgds
            k