2 Replies Latest reply on Apr 23, 2006 3:46 AM by Koen Aers

    ProcessInstance.resume() not working

    Nidhi Sobti Newbie

      Hi all,

      I suspended a ProcessInstance in an ActionHandler of a node using the following code:

      public void execute( ExecutionContext executionContext ) throws Exception{
       executionContext.getProcessInstance().suspend();
      }


      I checked the database - JBPM_PROCESSINSTANCE table, and ISSUSPENDED_ for this instance was '1'.

      However, when I try to resume this instance elsewhere, using,
      instance.resume();


      I do see the ISSUSPENDED_ change to 0, but it does not resume the workflow. Before calling instance.resume(), I tried to print out the node that the instance was in, and it was in the same state where it left off.

      Please advise.

      Thanks.