@onlineapps/conn-orch-orchestrator 1.0.26 → 1.0.27
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 +2 -2
- package/src/WorkflowOrchestrator.js +30 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onlineapps/conn-orch-orchestrator",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"description": "Workflow orchestration connector for OA Drive - handles message routing and workflow execution",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@onlineapps/conn-infra-mq": "^1.1.0",
|
|
25
25
|
"@onlineapps/conn-orch-registry": "^1.1.4",
|
|
26
26
|
"@onlineapps/conn-orch-cookbook": "^2.0.0",
|
|
27
|
-
"@onlineapps/conn-orch-api-mapper": "^1.0.
|
|
27
|
+
"@onlineapps/conn-orch-api-mapper": "^1.0.8"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"jest": "^29.5.0",
|
|
@@ -155,6 +155,21 @@ class WorkflowOrchestrator {
|
|
|
155
155
|
completed_at: new Date().toISOString()
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
+
// === STRUCTURED LOG: Context update ===
|
|
159
|
+
console.log(`[WorkflowOrchestrator:CONTEXT_UPDATE] ${JSON.stringify({
|
|
160
|
+
layer: 'orchestrator',
|
|
161
|
+
workflow_id: workflow_id,
|
|
162
|
+
step_id: stepId,
|
|
163
|
+
stored_output: {
|
|
164
|
+
_descriptor: result?._descriptor,
|
|
165
|
+
type: result?.type,
|
|
166
|
+
storage_ref: result?.storage_ref,
|
|
167
|
+
outputKeys: result && typeof result === 'object' ? Object.keys(result) : null
|
|
168
|
+
},
|
|
169
|
+
timestamp: new Date().toISOString()
|
|
170
|
+
})}`);
|
|
171
|
+
|
|
172
|
+
|
|
158
173
|
const updatedContext = {
|
|
159
174
|
...enrichedContext,
|
|
160
175
|
steps: existingSteps // Object keyed by step_id
|
|
@@ -335,6 +350,21 @@ class WorkflowOrchestrator {
|
|
|
335
350
|
context
|
|
336
351
|
);
|
|
337
352
|
|
|
353
|
+
// === STRUCTURED LOG: Step result ===
|
|
354
|
+
console.log(`[WorkflowOrchestrator:STEP_RESULT] ${JSON.stringify({
|
|
355
|
+
layer: 'orchestrator',
|
|
356
|
+
step_id: step.step_id,
|
|
357
|
+
service: step.service,
|
|
358
|
+
operation: step.operation,
|
|
359
|
+
result: {
|
|
360
|
+
_descriptor: result?._descriptor,
|
|
361
|
+
type: result?.type,
|
|
362
|
+
storage_ref: result?.storage_ref,
|
|
363
|
+
resultKeys: result && typeof result === 'object' ? Object.keys(result) : null
|
|
364
|
+
},
|
|
365
|
+
timestamp: new Date().toISOString()
|
|
366
|
+
})}`);
|
|
367
|
+
|
|
338
368
|
this.logger.info(`Task step executed`, {
|
|
339
369
|
step: step.step_id,
|
|
340
370
|
service: step.service,
|