我正在尝试迁移使用 AWS 界面创建的 Step 函数,但在重现以下行为时遇到了问题:
根据条件,我希望任务 2 执行任务 3 并返回到任务 1,或者结束步骤函数。我的问题是图像上的红色路径
这是我现在的代码:
sfn.Chain.start(OtherTaskWeDoNotCare)
.next(task1)
.next(
new sfn.Choice(this, "task2").when(
sfn.Condition.booleanEquals("$.isFinished", false),
task3.next(task1) // This is not working
)
);
Run Code Online (Sandbox Code Playgroud)
希望可以有人帮帮我!提前致谢!