@onlineapps/conn-orch-orchestrator 1.0.56 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlineapps/conn-orch-orchestrator",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "description": "Workflow orchestration connector for OA Drive - handles message routing and workflow execution",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -152,9 +152,17 @@ class WorkflowOrchestrator {
152
152
  }
153
153
  };
154
154
 
155
- // Execute the step (pass api_input from cookbook as context for operations)
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
- ...cookbookDef.api_input,
164
+ api_input: cookbookDef.api_input || {},
165
+ steps: stepsMap,
158
166
  _system: cookbookDef._system,
159
167
  delivery: cookbookDef.delivery
160
168
  };