@onlineapps/conn-orch-orchestrator 1.0.107 → 1.0.109

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.107",
3
+ "version": "1.0.109",
4
4
  "description": "Workflow orchestration connector for OA Drive - handles message routing and workflow execution",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -25,7 +25,7 @@
25
25
  "@onlineapps/conn-infra-mq": "1.1.69",
26
26
  "@onlineapps/conn-orch-registry": "1.1.55",
27
27
  "@onlineapps/conn-orch-cookbook": "2.0.38",
28
- "@onlineapps/conn-orch-api-mapper": "1.0.31"
28
+ "@onlineapps/conn-orch-api-mapper": "1.0.33"
29
29
  },
30
30
  "devDependencies": {
31
31
  "jest": "^29.5.0",
@@ -34,10 +34,16 @@ class WorkflowOrchestrator {
34
34
  this.cookbook = config.cookbook;
35
35
  this.cache = config.cache;
36
36
  this.errorHandler = config.errorHandler;
37
- this.logger = config.logger || console;
38
- this.defaultTimeout = config.defaultTimeout || 30000;
37
+ if (!config.logger || typeof config.logger.warn !== 'function') {
38
+ throw new Error('[WorkflowOrchestrator] Logger is required — Expected object with warn() method');
39
+ }
40
+ this.logger = config.logger;
41
+ if (!config.defaultTimeout || typeof config.defaultTimeout !== 'number') {
42
+ throw new Error('[WorkflowOrchestrator] defaultTimeout is required — Expected number (ms)');
43
+ }
44
+ this.defaultTimeout = config.defaultTimeout;
39
45
 
40
- // Retry configuration for DLQ mechanism
46
+ // INTENTIONAL FALLBACK: operational defaults — see docs/standards/FALLBACKS_INVENTORY.md §5.2
41
47
  this.retryConfig = {
42
48
  maxAttempts: config.maxRetryAttempts || 3,
43
49
  baseDelay: config.retryBaseDelay || 1000,