1 Reply Latest reply on Sep 28, 2007 4:50 AM by tellierj

    Subprocess questions - and unexpected behaviour ?

    ramsub

      [jbpm3.1.3]
      Question : Can a process node have more than one leaving transition ?

      If so, then how can I choose a transition to leave ?

      I need to take a transition based on what state the subprocess finished in.

      I tried writing an action handler on even <subprocess-end>, and doing executionContext.leaveNode(transitionName) , but I have some really weird behaviour when I run this - The subproces-end handler gets repeatedly executed infinitely - thousands of times... till it finally throws an exception..

      Why does this happen, has anyone tried this before ?
      If not this way, is there any other way that I can choose an exit transition out of a process node ?


      Thanks !!