1 Reply Latest reply on Mar 28, 2006 3:58 AM by saviola

    Newbie Question about signaling

    qweniden

      Hi,

      Sorry if this is a dumb question but in most code examples Ive seen a process is advanced by calling processInstance.signal() and that works fine in my proof of concepts. However lets say there is an issue where node "a" branches to node "b" and "c". How can I access "b" and "c" tokens individually so I can advance them manually when work they initiate is finished? If I just called processInstance.signal() how would it know which one to advance?

      Thanks in advance.

        • 1. Re: Newbie Question about signaling
          saviola

          Hi, qweniden!
          For accessing the child tokens you can use one of:

          processInstance.getRootToken().getActiveChildren()
          processInstance.getRootToken().getChild(String childName)
          processInstance.getRootToken().getChildren()
          processInstance.getRootToken().getChildrenAtNode(Node aNode)


          AFAIR the child name is formed like:
          /transitionName1/transitionName2

          and so on.
          Where the left most
          /
          stands for the root token.
          If it doesn't work try using nodeName (where the child token should be residing) instead of transitionName since I am not absolutely sure about the formation of the child token name.

          Hope this helps!

          Regs, Saviola