ChildWorkflowInvocationCacheInterface
in
Table of Contents
Methods
- clear() : void
- get() : InvocationResult|InvocationFailure|InvocationMatched
- getVersion() : int
- has() : bool
- hasSideEffect() : bool
- hasVersion() : bool
- nextSideEffect() : mixed
- recordInvoked() : void
- saveCompletion() : void
- saveCompletionWhen() : void
- saveFailure() : void
- saveSideEffect() : void
- saveVersion() : void
- wasInvoked() : bool
Methods
clear()
public
clear() : void
get()
public
get(non-empty-string $workflowType) : InvocationResult|InvocationFailure|InvocationMatched
Parameters
- $workflowType : non-empty-string
Return values
InvocationResult|InvocationFailure|InvocationMatchedgetVersion()
public
getVersion(string $changeId) : int
Parameters
- $changeId : string
Return values
inthas()
public
has(non-empty-string $workflowType) : bool
Parameters
- $workflowType : non-empty-string
Return values
boolhasSideEffect()
public
hasSideEffect() : bool
Return values
boolhasVersion()
public
hasVersion(string $changeId) : bool
Parameters
- $changeId : string
Return values
boolnextSideEffect()
public
nextSideEffect() : mixed
recordInvoked()
public
recordInvoked(non-empty-string $workflowType) : void
Parameters
- $workflowType : non-empty-string
saveCompletion()
public
saveCompletion(non-empty-string $workflowType, mixed $value) : void
Parameters
- $workflowType : non-empty-string
- $value : mixed
-
Child workflow result: anything the DataConverter can encode, or an EncodedValues.
saveCompletionWhen()
public
saveCompletionWhen(non-empty-string $workflowType, array<string|int, mixed> $args, mixed $value) : void
Parameters
- $workflowType : non-empty-string
- $args : array<string|int, mixed>
-
Start arguments to byte-match against, encoded via the DataConverter.
- $value : mixed
-
Result returned on a match: anything the DataConverter can encode, or an EncodedValues.
saveFailure()
public
saveFailure(non-empty-string $workflowType, Throwable $error) : void
Parameters
- $workflowType : non-empty-string
- $error : Throwable
saveSideEffect()
public
saveSideEffect(mixed $value) : void
Parameters
- $value : mixed
-
Side-effect result: anything the DataConverter can encode.
saveVersion()
public
saveVersion(string $changeId, int $version) : void
Parameters
- $changeId : string
- $version : int
wasInvoked()
public
wasInvoked(non-empty-string $workflowType) : bool
Parameters
- $workflowType : non-empty-string