I have a workflow that runs two activities. The first activity makes several asynchronous service calls, each of which is long-running. The second activity should not be run until each of the service calls in the first activity are complete.
I could block on the first activity and wait until it’s done before calling the second, but this seems prone to problems (e.g., an activity worker dies, etc.) I’ve looked at the HelloAsyncActivityCompletion example, but I’m not sure if that approach would apply here, and if it would, how to extend it to the case of two (or more) activities. I’d greatly appreciate any insights on how to do this.