1 Reply Latest reply on Nov 30, 2005 1:08 PM by kukeltje

    how to get current state from ProcessInstance

    pietje

      Hi,

      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,
      Patrick

        • 1. Re: how to get current state from ProcessInstance
          kukeltje

          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.