文章整合

当前位置:网站首页>Flowable Unknown property used in expression: xxx

Flowable Unknown property used in expression: xxx

2022-03-22 22:13:21 【MTonj】

In the use of flowable Attribute of a user task :【 Skip expression 】 When the function , Set the expression to ${noCurrentUser == true}, There is no problem saving the process definition , When the process instance starts , An error has occurred : 

Because it is found that Runtime process variable data table ( act_ru_variable ), No, noCurrentUser This variable exists .

Solution 1 :

Before starting the instance , Default this variable , Give a default value

Map<String, Object> variables =po.getVariables();
variables.put("initiator",userInfo.getId());
variables.put("_FLOWABLE_SKIP_EXPRESSION_ENABLED", true);
variables.put("noCurrentUser",false);
ProcessInstance processInstance = runtimeService.startProcessInstanceById(procDefId, variables);

Solution 2 :

According to official documents Description of the expression , It can be used  ${var:get(noCurrentUser)== true} To replace **

${noCurrentUser == true}**

版权声明
本文为[MTonj]所创,转载请带上原文链接,感谢
https://chowdera.com/2022/03/202203222209559079.html

边栏推荐

猜你喜欢

随机推荐

友情链接

免责声明

本站以网络数据为基准,引入优质的垂直领域内容。本站内容仅代表作者观点,与本站立场无关,本站不对其真实合法性负责

如有内容侵犯了您的权益,请告知,本站将及时删除。联系邮箱:chxpostbox@gmail.com

Copyright © 2020 文章整合 All Rights Reserved.

×

拖拽到此处

图片将完成下载