[英]check if a variable is null or not, on sequence flows in camunda modeler
On a sequenceFlow, I want to check a condition which may include a variable that may not be defined yet in process instance. 在sequenceFlow上,我想检查一个条件,该条件可能包括在流程实例中可能尚未定义的变量。 so if it's not defined, I dont want to get ActivitiException of "the variable is not defined", but want the flow to proceed.
因此,如果未定义,我不想获取“未定义变量”的ActivitiException,但希望流程继续进行。
I wrote my condition like this: 我这样写我的病情:
${ A == null || $ {A == null || Aa >= Bb }
Aa> = Bb}
then when A is null (not defined yet) I cant proceed :/ 然后当A为空(尚未定义)时,我将无法继续:/
what should I do? 我该怎么办?
这是一种解决方法,但是您可以使用ExecutionListener并在进程启动时初始化该值,因此永远不会有Null值
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.