3 Replies Latest reply on Nov 9, 2006 5:08 AM by kukeltje

    Token.setNode(Node) method

      Hi all,

      I have a customer that whish to be able to set back the execution of an active instance to a previous node.
      Is there a way to do that ? If yes, what is the best way to do that ?
      I saw in the API, the method setNode of the Token object. If I use it to set the Token to a previous node... Is there anything wrong with that ?
      For example:
      Let's say I have a 10 nodes process.
      The node 8 is a wait state node. The execution is waiting for a signal in node 8 and I use the setNode method to set the execution back to Node 2.

      Thank you...

        • 1. Re: Token.setNode(Node) method
          kukeltje

          possible issues:
          - roll back of data?
          - roll back of logging?
          - roll back of actions carried out?

          etc...

          • 2. Re: Token.setNode(Node) method

            Thanks for replying...

            Well, I warned the customer saying it might be possible but there would not be any "roll back"... Which means that things already done (actions, logging...etc...) are done and won't be undone by any "roll back" function beside setting back the Token to a previous node.

            For example if in the node 4 a variable called Name has been set to "Bernie", and the Token is set back from node 8 to node 4, the variable Name would still be set to "Bernie". It would be the same as if there was a transition... The difference is that the transition does not exist on the graph.
            The customer is ok with that...

            Beside the "roll back" aspect... Do you see any other possible issues then ?

            Thanks,

            • 3. Re: Token.setNode(Node) method
              kukeltje

              not realy