Hi, I am writing a http endpoint that triggers a workflow, I would like to make the API response only after some steps is completed.
For example, say the workflow has 3 activities A → B → C.
I want to make the endpoint to
- start the workflow
- wait for A to be done
- send response
- let B and C running asynchronously
One way I can think of is to split it into two workflows:
The first workflow runs A and trigger a second workflow which runs B and C.
I am wondering if there is an easier way to do this.
Thanks