Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds AWS Step Functions state machines in Amazon States Language using JSONata, covering states, error handling, and JSONPath migration.
82% 95%+14 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 18 of 22 without it.
3 of 3 safety checks passed
Not used yet
| Field | Purpose | Available In |
|---|---|---|
Type | State type identifier | Task, Parallel, Map, Pass, Wait, Choice, Succeed, Fail |
Comment | Human-readable description | Task, Parallel, Map, Pass, Wait, Choice, Succeed, Fail |
Output | Transform state output | Task, Parallel, Map, Pass, Wait, Choice, Succeed |
Assign | Store workflow variables | Task, Parallel, Map, Pass, Wait, Choice |
Next / End | Transition control | Task, Parallel, Map, Pass, Wait |
Arguments | Input to task/branches | Task, Parallel |
Retry & Catch | Error handling | Task, Parallel, Map |
Items | a JSON array, a JSON object, or a JSONata expression | Map |
ItemSelector | Reshape each item before processing | Map |
Condition | Boolean branching | Choice (inside rules) |
Error & Cause | Error name and description (accept JSONata) | Fail |
$states Reserved VariableStep Functions provides a reserved $states variable in every JSONata state:
$states = {
"input": // Original input to the state
"result": // Task/Parallel/Map result (if successful)
"errorOutput": // Error Output (only available in Catch)
"context": // Context object (execution metadata)
}
| Path | Type | Description |
|---|---|---|
$states.context.Execution.Id | String | Execution ARN |
$states.context.Execution.Input | Object | Original workflow input |
$states.context.Execution.Name | String | Execution name |
$states.context.Execution.RoleArn | String | IAM execution role |
$states.context.Execution.StartTime | String (ISO 8601) | When execution started |
Next to this one in the catalogue, plus more from the same author.