在流程图那条线Main Config设置${drafter},在
processEngine.getTaskService()定义drafter的值,则会自动写入act_ru_task这张表,并能被获取
Map<String, Object> params=new HashMap<String, Object>();
网关传入的参数必须是Boolean类型的数值
params.put("drafter", true);
ProcessInstance myProcess_1 = runtimeService.startProcessInstanceByKey("AC",params);
然后根据
List<Task> tasks = taskService.createTaskQuery().taskAssignee(assignee).list();//根据assignee查询