Not sure what it takes to implement second scenario you described. how does it look like?
WorkflowThatNeedsCredentials
calls activityuserActivities.requestGoogleCredentials(userId, workflowId)
. passingworkflowId
to send signal back.WorkflowThatNeedsCredentials
implements reply signal processing and waits on replyuserActivities.requestGoogleCredentials
activity usessignalWithStart
(we are using activity because can’t run signalWithStart from workflow)- Implement GetGoogleCredentialsWorkflow.subscribe(workflowId: String) signal processing
- GetGoogleCredentialsWorkflow sends signal to all subscribers on return