WorkflowClientCallsInterceptor
extends
Interceptor
in
It's recommended to use `WorkflowClientCallsInterceptorTrait` when implementing this interface because the interface might be extended in the future. The trait will provide forward compatibility.
class MyWorkflowClientCallsInterceptor implements WorkflowClientCallsInterceptor
{
use WorkflowClientCallsInterceptorTrait;
public function start(StartInput $input, callable $next): WorkflowExecution
{
error_log('Starting workflow: ' . $input->workflowType);
return $next($input);
}
}
Tags
Table of Contents
Methods
- cancel() : void
- describe() : WorkflowExecutionDescription
- getResult() : ValuesInterface|null
- query() : ValuesInterface|null
- signal() : void
- signalWithStart() : WorkflowExecution
- start() : WorkflowExecution
- terminate() : void
- update() : StartUpdateOutput
- updateWithStart() : UpdateHandle
Methods
cancel()
public
cancel(CancelInput $input, callable(CancelInput): void $next) : void
Parameters
- $input : CancelInput
- $next : callable(CancelInput): void
describe()
public
describe(DescribeInput $input, callable(DescribeInput): void $next) : WorkflowExecutionDescription
Parameters
- $input : DescribeInput
- $next : callable(DescribeInput): void
Return values
WorkflowExecutionDescriptiongetResult()
public
getResult(GetResultInput $input,
Warning: Array to string conversion in /opt/phpdoc/src/phpDocumentor/Transformer/Writer/Twig/LinkRenderer/CallableAdapter.php on line 78
callable(GetResultInput): Array $next) : ValuesInterface|null
Parameters
- $input : GetResultInput
- $next : Warning: Array to string conversion in /opt/phpdoc/src/phpDocumentor/Transformer/Writer/Twig/LinkRenderer/CallableAdapter.php on line 78 callable(GetResultInput): Array
Return values
ValuesInterface|nullquery()
public
query(QueryInput $input,
Warning: Array to string conversion in /opt/phpdoc/src/phpDocumentor/Transformer/Writer/Twig/LinkRenderer/CallableAdapter.php on line 78
callable(QueryInput): Array $next) : ValuesInterface|null
Parameters
- $input : QueryInput
- $next : Warning: Array to string conversion in /opt/phpdoc/src/phpDocumentor/Transformer/Writer/Twig/LinkRenderer/CallableAdapter.php on line 78 callable(QueryInput): Array
Return values
ValuesInterface|nullsignal()
public
signal(SignalInput $input, callable(SignalInput): void $next) : void
Parameters
- $input : SignalInput
- $next : callable(SignalInput): void
signalWithStart()
public
signalWithStart(SignalWithStartInput $input, callable(SignalWithStartInput): WorkflowExecution $next) : WorkflowExecution
Parameters
- $input : SignalWithStartInput
- $next : callable(SignalWithStartInput): WorkflowExecution
Return values
WorkflowExecutionstart()
public
start(StartInput $input, callable(StartInput): WorkflowExecution $next) : WorkflowExecution
Parameters
- $input : StartInput
- $next : callable(StartInput): WorkflowExecution
Return values
WorkflowExecutionterminate()
public
terminate(TerminateInput $input, callable(TerminateInput): void $next) : void
Parameters
- $input : TerminateInput
- $next : callable(TerminateInput): void
update()
public
update(UpdateInput $input, callable(UpdateInput): StartUpdateOutput $next) : StartUpdateOutput
Parameters
- $input : UpdateInput
- $next : callable(UpdateInput): StartUpdateOutput
Return values
StartUpdateOutputupdateWithStart()
public
updateWithStart(UpdateWithStartInput $input, callable(UpdateWithStartInput): WorkflowExecution $next) : UpdateHandle
Parameters
- $input : UpdateWithStartInput
- $next : callable(UpdateWithStartInput): WorkflowExecution