[jboss-dev-forums] [jBPM Development] - Re: Getting Node Name from Node Instance in jBPM 5.4

wp ren do-not-reply at jboss.com
Tue Apr 2 04:18:46 EDT 2013


wp ren [https://community.jboss.org/people/bird86] created the discussion

"Re: Getting Node Name from Node Instance in jBPM 5.4"

To view the discussion, visit: https://community.jboss.org/message/805926#805926

--------------------------------------------------------------
You could code this:

Iterator<NodeInstance> iterator = nodes.iterator();
do {
  processTasks = iterator.next().getNodeName();
  System.out.println(processTasks + "  -  " + count);
  count = count + 1;
} while (count < nodes.size());


iterator() method will give you a new iterator instance when you invoke it every time.So you get the first Nodeinstance every time.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/805926#805926]

Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130402/3d20d4a3/attachment.html 


More information about the jboss-dev-forums mailing list