4 Replies Latest reply on Oct 9, 2011 8:51 AM by Vincenzo Guastella

    How to implement conditional flows

    Vincenzo Guastella Newbie

      Hi all

       

      I am learning jBPM and I am using the BPMN2 editor tentative release taken from:

      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