AWS Step Function itemsPath 可能为空
AWS Step Function itemsPath potentially empty
我有一个有四个分支的 Parallel
州。每个分支由 Map
状态表示。
我将我的数组分块为 lambda 中 250 个项目的子数组,return 它,并通过 Step Function 上下文将其传递给 itemsPath
,例如:
itemsPath: '$.props0'
有时我的 4 个子数组中有 1 到 3 个是空的,这导致我的 SF 中的许多分支失败并出现以下错误:
Unable to apply step \"props1\" to input
有什么方法可以使 itemsPath
成为可选的吗?如果 itemsPath
不为空,则只有 运行 一个 Map
状态?
我在我的 lambda 中考虑了这一点,然后在 Choice
中利用了 Condition
,并调用了适当的 State
- 单个 Map
,或者我的我的 Parallel
.
中嵌套了四个 Map
我有一个有四个分支的 Parallel
州。每个分支由 Map
状态表示。
我将我的数组分块为 lambda 中 250 个项目的子数组,return 它,并通过 Step Function 上下文将其传递给 itemsPath
,例如:
itemsPath: '$.props0'
有时我的 4 个子数组中有 1 到 3 个是空的,这导致我的 SF 中的许多分支失败并出现以下错误:
Unable to apply step \"props1\" to input
有什么方法可以使 itemsPath
成为可选的吗?如果 itemsPath
不为空,则只有 运行 一个 Map
状态?
我在我的 lambda 中考虑了这一点,然后在 Choice
中利用了 Condition
,并调用了适当的 State
- 单个 Map
,或者我的我的 Parallel
.
Map