我想按第一个调用的顺序调用函数,然后是第二个,第三个,第四个,然后结束。
我在 AWS 管理控制台中使用选择示例。
为什么第三个和第四个呼叫没有被击中?
AWS Step 函数代码 (JSON)
{
"Comment": "state functionality",
"StartAt": "FirstCall",
"States": {
"FirstCall": {
"Type": "Choice",
"Choices": [
{
"Not": {
"Resource": "rnName",
"Variable": "$.response",
"InputPath": "$",
"ResultPath": "$",
"OutputPath": "$",
"StringEquals": "Success Import"
},
"Next": "SecondCall"
},
{
"Variable": "$.response",
"StringEquals": "Success Import ",
"Next": "ThirdCall"
},
{
"And": [
{
"Variable": "$.response",
"StringEquals": "Success Import"
},
{
"Variable": "$.response",
"StringEquals": "Success Import"
}
],
"Next": "FourthCall"
}
]
},
"SecondCall": {
"Type": "Task",
"Resource": "rnName",
"Next": "BeforeEnd"
},
"ThirdCall": {
"Type": "Task",
"Resource": "rnName",
"Next": "BeforeEnd"
},
"FourthCall": {
"Type": "Task",
"Resource": "rnName",
"Next": "BeforeEnd"
},
"BeforeEnd": {
"Type": "Task",
"Resource": "rnName",
"End": true
}
}
}