@onlineapps/conn-orch-orchestrator 1.0.57 → 1.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/WorkflowOrchestrator.js +10 -2
package/package.json
CHANGED
|
@@ -152,9 +152,17 @@ class WorkflowOrchestrator {
|
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
154
|
|
|
155
|
-
// Execute the step (
|
|
155
|
+
// Execute the step (build full context for template resolution)
|
|
156
|
+
const stepsMap = {};
|
|
157
|
+
this._getStepsArray(cookbookDef).forEach((s) => {
|
|
158
|
+
const id = this._getStepId(s);
|
|
159
|
+
if (id) {
|
|
160
|
+
stepsMap[id] = s;
|
|
161
|
+
}
|
|
162
|
+
});
|
|
156
163
|
const stepContext = {
|
|
157
|
-
|
|
164
|
+
api_input: cookbookDef.api_input || {},
|
|
165
|
+
steps: stepsMap,
|
|
158
166
|
_system: cookbookDef._system,
|
|
159
167
|
delivery: cookbookDef.delivery
|
|
160
168
|
};
|