Skip to content

Commit

Permalink
Update TaskExecutionContext with output varPool
Browse files Browse the repository at this point in the history
  • Loading branch information
Mighten authored and fuchanghai committed Jan 8, 2025
1 parent 890376a commit 3dd05f7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ public void updateTaskInstanceInfo(final int taskInstanceId) {
taskExecutorEventBus.publish(TaskExecutorRuntimeContextChangedLifecycleEvent.of(taskExecutor));
}
});

// Update the `taskExecutionContext` with the JSON-formatted `varPool`
// to pass the OUT-typed parameter(s) to the next task node.
String varPoolJSONStringUpdated = JSONUtils.toJsonString(physicalTask.getParameters().getVarPool());
taskExecutionContext.setVarPool(varPoolJSONStringUpdated);
}

@Override
Expand Down

0 comments on commit 3dd05f7

Please sign in to comment.