Skip to content

Commit d9b79b5

Browse files
committed
parallel exec output should be merged into one WorkflowModel
Signed-off-by: Dmitrii Tikhomirov <[email protected]>
1 parent 310b19c commit d9b79b5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

experimental/agentic/src/main/java/io/serverlessworkflow/impl/expressions/agentic/AgenticModelFactory.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ public WorkflowModel fromAny(WorkflowModel prev, Object obj) {
6060

6161
@Override
6262
public WorkflowModel combine(Map<String, WorkflowModel> workflowVariables) {
63-
// TODO: create a new agenticScope object in the AgenticScopeRegistryAssessor per branch
64-
// TODO: Since we share the same agenticScope object, both branches are updating the same
65-
// instance, so for now we return the first key.
66-
return workflowVariables.values().iterator().next();
63+
return newAgenticModel(workflowVariables);
6764
}
6865

6966
@Override

0 commit comments

Comments
 (0)