"salaboy21" wrote : The code is in some way correct.. you need to understand the
behaviour only....
| The two child tokens are created and propagated in the fork node, and the parent token
stay in the fork node..
|
| In your code you can look for child tokens in the root token and then signal them and
not always signal the parent. Just to clear the concepts...
| Because when you signal the root token.. it propagate the signal to the child
tokens..
Ok. So. Ah... I get the initial root token. It moves to the fork and at that time two
child tokens are spawned. These become its childeren.
|
| R
| / \
| C1 C2
|
|
So if I do a R.getNode() I actually get the node of C1, because R is in de join and
holding for its childeren. Then C1 moves to the join. With another R.getNode() I then
should get the node of C2. But that does not match, because I never have a token that has
"state2".
So I'll see what happens if I refetch the root token every time.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189176#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...