Documentation

WorkflowOutboundRequestInterceptor extends Interceptor

Intercept a request before it's sent to RoadRunner.

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

class MyWorkflowOutboundRequestInterceptor implements WorkflowOutboundRequestInterceptor
{
    use WorkflowOutboundRequestInterceptorTrait;

    private function executeActivityRequest(ExecuteActivity $request, callable $next): PromiseInterface
    {
        error_log('Starting activity: ' . $request->getActivityName());

        return $next($request);
    }
}

Table of Contents

Methods

handleOutboundRequest()  : PromiseInterface

Methods


        
On this page

Search results