[jboss-user] [JBoss jBPM] - what are the active tokens

tbeernot do-not-reply at jboss.com
Fri Dec 19 06:15:35 EST 2008

I have a parent which has forked two childeren. At a certain moment the two childeren are each in some state and the parent is waiting in the fork. This means -for me- I have to two active token and one suspended.

Some time later the childeren have joined and the parent is active again. This means -for me- I have to one active token.

I would like to be able to determine all active tokens. I used to do this by scanning all tokens and removing all tokens that had a node of class "StartState", "Fork", "Join", "EndState". 

That worked ok, but for some reason I now get Nodes that have a class "enhancedByCGLIB" and cannot use that anymore.  

Is there any other way to determine if a token is active? 

Methods like isSuspended, isLocked or hasActiveChildren don't work (the last not because one of the childs at some time will enter the Join state and thus is not active anymore, but it never hasActiveChildren).

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197590#4197590

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197590

More information about the jboss-user mailing list