Advertisement
Guest User

Untitled

a guest
Nov 15th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. {
  2. "Comment": "Ats-Athena",
  3. "StartAt": "AtsState",
  4. "TimeoutSeconds": 10,
  5. "Version": "1.0",
  6.  
  7. "States": {
  8. "AtsState": {
  9. "Type": "Task",
  10. "Resource": "function:Ats",
  11. "Next": "ChoiceState",
  12. "TimeoutSeconds": 5,
  13. "HeartbeatSeconds": 2,
  14. "DataInputMode": "Stream",
  15. "InputPath": "$.input",
  16. "ResultPath": "$.atsrst",
  17. "OutputPath": "$.atsrst",
  18.  
  19. "Retry": [
  20. {
  21. "ErrorEquals": ["States.Timeout"],
  22. "IntervalSeconds": 0,
  23. "BackoffRate": 0,
  24. "MaxAttempts": 1
  25. }
  26. ],
  27. "Catch": [
  28. {
  29. "ErrorEquals": ["States.ALL"],
  30. "Next": "TaskFailState"
  31. }
  32. ]
  33. },
  34.  
  35. "TaskFailState": {
  36. "Type": "Fail",
  37. "Error": "States.TaskFailed",
  38. "Cause": "Task Failed!"
  39. },
  40.  
  41. "ChoiceState": {
  42. "Type" : "Choice",
  43. "OutputPath": "$.text",
  44. "Choices": [
  45. {
  46. "Variable": "$.ret",
  47. "NumericEquals": 0,
  48. "Next": "AthenaState"
  49. },
  50. {
  51. "Not": {
  52. "Variable": "$.ret",
  53. "NumericEquals": 0
  54. },
  55. "Next": "AtsErrorState"
  56. }
  57. ],
  58. "Default": "DefaultState"
  59. },
  60.  
  61. "AtsErrorState": {
  62. "Type": "Fail",
  63. "Error": "AtsError",
  64. "Cause": "Ats Error Occurs!"
  65. },
  66.  
  67. "DefaultState": {
  68. "Type": "Fail",
  69. "Error": "DefaultStateError",
  70. "Cause": "No Choice Matches!"
  71. },
  72.  
  73. "AthenaState": {
  74. "Type": "Task",
  75. "Resource": "function:Athena",
  76. "End": true,
  77. "TimeoutSeconds": 5,
  78. "HeartbeatSeconds": 2,
  79. "ResultPath": "$.output",
  80. "OutputPath": "$.output",
  81.  
  82. "Retry": [
  83. {
  84. "ErrorEquals": ["States.Timeout"],
  85. "IntervalSeconds": 0,
  86. "BackoffRate": 0,
  87. "MaxAttempts": 1
  88. }
  89. ],
  90. "Catch": [
  91. {
  92. "ErrorEquals": ["States.ALL"],
  93. "Next": "TaskFailState"
  94. }
  95. ]
  96. }
  97. }
  98. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement