Skip to content

Commit

Permalink
Merge pull request #678 from flyysoul/fix_publishTaskInfo
Browse files Browse the repository at this point in the history
fix publishTaskInfo (#676)
  • Loading branch information
vainhope authored Aug 5, 2022
2 parents daa32dc + ac2114c commit ac7d49a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -455,10 +455,10 @@ public TaskCheckResultVO publishTaskInfo(Task task, Long userId) {
TaskCheckResultVO checkResultVO = new TaskCheckResultVO();
checkResultVO.setErrorSign(PublishTaskStatusEnum.NOMAL.getType());

if (EScheduleJobType.WORK_FLOW.getType().equals(task.getTaskType())) {
// 发布任务中所有的依赖关系
List<ScheduleTaskTaskShade> allTaskTaskList = new ArrayList<>();

// 发布任务中所有的依赖关系
List<ScheduleTaskTaskShade> allTaskTaskList = new ArrayList<>();
if (EScheduleJobType.WORK_FLOW.getType().equals(task.getTaskType())) {

final List<Task> subTasks = getFlowWorkSubTasks(task.getId());
subTasks.add(task);
Expand Down Expand Up @@ -499,7 +499,7 @@ public TaskCheckResultVO publishTaskInfo(Task task, Long userId) {
} else {
try {
// 构建要发布的任务列表
ScheduleTaskShade scheduleTasks = buildScheduleTaskShadeDTO(task, null);
ScheduleTaskShade scheduleTasks = buildScheduleTaskShadeDTO(task, allTaskTaskList);

// 提交任务参数信息并保存任务记录和更新任务状态
sendTaskStartTrigger(task.getId(), userId, scheduleTasks);
Expand Down

0 comments on commit ac7d49a

Please sign in to comment.