ChildWorkflow and getting status?

Hi,

I have a workflow that spins off child workflows and was wondering what is the recommended way of getting information from the child workflow.

  • Do you just treat each child workflow as a normal workflow with the UUID and then query the workflow info separately?
  • Also is it possible to query the child workflow status while running inside the main workflow or does it have to be done outside?

Thanks,
Derek

  • Do you just treat each child workflow as a normal workflow with the UUID and then query the workflow info separately?

Workflow id doesn’t need to be UUID. You can always assign the business-specific ID to a child workflow through ChildWorkflowOptions.

Querying child workflow directly is the most scalable option.

  • Also is it possible to query the child workflow status while running inside the main workflow or does it have to be done outside?

It has to be done outside. If the parent is waiting for some state of the child workflow we recommend the child to signal the parent once it reaches the desired state.