In my BPMN
file I have an gateway
defined as follows:
<exclusiveGateway id="gateway" name="An gateway"/>
<sequenceFlow id="sequence1" sourceRef="gateway"
targetRef="task1">
<conditionExpression xsi:type="tFormalExpression">${variableABC == true}
</conditionExpression>
</sequenceFlow>
<sequenceFlow id="sequence2" sourceRef="gateway"
targetRef="task2">
<conditionExpression xsi:type="tFormalExpression">${variableABC == false}
</conditionExpression>
</sequenceFlow>
I wonder what is going to happen when the variable variableABC
is missing (not set in the workflow engine)?
From my tests it seems that the flow will go to second branch. Could anyone explain why?
In Java null == false
would throw an exception (?). How does activiti engine works in this situation? Thanks