Skip to content

Commit 4378567

Browse files
committed
Use output instead context
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
1 parent fac2213 commit 4378567

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

impl/core/src/main/java/io/serverlessworkflow/impl/executors/AbstractTaskExecutor.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,7 @@ public CompletableFuture<TaskContext> apply(
246246
p -> t.output(p.apply(workflowContext, t, t.rawOutput())));
247247
outputSchemaValidator.ifPresent(s -> s.validate(t.output()));
248248
contextProcessor.ifPresent(
249-
p ->
250-
workflowContext.context(
251-
p.apply(workflowContext, t, workflowContext.context())));
249+
p -> workflowContext.context(p.apply(workflowContext, t, t.output())));
252250
contextSchemaValidator.ifPresent(s -> s.validate(workflowContext.context()));
253251
t.completedAt(Instant.now());
254252
publishEvent(

0 commit comments

Comments
 (0)