标签:service sign 常见 new 常见操作 instance object ice start
在任务节点设计的时候,assignce设置为${assigneeNum},在启动的时候,把这个变量带上,Activiti就可以动态地设置assignce。
ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
RuntimeService runtimeService=processEngine.getRuntimeService();
//设置assignee的取值
Map<String,Object> map=new HashMap<>();
map.put("assignee0","xiaoyi");
map.put("assignee1","xiaoer");
map.put("assignee2","xiaosan");
ProcessInstance processInstance=runtimeService.startProcessInstanceByKey("holiday",map);
标签:service sign 常见 new 常见操作 instance object ice start
原文地址:https://www.cnblogs.com/feiqiangsheng/p/13245934.html