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 committed Jan 2, 2025
1 parent 50923e7 commit 96fa389
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 96fa389

Please sign in to comment.