private mixed ERROR_WORKFLOW_START_DUPLICATION = 'Cannot reuse a stub instance to start more than one workflow execution. ' . 'The stub points to already started execution. If you are trying to wait ' . 'for a workflow completion either change WorkflowIdReusePolicy from ' . 'AllowDuplicate or use WorkflowStub.getResult'
$clientOptions WorkflowClient.php : 62 private ClientOptions $clientOptions
$converter WorkflowClient.php : 63 private DataConverterInterface $converter
$interceptorPipeline WorkflowClient.php : 68 private Pipeline<WorkflowClientCallsInterceptor, mixed> $interceptorPipeline
$reader WorkflowClient.php : 65 private WorkflowReader $reader
$starter WorkflowClient.php : 64 private WorkflowStarter|null $starter = null
__clone() WorkflowClient.php : 404 public __clone() : mixed
__construct() WorkflowClient.php : 70 public __construct(ServiceClientInterface $serviceClient[, ClientOptions|null $options = null ][, DataConverterInterface|null $converter = null ][, PipelineProvider|null $interceptorProvider = null ]) : mixed
Parameters
Get count of workflow executions using List Filter Query syntax.
public countWorkflowExecutions(string $query[, string|null $namespace = null ]) : CountWorkflowExecutions
Query example:
WorkflowType='MyWorkflow' and StartTime between '2022-08-22T15:04:05+00:00' and '2023-08-22T15:04:05+00:00'
Parameters
If null, the preconfigured namespace will be used.
public static create(ServiceClientInterface $serviceClient[, ClientOptions|null $options = null ][, DataConverterInterface|null $converter = null ][, PipelineProvider|null $interceptorProvider = null ]) : static
Parameters
public getServiceClient() : ServiceClientInterface
Return valuesServiceClientInterface getWorkflowHistory() WorkflowClient.php : 364 public getWorkflowHistory(WorkflowExecution $execution[, string|null $namespace = null ][, bool $waitNewEvent = false ][, int $historyEventFilterType = HistoryEventFilterType::HISTORY_EVENT_FILTER_TYPE_ALL_EVENT ][, bool $skipArchival = false ][, int $pageSize = 0 ]) : WorkflowExecutionHistory
Parameters
If null, the preconfigured namespace will be used.
If set to true, the RPC call will not resolve until there is a new event which matches, the $historyEventFilterType, or a timeout is hit. The RPC call will be resolved immediately if the workflow was already finished.
Size of the pages to be requested. It affects internal queries only. Use it if you want to load limited number of events from the history.
Get paginated list of workflow executions using List Filter Query syntax.
public listWorkflowExecutions(string $query[, string|null $namespace = null ][, int $pageSize = 10 ]) : Paginator<string|int, WorkflowExecutionInfo>
Query example:
WorkflowType='MyWorkflow' and StartTime between '2022-08-22T15:04:05+00:00' and '2023-08-22T15:04:05+00:00'
Parameters
If null, the preconfigured namespace will be used.
Maximum number of workflow info per page.
Creates a new `ActivityCompletionClient` that can be used to complete activities asynchronously.
public newActivityCompletionClient() : ActivityCompletionClientInterface
Only relevant for activity implementations that called ActivityContext::doNotCompleteOnReturn().
Return valuesActivityCompletionClientInterface newRunningWorkflowStub() WorkflowClient.php : 281Returns workflow stub associated with running workflow.
public newRunningWorkflowStub(string $class, string $workflowID[, string|null $runID = null ]) : T
Parameters
Returns untyped workflow stub associated with running workflow.
public newUntypedRunningWorkflowStub(string $workflowID[, string|null $runID = null ][, string|null $workflowType = null ]) : WorkflowStubInterface
Parameters
Creates workflow untyped client stub that can be used to start a single workflow execution. After workflow is started it can be also used to send signals or queries to it.
public newUntypedWorkflowStub(string $workflowType[, WorkflowOptions|null $options = null ]) : WorkflowStubInterface
Use WorkflowClient->start($workflowStub, ...$args) to start workflow asynchronously.
IMPORTANT! Stub is per workflow instance. So new stub should be created for each new one.
ParametersCreates workflow client stub that can be used to start a single workflow execution.
public newWorkflowStub(string $class[, WorkflowOptions|null $options = null ]) : T
The first call must be to a method annotated with WorkflowMethod. After workflow is started it can be also used to send signals or queries to it.
Use WorkflowClient->start($workflowStub, ...$args) to start workflow asynchronously.
IMPORTANT! Stub is per workflow instance. So new stub should be created for each new one.
ParametersStarts untyped and typed workflow stubs in async mode. Sends signal on start.
public signalWithStart(mixed $workflow, string $signal[, array<string|int, mixed> $signalArgs = [] ][, array<string|int, mixed> $startArgs = [] ]) : WorkflowRunInterface
Parameters
Starts workflow in async mode.
public start(mixed $workflow, mixed ...$args) : WorkflowRunInterface
Returns WorkflowRun object which can be used to wait for the execution result. WorkflowRun objects created by typed workflow stubs will attempt to type the execution result as well.
Parameters public startWithSignal(mixed $workflow, string $signal[, array<string|int, mixed> $signalArgs = [] ][, array<string|int, mixed> $startArgs = [] ]) : WorkflowRunInterface
Parameters
Starts untyped and typed workflow stubs in async mode. Sends Update on start.
public updateWithStart(mixed $workflow, string|UpdateOptions $update[, array<string|int, mixed> $updateArgs = [] ][, array<string|int, mixed> $startArgs = [] ]) : UpdateHandle
Parameters
Name of the update handler or update options.
private createReader() : ReaderInterface
Return valuesReaderInterface getStarter() WorkflowClient.php : 418 private getStarter() : WorkflowStarter
Return valuesWorkflowStarter
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4