1 Reply Latest reply on Mar 23, 2006 11:08 AM by Tom Baeyens

    The signal() method and the call stack

    Maurizio Tidei Newbie

      Hi,

      the documentation of jBPM says:

      There are 3 places where execution can be continued asynchronously:

      -Just before the node's execute method. Which is after entering the node.
      -When execution is about to be propagated over a transition. Which is before leaving a node.
      -Every action can be executed asynchonously as well.

      I'm interested in the second case: Do I have to call signal() on the Token in a separate Thread delayed for 1 ms to allow the execute() Method to return? Or does a mechanism already exist?

      Now I have:

      execute()
      signal()
      execute()
      signal()
      execute()
      ....
      return
      return
      return

      I want:

      execute()
      signal()
      return

      execute()
      signal()
      return

      ...

      execute()
      return


      Thanks,

      Maurizio T.