WorkflowOutboundCallsInterceptor extends Interceptor

Interceptor for outbound workflow calls.

It's recommended to use WorkflowOutboundCallsInterceptorTrait when implementing this interface because the interface might be extended in the future. The trait will provide forward compatibility.

class MyWorkflowOutboundCallsInterceptor implements WorkflowOutboundCallsInterceptor
    use WorkflowOutboundCallsInterceptorTrait;

    public function executeActivity(
        ExecuteActivityInput $input,
        callable $next,
    ): PromiseInterface {
        error_log('Calling activity: ' . $input->type);

        return $next($input);

Table of Contents


await()  : PromiseInterface
awaitWithTimeout()  : PromiseInterface
cancelExternalWorkflow()  : PromiseInterface
complete()  : PromiseInterface
continueAsNew()  : PromiseInterface
executeActivity()  : PromiseInterface
executeChildWorkflow()  : PromiseInterface
executeLocalActivity()  : PromiseInterface
getVersion()  : PromiseInterface
panic()  : PromiseInterface
sideEffect()  : mixed
Intercept {@see SideEffectInput::$callable} execution.
signalExternalWorkflow()  : PromiseInterface
timer()  : PromiseInterface
upsertSearchAttributes()  : PromiseInterface


On this page

Search results