异常信息:
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);