【发布时间】:2016-10-17 09:43:28
【问题描述】:
在我的 BPMN 文件中,我有一个 gateway 定义如下:
<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>
我想知道当变量variableABC 丢失(未在工作流引擎中设置)时会发生什么?
从我的测试看来,流程将转到第二个分支。谁能解释一下原因?
在 Java 中,null == false 会抛出异常 (?)。在这种情况下activiti引擎是如何工作的?谢谢
【问题讨论】: