Skip to main content

Run AWS Step Functions State Machine

Start an execution of a Standard AWS Step Functions state machine and wait for it to finish.

Category: Other

How it works

Run AWS Step Functions state machine '<<StateMachineArn>>'

To use this activity within the API, use an ActivityCode of STEP-FUNCTIONS-EXECUTION.

Example JSON​

An example of what the Task Config would look like for a task using this activity. Some of these variables would be set at the group level to avoid duplication between tasks.

{
"StateMachineArn": ""
}

Variable Reference​

The following variables are supported:

  • ExecutionInput (Optional) - Input to start the execution with, as a JSON object. TaskRunKey is always added.

  • IsFederated (Optional) - Makes task available to other Insight Factories within this organisation.

  • Links (Optional)

  • MaximumNumberOfAttemptsAllowed (Optional) - The total number of times the running of this Task can be attempted.

  • MaximumRunTimeHours (Optional) - The maximum number of hours a task run is expected to take. If a run exceeds this duration it will be flagged as stuck.

  • MinutesToWaitBeforeNextAttempt (Optional) - If a Task run fails, the number of minutes to wait before re-attempting the Task.

  • StateMachineArn (Required) - ARN of the Standard state machine to run, optionally qualified with a version or alias. Express state machines are not supported.