1 Reply Latest reply on Nov 17, 2008 11:30 AM by Ronald van Kuijk

    jBPM token id=0

    Shashank Jain Newbie

      I am using the following code to invoke a process

      ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource("simple/processdefinition.xml");

      // Create an instance of the process definition.
      ProcessInstance instance = new ProcessInstance(processDefinition);

      System.out.println("Token id="+instance.getRootToken().getId());

      it prints token id=0

      Please advice