WorkflowInboundCallsInterceptor
extends
Interceptor
in
It's recommended to use `WorkflowInboundCallsInterceptorTrait` when implementing this interface because the interface might be extended in the future. The trait will provide forward compatibility.
class MyWorkflowInboundCallsInterceptor implements WorkflowInboundCallsInterceptor
{
use WorkflowInboundCallsInterceptorTrait;
public function handleSignal(SignalInput $input, callable $next): void
{
error_log('Workflow received signal: ' . $input->signalName);
$next($input);
}
}
Tags
Table of Contents
Methods
- execute() : void
- handleQuery() : mixed
- handleSignal() : void
- handleUpdate() : mixed
- validateUpdate() : void
Methods
execute()
public
execute(WorkflowInput $input, callable(WorkflowInput): void $next) : void
Parameters
- $input : WorkflowInput
- $next : callable(WorkflowInput): void
handleQuery()
public
handleQuery(QueryInput $input, callable(QueryInput): mixed $next) : mixed
Parameters
- $input : QueryInput
- $next : callable(QueryInput): mixed
handleSignal()
public
handleSignal(SignalInput $input, callable(SignalInput): void $next) : void
Parameters
- $input : SignalInput
- $next : callable(SignalInput): void
handleUpdate()
public
handleUpdate(UpdateInput $input, callable(UpdateInput): mixed $next) : mixed
Parameters
- $input : UpdateInput
- $next : callable(UpdateInput): mixed
validateUpdate()
public
validateUpdate(UpdateInput $input, callable(UpdateInput): void $next) : void
Parameters
- $input : UpdateInput
- $next : callable(UpdateInput): void