5 Replies Latest reply on May 13, 2008 9:35 PM by Mauricio Salatino

    A question about jBPM process execution.

    Yi Zhao Newbie

      This is my code:

       ProcessDefinition processDefinition = ProcessDefinition.parseXmlInputStream(new FileInputStream(
       ProcessInstance processInstance = new ProcessInstance(processDefinition);
       Token token = processInstance.getRootToken();

      This is the processdefinition.xml:
      <process-definition xmlns="" name="helloworld">

      <start-state name="start">


      <end-state name="end"></end-state>


      My question is that why I need invoke signal two times. I assume that I only need to signal the first state and it will transition to the second state and then to the end state. The transition has been specified in the configuration file.