我是靠谱客的博主 柔弱短靴,这篇文章主要介绍Activiti 异常:Expression did not resolve to a string or collection of strings,现在分享给大家,希望可以做个参考。
异常信息:
Expression did not resolve to a string or collection of strings
这是在设置候选组变量的时候没有赋值就去完成任务

得在完成任务的时候设置一下才行
// 配置变量关闭
Map<String, Object> variables = new HashMap<>();
Evection evection = new Evection();
evection.setFirstInstanceGroups("111");
evection.setSecondInstanceGroups("222");
variables.put("evection", evection);
Map<String, Object> map = new HashMap<>();
map.put("status", 2);
taskService.complete(task.getId(), map, variables);
最后
以上就是柔弱短靴最近收集整理的关于Activiti 异常:Expression did not resolve to a string or collection of strings的全部内容,更多相关Activiti内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复