How can I get the current states/statenames from a ProcessInstance.
I want to now in what state a process is. I can't find any methods to get the current node of a ProcessInstance.
Thanks in advance,
The reason you cannot get a current node from a pi directly is that the pi contains tokens which are in a certain node. I've you've seen the default webapp of jBPM, you can see that the 'active' nodes are highlighted. If you look at the code of the ProcessImageTag (take the most current one from cvs) you can see how that is done.