2 Replies Latest reply on May 9, 2006 5:45 AM by cwad0000

    Getting previous Node?

    cwad0000

      In a node I want to find out what node that was previous in the chain, is that possible?

        • 1. Re: Getting previous Node?
          tansdale

          each node has a set of arriving transition, and
          each transition has a original node.
          u can get a arriving transition and get the arriving node.

          example:
          Set arrivingtransitions = node.getArrivingTransitions();
          // i dont know who to use Set ;
          // u can get a transition from the transition set;
          // i use atransition;
          Node node = atransion.getFrom();
          // but if u have more than one transition u have to judge which transition if the real arriving transition.
          // if u process if complex, u can save the token's path in Context variable;

          i hope it can help u.

          • 2. Re: Getting previous Node?
            cwad0000

            thanks tansdale,

            i ended up saving the node name in each node in a process variable, not very pretty, would have been nicer if I could find out how the path in hte workflow was.