【发布时间】:2017-04-11 14:52:28
【问题描述】:
我有一个带有两个连续专有网关的 BPMN2 图。在我的第一个网关中,我有两种用于 yes 和 no 行的表达式条件类型:
${enoughDrinks}
${notenoughDrinks}
在这个独占网关之后,我有第二个独占网关,它有相同的是和否行,还有一个附加的第三行“其他选项”。我的问题是:我该如何设置?当我运行该过程并到达“足够饮料”网关的 no 行时,我收到第二个网关的布尔表达式条件错误:
Unknown property used in expression: ${otherOption}. Cause: Cannot resolve identifier 'otherOption'
我已经在实现 JavaDelegate 类的类的执行方法中声明了变量:
public void execute(DelegateExecution execution) throws Exception {
boolean otherOption = (Boolean)execution.getVariable("otherOption");
execution.setVariable("otherOption", otherOption);
}
下面是BPMN图,红色箭头指向有问题的线。
也许一般的问题是:是否有可能在没有用户任务的情况下连续访问独占网关?
【问题讨论】:
-
请发布您的流程定义。你什么时候执行你的JavaDelegate?进程中没有ServiceTask。你有 Execution 或 TaskEventListener 吗?