This content has been marked as final.
Show 2 replies
-
1. Re: graph of super- and sub-processes is not complete?
camunda Jan 31, 2006 3:22 AM (in response to camunda)Has nobody have an idea?
Is this solved with jbpm 3.1?
Thanks
Bernd -
2. Re: graph of super- and sub-processes is not complete?
aguizar Feb 1, 2006 7:54 PM (in response to camunda)Bernd,
As you might already know, only tokens positioned at process states contain a non-null subProcessInstance value. The reference will be gone when the token moves to another node. Furthermore, if the process state occurs in a forked line of execution, a child token will contain the subProcessInstance reference, rather than the root token.
I looked at the solution you proposed in JBPM-477. Testing for a subProcessInstance in the root token is not enough. You have to traverse all descendant nodes recursively, via Token.getChildren() or Token.getActiveChildren().