How to intercept child workflow cancelRequested event

I want to use interceptor to monitor Workflow’s lifecycle events like this post:
Advice on Managing Workflow Lifecycle or Interceptors
I found ExternalWorkflowExecutionCancelRequested in main workflow’s event history and WorkflowExecutionCancelRequested in child workflow’s event history when main workflow cancelRequested,but I can’t find way to intercept it.
Is there any way to intercept this?
Is that only happen in server not in worker?

You intercept WorkflowOutboundCallsInterceptor.executeChildWorkflow and set your own cancellation handler. See CancellationScope for more info about how cancellations are propagated and implemented.

1 Like