Temporal Docs PHP SDK API Version 2.20 (latest release) Release notes

Documentation

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 {
        Workflow::getLogger()->info('Calling activity: ' . $input->type);

        return $next($input);
    }
}

Table of Contents

Methods

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
upsertMemo()  : PromiseInterface
upsertSearchAttributes()  : PromiseInterface
upsertTypedSearchAttributes()  : PromiseInterface

Methods

On this page

Search results