[Design of JBoss jBPM] - [BPMN2] How to implement uncontrolled sequence flow behaving
by camunda
I try to figure out how the PVM works internally and how to implement this requirement best:
In BPMN if a task (activity) has more than one outgoing flow (transition), than this is an "uncontrolled sequence flow" which leads to parallelizing. So it behaves like a parallel gateway / fork!
So for every task the flow semantic must be: If there is more than one outgoing flow, ALL must be used. This should be done somewhere generic.
I think the ExecutionImpl.proceed() would be a good place, but this is PVM internal, I cannot overwrite that in the language, right?
Or maybe try to leverage the ExecuteActivity as a AtomicOperation?
Or try to do it in a abstract super class of all activities? Which seems to be a bit complicated, but possible (so I have to add the logic from the fork after the execution of the activity).
Any good ideas for that?
Thank god the uncontrolled joining is like it is default in the PVM -> XOR-Join.
Thanks
Bernd
P.S: I commit a failing test case with a uncontrolled sequence flow as Fork and two tasks, if somebody cannot stop himself from coding ;-)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246747#4246747
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246747
16 years, 2 months
[Design of JBoss jBPM] - Re: Re-using the REST facade
by rmoskal
That was my initial idea too. But when I do that the rest server throws errors when you try to do something like just enumerate deployed processes. They are Juel errors, property not found when the Juel script engine comes across references to beans that live on the spring context.
For the above node Juel complains it can't find nodeService3. This is just when I issue the call to list deployed proceses.
The processEngine used by the restful api will needs access to my spring context when doing things like sending signals to my app.
I noticed the rest server gets its processEngine from jndi (in JBPMIntegration). Perhaps if I were to somehow publish the processEngine embeded in my spring context onto java:/ProcessEngine that would do the trick.
Thanks for your time.
Robert
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246686#4246686
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246686
16 years, 2 months