1 Reply Latest reply on Apr 7, 2009 10:02 PM by alclientview

    Manually change root token

    frinux

      Hi,
      I have to write a function that changes the active node in the process. I guess I have to change the root token.

      I found something like processInstance.getRootToken but how can I change this to the node I want in my workflow?

      Thanks

        • 1. Re: Manually change root token

          By calling the setNode(Node node) function of the Token class but make sure this makes sens when you're doing: For example, if you are setting another node to a root Token that have active children (in a Fork/Join) and don't do anything about them you will end up with unexpected behavior...

          Arnaud.