前面在定义流程xml文件,并进行部署的过程中,遇到过“[Validation set: 'flowable-executable-process' | Problem: 'flowable-exclusive-gateway-no-outgoing-seq-flow'] : Exclusive gateway has no outgoing sequence flow ” 问题,发现是定义流程xml关于网关的部分有误导致的。

现在已经部署好有网关的流程后,正在提交网关节点前面的某个任务,提交方法报错:

org.flowable.common.engine.api.FlowableException: No outgoing sequence flow of the exclusive gateway 'sid-591aefa9-0771-4555-a7c9-43ced637ba9c' could be selected for continuing the process

看起来是说没有可走的后续sequenceFlow,实际的情况是因为在sequenceFlow上设置了流条件,是表达式函数形式:${var:get(form_formkey_outcome)=='agree'},在运行变量里面并没有form_formkey_outcome这个变量,需要手动在提交任务的variables里面加入这个变量。

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐