5 Replies Latest reply on Mar 5, 2008 9:59 AM by Victor Abc

    Can't leave node ... without leaving transition

    Victor Abc Newbie

      Hi All,

      I have a very simple process like this:

      process-definition xmlns="" name="process"
      start-state name="init process"
      transition to="documentation control" name="trNo1"
      node name="documentation control"

      And the following code:

      definition = graphSession.findLatestProcessDefinition("process");
      processInstance = new ProcessInstance(definition );
      token = processInstance.getRootToken();

      But when the signal is executed from the start state to documentation control node the following exception is thrown:

      org.jbpm.JbpmException: can't leave node 'Node(documentacion control)' without leaving transition
      at org.jbpm.graph.def.Node.leave(Node.java:365)
      at org.jbpm.graph.def.Node.leave(Node.java:347)
      at org.jbpm.graph.def.Node.execute(Node.java:339)
      at org.jbpm.graph.def.Node.enter(Node.java:316)

      I don't know because it is happening.

      Any help will be very appreciated
      Best Regards,