@onlineapps/conn-orch-orchestrator 2.0.2 → 2.0.3
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": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
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-base-monitoring": "1.0.12",
|
|
25
25
|
"@onlineapps/conn-infra-mq": "1.1.70",
|
|
26
26
|
"@onlineapps/conn-orch-registry": "1.2.1",
|
|
27
|
-
"@onlineapps/conn-orch-cookbook": "2.1.
|
|
27
|
+
"@onlineapps/conn-orch-cookbook": "2.1.3"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"jest": "^29.5.0",
|
|
@@ -79,6 +79,8 @@ class WorkflowOrchestrator {
|
|
|
79
79
|
* legacy placements from transports that move AMQP headers onto the
|
|
80
80
|
* parsed message object. Returns undefined if none are set - the caller
|
|
81
81
|
* is responsible for fail-fast.
|
|
82
|
+
*
|
|
83
|
+
* @see api/docs/standards/workflow-message-contract.md
|
|
82
84
|
* @private
|
|
83
85
|
* @param {Object} message - Inbound workflow message
|
|
84
86
|
* @returns {string|undefined}
|
|
@@ -176,6 +178,7 @@ class WorkflowOrchestrator {
|
|
|
176
178
|
// correlation_id is required by RFC §5.8 — validated below inside the
|
|
177
179
|
// try block so malformed messages flow through the retry/DLQ pipeline
|
|
178
180
|
// and a `failed` monitoring event is emitted (no silent redelivery).
|
|
181
|
+
// @see api/docs/standards/workflow-message-contract.md
|
|
179
182
|
const correlationId = this._extractCorrelationId(message);
|
|
180
183
|
|
|
181
184
|
try {
|
|
@@ -635,7 +638,8 @@ class WorkflowOrchestrator {
|
|
|
635
638
|
data: context,
|
|
636
639
|
workflow_id: context?.workflow_id || null,
|
|
637
640
|
step_id: stepId,
|
|
638
|
-
service: serviceName || null
|
|
641
|
+
service: serviceName || null,
|
|
642
|
+
logger: this.logger
|
|
639
643
|
};
|
|
640
644
|
|
|
641
645
|
const resolvedInput = await this._resolveInputReferencesAsync(step.input, context, helperContext);
|
|
@@ -967,7 +971,8 @@ class WorkflowOrchestrator {
|
|
|
967
971
|
data: context,
|
|
968
972
|
workflow_id: context?.workflow_id || null,
|
|
969
973
|
step_id: stepId,
|
|
970
|
-
service: serviceName || null
|
|
974
|
+
service: serviceName || null,
|
|
975
|
+
logger: this.logger
|
|
971
976
|
};
|
|
972
977
|
|
|
973
978
|
const iteratorResolved = await this._resolveInputReferencesAsync(step.iterator, context, helperContext);
|
|
@@ -1021,7 +1026,8 @@ class WorkflowOrchestrator {
|
|
|
1021
1026
|
data: context,
|
|
1022
1027
|
workflow_id: context?.workflow_id || null,
|
|
1023
1028
|
step_id: stepId,
|
|
1024
|
-
service: serviceName || null
|
|
1029
|
+
service: serviceName || null,
|
|
1030
|
+
logger: this.logger
|
|
1025
1031
|
};
|
|
1026
1032
|
|
|
1027
1033
|
const value = await this._evaluateSwitchExpression(step.expression, context, helperContext);
|