关于Could not execute inner activity behavior of multi instance behavior
解决方法:
出现上面错误是因为用户任务配置了多实例,Collection为assigneeList,Loop Cardinality设置为3,而启动的时候传assigneeList只包含2个元素所导致的,Loop Cardinality不能大于处理任务的人数
Map variableMap = new HashMap();
ArrayList<String> assigneeList = new ArrayList<>();
assigneeList.add("1");
assigneeList.add("2");
variableMap.put("assigneeList",assigneeList);
ProcessInstance pi = runtimeService.startProcessInstanceByKey("myProcess_1", variableMap);