This content has been marked as final.
Show 3 replies
-
1. Re: Knowing which token you are in?
kukeltje Jun 30, 2008 5:40 AM (in response to fernando.deleon)just look a little deeper at the api. you can retrieve the children of a token
-
2. Re: Knowing which token you are in?
salaboy21 Jun 30, 2008 7:54 AM (in response to fernando.deleon)I think that this is what you are looking for:
context.getToken().getName();
where context is the ExecutionContext in you ActionHandler
Remember if you don't have concurrent paths of execution(like if you use a fork) or a subprocess(like if you use a process-state), you only have one token.. and that token have a pointer to the current node.
Hope it helps -
3. Re: Knowing which token you are in?
fernando.deleon Jun 30, 2008 8:09 PM (in response to fernando.deleon)Thanks..
I actually found a way..
the context.getToken().getName() works only when you have access to ExecutionContext
However I had this managed bean (JSF world) that had access to ProcessInstance..
the way i found my current token is via..processInstance.getRootToken().getNode().getName();