Is it possible to have multiple callbacks work with a single workflow?
I have a Nexus operation that starts a workflow, but this is used in multiple places. operation:
var Operation = temporalnexus.NewWorkflowRunOperation(
OperationName,
SampleWorkflow,
func(ctx context.Context, params Params, options nexus.StartOperationOptions) (client.StartWorkflowOptions, error) {
return client.StartWorkflowOptions{
ID: WorklfowID(params.ID),
WorkflowIDReusePolicy: enums.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY,
}, nil
},
)
The operation works from multiple places, and there are no duplicate workflows. But only one caller gets notified after the workflow completes. Am I doing something wrong here, or is it a NewWorkflowRunOperation
limitation or Nexus limitation?
Thank you!