[JBoss jBPM] - Re: JBPM 3 or 4
by kukeltje
anonymous wrote : I know jBPM 4 will have a new API, so I isolated all API code and I should be able to migrate fairly easy.
Always a good choice
anonymous wrote : My questions:
| - Will jBPM 4.0 still be able to interprete the 3.2.3 XML process definitions?
No, but a conversion that will yield between 80-100% (depending on what you use) will be provided.
anonymous wrote : - How stable is the 4.0 alpha? Can I migrate and demo?
|
Depends on what you want to demo...lots of things do not work yet, so I personally would not. What you can do is mention that jBPM is moving in the direction of taking the best of BPMN (e.g. graphical notation, terminology) and combine that with what jBPM is good at (flexible language under the hood in xml)
[anonymous wrote :
| - Is jBPM 4.0 getting along quickly enough to left me hold off on this until it is stable? (Are we talking weeks or months?)
|
Weeks? No... hahaha... there are fixed releasecycles of 8 weeks, so expect alpha2 in 8, maybe a beta1 in 16, then another beta, a cr or 2 and final. So don't expect a GA release before summerhollidays...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201543#4201543
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201543
17 years, 2 months
[JBoss jBPM] - Re: ProcessInstance ending changed
by kukeltje
I tried this and was able to run it inspite of a small error in your processdefinition (task2 is in the processstate ;-) )
You signal the 'child-token' which is in the proces-state node, not in the subprocess itself. So to me ending that does not signal any parent node. It does transition this specific token to the next one. I think that should maybe not happen but still...
If you want the subprocess to end and not signal the parent token, then end the rootToken of the subprocess with end(false) like
processInstance.getRootToken().getChild("transition1").getSubProcessInstance().getRootToken().end(false);
If I adapt the unittest this does exactely what you want
ProcessInstance processInstance = jbpmContext.newProcessInstance("MainProcess");
| processInstance.signal();
|
| assertNull(processInstance.getTaskMgmtInstance().getTaskInstances());
|
| assertEquals("subProcess1", processInstance.getRootToken().getChild("transition1").getNode().getName());
|
| // Abort one of the subprocesses
| processInstance.getRootToken().getChild("transition1").getSubProcessInstance().getRootToken().end(false);
|
| assertNull(processInstance.getTaskMgmtInstance().getTaskInstances());
| assertTrue(processInstance.getRootToken().getChild("transition1").getSubProcessInstance().getRootToken().hasEnded());
| assertFalse(processInstance.getRootToken().getChild("transition1").hasEnded());
| assertEquals("subProcess1", processInstance.getRootToken().getChild("transition1").getNode().getName());
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201537#4201537
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201537
17 years, 2 months