cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional Expression?

roadtripryan
Champ in-the-making
Champ in-the-making
I may or may not be understanding this correctly.

If I have a simple process, user task A, followed by either task B or task C, depending on the output of task A, how do I model that in the designer? I can't seem to find a conditional expression in the design elements.  Am I looking for the wrong thing?

Furthermore, how do I set the output of A? As a variable somewhere?

Thanks,
Ryan
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Ryan,

one example from activiti sources:


<exclusiveGateway id="exclusiveGw" name="Exclusive Gateway" />
   
    <sequenceFlow id="flow2" sourceRef="exclusiveGw" targetRef="theTask1">
      <conditionExpression xsi:type="tFormalExpression">${input == 1}</conditionExpression>
    </sequenceFlow>
   
    <sequenceFlow id="flow3" sourceRef="exclusiveGw" targetRef="theTask2">
      <conditionExpression xsi:type="tFormalExpression">${input == 2}</conditionExpression>
    </sequenceFlow>


userguide:
http://www.activiti.org/userguide/#bpmnExclusiveGateway

Regards
Martin

sandeepsarkar
Champ in-the-making
Champ in-the-making
Could anyone please tell where do i put ${input == 1}?