4 Replies Latest reply on Jul 7, 2006 2:44 AM by jbaton

    next Task Node

    eskina

      Hi!!!

      During the execution of the process "websale", when I am in the task "evaluate web to order", as I make to know which are next the Task Node (where it will have intervention of the user)? For the drawing of the process I know that the two next Task Node possible are "fix web to order date" and "wait will be money". The question is, when is with the Task Node "evaluate web to order" in the interface, it is possible to show in the interface which are next the TaskNode and the users who will go to execute them, before executing the Task Node "evaluate web to order"?

      Thanks!!!

        • 1. Re: next Task Node
          jbaton

          Same question.

          How can I know which node will be executed after the current one ?

          How can I know who is to execute it ?


          In a context like start>A>B>C>End , that is really linear say that token is in A, signal is sent, token goes to B. How can I know that next step/state/node is C before to signal ?

          Thanks

          JBATON

          • 2. Re: next Task Node
            jbaton

            Found out the answer for "what's next" :)

            Which node is next :

            Transition trans = processinstance.getRootToken().getNode().getDefaultLeavingTransition() ;
            String nextStepName = trans.getTo().getName() ;
            



            Jerome BATON

            • 3. Re: next Task Node
              eskina

              Thanks for the answers!

              The necessity to know anticipatedly next taskNode("wait for money") to be executed by an user is for showing in the interface of taskNode("evaluate web order") the users and groups responsible for taskNode("wait for money") so that the user who is executing taskNode("evaluate web order") can select the user or the group for which it desires to delegate taskNode("wait for money").

              Very thanks!

              • 4. Re: next Task Node
                jbaton

                You're welcome,
                I just looked at the source of the method signal()

                If you can help me with my problem ... :)

                See http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955844


                JBaton