Thanks Maxim for your quick response that is really helpful!
I am still quite confused with SignalWorkflowExecution
, are you suggesting letting the activity to do just the notification work but how can I let the workflow waiting after the activity returns? I’ve also seen an example here https://github.com/temporalio/samples-go/blob/4fe3c41242feed6208b95ee0bd8400ebc0452542/expense/activities.go#L42 , looks like it registered a callback function to the external service and let the external service call Client.CompleteActivity()
, is that also related to SignalWorkflowExecution
you were mentioning as I didn’t see much documentation on it. I’ve seen it was mentioned here https://docs.temporal.io/docs/events but not quite sure if there is also an example associated with that.