-
1. Re: Wait States a conceptual question
camunda Jul 2, 2008 2:59 PM (in response to thomas.diesler)You should attend a jBPM training, eh? ;-))
A node is a wait state as soon the execution is not propagated (so if node.leave is NOT called inside of the execute method), like a "state" or "task-node" if it contain tasks...
The node class propagates the token (if no action is attached), so it is NOT a wait state...
Cheers
Bernd -
2. Re: Wait States a conceptual question
aguizar Jul 2, 2008 3:28 PM (in response to thomas.diesler)Just as Bernd says, control is propagated in a chain of responsibility from node to transition to node until a node stops propagating. The latter node will be the wait state. The call stack is:
node.execute() ->node.leave(Transition) ->transition.take() ->node.enter() ->node.execute()
As a side note, in jBPM 3 this simple propagation model has indirect recursion and may result in a stack overflow if a wait state is not encountered soon enough. This has been addressed in PVM. -
3. Re: Wait States a conceptual question
kukeltje Jul 2, 2008 4:03 PM (in response to thomas.diesler)You should attend a jBPM training, eh? ;-))
He did, in Dublin, but there was to much Guinness involved... -
4. Re: Wait States a conceptual question
koen.aers Jul 2, 2008 4:27 PM (in response to thomas.diesler)And thanks to Tom the 3 day training was reduced to a 15 min pitch ;-)
Cheers,
Koen -
5. Re: Wait States a conceptual question
thomas.diesler Jul 3, 2008 2:25 AM (in response to thomas.diesler)Thanks, that clarifies the current implementation and opens up a new discussion of how it should be - because I doubt that the pattern above is what it should be.
more to come ... -
6. Re: Wait States a conceptual question
camunda Jul 3, 2008 3:14 AM (in response to thomas.diesler)How it should be is discussed in the PVM, there it will be a control loop instead...
-
7. Re: Wait States a conceptual question
aguizar Jul 3, 2008 2:33 PM (in response to thomas.diesler)there was to much Guinness involved...
Sounds like college... and work in jboss... I better get my beer and start working :-) -
8. Re: Wait States a conceptual question
kukeltje Jul 4, 2008 7:53 AM (in response to thomas.diesler)come on Alex... you as a Mexican (correct me if I'm wrong) should drink Corona or XX but not Guiness (I do, I love Mexico, time to go back once more)
-
9. Re: Wait States a conceptual question
aguizar Jul 4, 2008 3:29 PM (in response to thomas.diesler)Ronald, you are right about my nationality. You are wrong about the Mexican beer choices: either Negra Modelo or Leon are much better. Of course it is unlikely to find them outside Mexico (I did find Negra Modelo in Texas) but you should definitely try them when you come back.
Corona is comparable to Heineken in that it is the best known beer of its country of origin. I wouldn't make you suffer a Heineken just because you are Dutch, tough :-) -
10. Re: Wait States a conceptual question
kukeltje Jul 6, 2008 3:56 PM (in response to thomas.diesler)hahaha... Heineken is like Microsoft... good marketing, bad product... Fortunately I do not suffer from it to much... but.... point taken. I'll try to find either one over here and try them out...