Interface IStateMachine
Represents a state machine interface.
Namespace: Innovt.Cloud.StateMachine
Assembly: Innovt.Cloud.dll
Syntax
public interface IStateMachine
Methods
| Edit this page View SourceSendTaskFailure(string, string, string, CancellationToken)
Sends a failure signal for a task to the state machine.
Declaration
Task SendTaskFailure(string taskToken, string reason, string taskError, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | taskToken | The token representing the task. |
string | reason | The reason for task failure. |
string | taskError | The error associated with the task failure. |
CancellationToken | cancellationToken | The cancellation token to cancel the asynchronous operation. |
Returns
Type | Description |
---|---|
Task | A task representing the asynchronous operation. |
SendTaskHeartbeat(string, CancellationToken)
Sends a heartbeat signal for a task to the state machine.
Declaration
Task SendTaskHeartbeat(string taskToken, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | taskToken | The token representing the task. |
CancellationToken | cancellationToken | The cancellation token to cancel the asynchronous operation. |
Returns
Type | Description |
---|---|
Task | A task representing the asynchronous operation. |
SendTaskSuccess(string, object, CancellationToken)
Sends a success signal for a task to the state machine.
Declaration
Task SendTaskSuccess(string taskToken, object output, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | taskToken | The token representing the task. |
object | output | The output of the task. |
CancellationToken | cancellationToken | The cancellation token to cancel the asynchronous operation. |
Returns
Type | Description |
---|---|
Task | A task representing the asynchronous operation. |
StartExecution(object, string, string, CancellationToken)
Starts the execution of the state machine.
Declaration
Task StartExecution(object input, string stateMachineArn, string executionId, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
object | input | The input for the state machine. |
string | stateMachineArn | The Amazon Resource Name (ARN) of the state machine. |
string | executionId | The execution ID for this execution. |
CancellationToken | cancellationToken | The cancellation token to cancel the asynchronous operation. |
Returns
Type | Description |
---|---|
Task | A task representing the asynchronous operation. |