JBoss Community

Re: Getting Node Name from Node Instance in jBPM 5.4

created by wp ren in jBPM Development - View the full discussion

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

Start a new discussion in jBPM Development at Community