3 Replies Latest reply on Oct 7, 2008 5:04 PM by kukeltje

    Change token node

    lbrasseur

      I want to change the execution path from one task node to another. However, there is no transition between nodes (it's a strange requirement for the application: to be able to make arbitrary state jumps).

      I tried getting the Token and changing the node to which it points. However, this causes a lot of exceptions with task instances found on the old node.

      There is an easier way to do this?

      Thanks

      Lautaro

        • 1. Re: Change token node
          kukeltje

           

          "lbrasseur" wrote:
          I want to change the execution path from one task node to another. However, there is no transition between nodes (it's a strange requirement for the application: to be able to make arbitrary state jumps).

          No, but not very common

          "lbrasseur" wrote:

          I tried getting the Token and changing the node to which it points. However, this causes a lot of exceptions with task instances found on the old node.

          There is an easier way to do this?



          In normal nodes you can move the token without a problem. Task nodes are more complex, but you can try the following
          - try configuring the tasks as not signalling (they will not move the token then if they are ended
          - cancel the tasks before moving the token




          • 2. Re: Change token node
            lbrasseur

            It worked! Amazing!

            Thank you very much!!

            Best regards

            Lautaro

            • 3. Re: Change token node
              kukeltje

              You are welcome