1{
2 "states": [
3 {
4 "name": "onboarding",
5 "defaultSubState": "onboarding",
6 "subStates": [{
7 "name": "onboarding",
8 "transitions": [{
9 "eventCode": "E-001",
10 "destination": "active:active"
11
12 }],
13 "ttl": {
14 "time": "40s",
15 "destination": "onboarding:onboarding"
16 }
17 }]
18 },{
19 "name": "active",
20 "defaultSubState": "active",
21 "subStates": [{
22 "name": "active",
23 "transitions": [{
24 "eventCode": "E-002",
25 "destination": "inactive:inactive"
26
27 }],
28 "ttl": {
29 "time": "40s",
30 "destination": "active:active"
31 }
32 }]
33 },{
34 "name": "inactive",
35 "defaultSubState": "inactive",
36 "subStates": [{
37 "name": "inactive",
38 "transitions": [{
39 "eventCode": "E-004",
40 "destination": "inactive:inactive"
41
42 }],
43 "ttl": {
44 "time": "40s",
45 "destination": "inactive:inactive"
46 }
47 }]
48 }
49 ],
50 "terminalTTL": "300s",
51 "callback": "https://examplecallback.com"
52}