@wmfs/statebox
Advanced tools
Comparing version 1.86.0 to 1.86.1
@@ -13,6 +13,6 @@ const ParentBaseState = require('./Parent-base-state') | ||
buildBranchExecutions (input, parentExecutionName) { | ||
buildBranchExecutions (input, parentExecutionName, executionOptions) { | ||
const branches = jp.value(input, this.itemsPath) | ||
return branches.map((item, index) => | ||
this.makeChildExecution(this.iterator, item, index, parentExecutionName) | ||
this.makeChildExecution(this.iterator, item, index, parentExecutionName, executionOptions) | ||
) | ||
@@ -19,0 +19,0 @@ } // buildBranchExecutions |
@@ -18,5 +18,5 @@ const ParentBaseState = require('./Parent-base-state') | ||
buildBranchExecutions (input, parentExecutionName) { | ||
buildBranchExecutions (input, parentExecutionName, executionOptions) { | ||
return this.branches.map((stateMachineName, index) => | ||
this.makeChildExecution(stateMachineName, input, index, parentExecutionName) | ||
this.makeChildExecution(stateMachineName, input, index, parentExecutionName, executionOptions) | ||
) | ||
@@ -23,0 +23,0 @@ } // buildBranchExecutions |
@@ -16,3 +16,4 @@ const BaseStateType = require('./Base-state') | ||
index, | ||
parentExecutionName | ||
parentExecutionName, | ||
executionOptions | ||
) { | ||
@@ -25,2 +26,3 @@ const branchContext = cloneDeep(input) | ||
{ | ||
...executionOptions, | ||
branchIndex: index, | ||
@@ -40,3 +42,7 @@ parentExecutionName, | ||
const branchExecutions = this.buildBranchExecutions(input, parentExecutionName) | ||
const branchExecutions = this.buildBranchExecutions( | ||
input, | ||
parentExecutionName, | ||
executionDescription.executionOptions | ||
) | ||
@@ -43,0 +49,0 @@ Promise |
{ | ||
"name": "@wmfs/statebox", | ||
"version": "1.86.0", | ||
"version": "1.86.1", | ||
"description": "Orchestrate Node functions using Amazon States Language", | ||
@@ -5,0 +5,0 @@ "author": "West Midlands Fire Service", |
@@ -11,4 +11,8 @@ { | ||
"Iterator": { | ||
"StartAt": "Validate", | ||
"StartAt": "Pass", | ||
"States": { | ||
"Pass": { | ||
"Type": "Pass", | ||
"Next": "Validate" | ||
}, | ||
"Validate": { | ||
@@ -15,0 +19,0 @@ "Type": "Task", |
Sorry, the diff of this file is too big to display
394700
7788