update 优化工作流常量使用
This commit is contained in:
parent
463c141f04
commit
340b0524fd
@ -23,4 +23,9 @@ public interface FlowConstant {
|
||||
*/
|
||||
String BUSINESS_KEY = "businessKey";
|
||||
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
String TASK_ID = "taskId";
|
||||
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ public class FlwTaskServiceImpl implements IFlwTaskService, AssigneeService {
|
||||
FlowInstance flowInstance = iFlwInstanceService.instanceByBusinessId(businessKey);
|
||||
if (flowInstance != null) {
|
||||
List<Task> taskList = taskService.list(new FlowTask().setInstanceId(flowInstance.getId()));
|
||||
return Map.of(PROCESS_INSTANCE_ID, taskList.get(0).getInstanceId(), "taskId", taskList.get(0).getId());
|
||||
return Map.of(PROCESS_INSTANCE_ID, taskList.get(0).getInstanceId(), TASK_ID, taskList.get(0).getId());
|
||||
}
|
||||
FlowParams flowParams = new FlowParams();
|
||||
flowParams.flowCode(wfDefinitionConfigVo.getProcessKey());
|
||||
@ -125,7 +125,7 @@ public class FlwTaskServiceImpl implements IFlwTaskService, AssigneeService {
|
||||
if (taskList.size() > 1) {
|
||||
throw new ServiceException("请检查流程第一个环节是否为申请人!");
|
||||
}
|
||||
return Map.of("processInstanceId", instance.getId(), "taskId", taskList.get(0).getId());
|
||||
return Map.of(PROCESS_INSTANCE_ID, instance.getId(), TASK_ID, taskList.get(0).getId());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user