2 Answers
- Newest
- Most votes
- Most comments
1
Your Choice state should look at $states.input.type
, otherwise, it is looking for a variable names type, which you did not declare.
0
Hi Srini,
I tried to use your State machine query to execute. All you need to modify in your configuration is Condition
part as follows:
"Choice": {
"Type": "Choice",
"Choices": [
{
"Condition": "{% $states.input.type = 'Goal' %}",
"Next": "Goalstate"
},
{
"Condition": "{% $states.input.type = 'Assist' %}",
"Next": "Assistsstate"
}
],
"Default": "DefaultState"
}
This will make the state machine pass through to "Goal" state.
You can see a similar example here: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html
Thanks, Atul
answered 25 days ago
Relevant content
- asked 9 months ago
- asked 10 months ago
- asked 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago