How to start workflow or await on results of a running one

Not sure what it takes to implement second scenario you described. how does it look like?

  1. WorkflowThatNeedsCredentials calls activity userActivities.requestGoogleCredentials(userId, workflowId). passing workflowId to send signal back.
  2. WorkflowThatNeedsCredentials implements reply signal processing and waits on reply
  3. userActivities.requestGoogleCredentials activity uses signalWithStart (we are using activity because can’t run signalWithStart from workflow)
  4. Implement GetGoogleCredentialsWorkflow.subscribe(workflowId: String) signal processing
  5. GetGoogleCredentialsWorkflow sends signal to all subscribers on return
1 Like