[jboss-user] [jBPM] - How to implement conditional flows

Vincenzo Guastella do-not-reply at jboss.com
Sat Oct 8 09:32:53 EDT 2011


Vincenzo Guastella [http://community.jboss.org/people/v.g] created the discussion

"How to implement conditional flows"

To view the discussion, visit: http://community.jboss.org/message/630725#630725

--------------------------------------------------------------
Hi all

I am learning jBPM and I am using the BPMN2 editor tentative release taken from:
 http://download.eclipse.org/bpmn2-modeler/site http://download.eclipse.org/bpmn2-modeler/site

I am trying to implement a conditional flow, so I added a Xor gateway and two outogoing sequence flows from upper and lower corners.
I set the gateway as diverging, but I couldn't find a way to set the constraints. 
I checked the documentation and I understood that the constraints had to be added as conditions in the outgoing flows. But neither there I could find a way to set any condition.
I thought that this part still was not implemented, so I edited manually the bpm file adding the child to bpmn2:sequenceFlow :

 <conditionExpression id="flow2_condition" body="eval(! $msgs.isRequestMsgEmpty() );"/>


But I got the error message 

FeatureNotFoundException: Feature 'conditionExpression' not found.


Is there something I am doing wrong or is it something still to be implemented ?
In the second case where I can find some bpmn2 sample files ?

Thanks

Vincenzo
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/630725#630725]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111008/03ac07ac/attachment.html 


More information about the jboss-user mailing list