This sample shows how to make a worker interceptor that intercepts child workflow requests. The requests are validated using an activity. Most of the sample complexity is in creating a custom implementation of a ChildWorkflowResult.
- Run a Temporal service.
- Run the following command to start the worker
go run ./workflow-security-interceptor/worker
- Run the following command to start the example
go run ./workflow-security-interceptor/starter
The expected output is workflow failure with the following message:
Child workflow type "UnallowedChildWorkflow" not allowed (type: not-allowed, retryable: true)