Update tutorials/workflow/java/child-workflows/src/main/java/io/dapr/springboot/examples/child/ParentWorkflow.java

Co-authored-by: Marc Duiker <marcduiker@users.noreply.github.com>
Signed-off-by: salaboy <Salaboy@gmail.com>
This commit is contained in:
salaboy 2025-08-12 10:19:36 +01:00
parent 7a03ef7acd
commit c420cb198e
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ public class ParentWorkflow implements Workflow {
.map(input -> ctx.callChildWorkflow(ChildWorkflow.class.getName(), input, String.class)) .map(input -> ctx.callChildWorkflow(ChildWorkflow.class.getName(), input, String.class))
.collect(Collectors.toList()); .collect(Collectors.toList());
// Fan-in to get the total word count from all the individual activity results. // Fan-out & fan-in to get the all the child workflow results.
List<String> allChildWorkflowsResults = ctx.allOf(tasks).await(); List<String> allChildWorkflowsResults = ctx.allOf(tasks).await();
ctx.complete(allChildWorkflowsResults); ctx.complete(allChildWorkflowsResults);