Hello I have WorkflowA with ActivityA which does some buisness logic and send signal to workflowB. Is that recomended way to signal one workflow from another or should signal workflowB only from inside workflowA not from ActivityA.
You can send signal from activity code using client api, or you can use ExternalWorkflowStub in workflow code to send it as well.
Note with activities there is possibility for this signal to be sent multiple times (for example if your activity times out based on your set activity StartToClose timeout or maybe fails after it sends the signal but before activity code completes and is retried) so depending on use case might be better to do this from workflow code.
1 Like