0 Replies Latest reply on Apr 18, 2011 12:57 PM by kaissun bs

    get name of the actual state

    kaissun bs Newbie

      Do you know how we can get the state of our process with the code java by jBPM API ?

       

      if we have :

      ProcessInstance instance = executionService.startProcessInstanceByKey("helloworld");

       

      and when i pick : 

       

      System.out.println(instance.getState());

       

      it gives me active-root.

       

      thanks !
      NB : the jBPM version is 4.4 !