activiti分组用户工作流和审核流
1 特定申请的用户:
指定申请人:----#{userId} 启动申请时传递—可以传userId
Map<String,Object> map = new HashMap<String,Object>();
map.put("userId",userId);
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("process","1", map);//流程图id,
2 特定审核的用户—组:
指定申请人:----#{approval}
List<Task> list = taskService.createTaskQuery().processDefinitionKey("process").taskCandidateGroup(apploval).list();
具体代码实现
@GetMapping("/start")
public Object start(String userId) throws Exception {
Map<St