Skip to content

Commit 2d0e756

Browse files
committed
Work out examples
1 parent cf4ac46 commit 2d0e756

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

examples/json/5_parallel_and_choice.json

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
{
22
"Comment": "A simple example of the Steps language using an AWS Lambda Function",
3-
"StartAt": "Hello",
3+
"StartAt": "Parallel",
44

55
"States": {
6-
"Hello": {
7-
"Type": "Task",
8-
"Resource": "arn:aws:lambda:eu-west-1:99999999999:function:HelloWord_Step",
9-
"Next": "Parallel"
10-
},
11-
126
"Parallel": {
137
"Type": "Parallel",
148
"Next": "Goodbye",
@@ -24,8 +18,29 @@
2418
"Calculate Radius": {
2519
"Type": "Task",
2620
"Resource": "arn:aws:lambda:eu-west-1:9999999999:function:HelloWord_Step",
21+
"Retry": [
22+
{
23+
"ErrorEquals": ["ErrorA", "ErrorB"],
24+
"IntervalSeconds": 1,
25+
"BackoffRate": 2.0,
26+
"MaxAttempts": 2
27+
},
28+
{
29+
"ErrorEquals": ["ErrorG"],
30+
"IntervalSeconds": 5
31+
}
32+
],
33+
"Catch": [
34+
{
35+
"ErrorEquals": ["States.All"],
36+
"Next": "Radius error"
37+
}
38+
],
2739
"Next": "Calculate Area"
2840
},
41+
"Radius error": {
42+
"Type": "Fail"
43+
},
2944
"Calculate Area": {
3045
"Type": "Task",
3146
"Resource": "arn:aws:lambda:eu-west-1:9999999999:function:HelloWord_Step",

0 commit comments

Comments
 (0)