Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3580 from v1r3n/add_inputs_in_switch
Browse files Browse the repository at this point in the history
Include inputs to the switch task
  • Loading branch information
v1r3n authored Apr 20, 2023
2 parents 351243e + a058727 commit 56acc35
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ public List<TaskModel> getMappedTasks(TaskMapperContext taskMapperContext) {
TaskModel switchTask = taskMapperContext.createTaskModel();
switchTask.setTaskType(TaskType.TASK_TYPE_SWITCH);
switchTask.setTaskDefName(TaskType.TASK_TYPE_SWITCH);
switchTask.getInputData().putAll(taskInput);
switchTask.getInputData().put("case", evalResult);
switchTask.addOutput("evaluationResult", List.of(evalResult));
switchTask.addOutput("selectedCase", evalResult);
switchTask.setStartTime(System.currentTimeMillis());
switchTask.setStatus(TaskModel.Status.IN_PROGRESS);
tasksToBeScheduled.add(switchTask);
Expand Down

0 comments on commit 56acc35

Please sign in to comment.