@dbos-inc/dbos-sdk 1.12.11 → 1.12.13-preview.g7a8a447e44

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. package/dist/schemas/system_db_schema.d.ts +0 -2
  2. package/dist/schemas/system_db_schema.d.ts.map +1 -1
  3. package/dist/src/communicator.d.ts +1 -1
  4. package/dist/src/communicator.d.ts.map +1 -1
  5. package/dist/src/communicator.js.map +1 -1
  6. package/dist/src/dbos-executor.d.ts +11 -27
  7. package/dist/src/dbos-executor.d.ts.map +1 -1
  8. package/dist/src/dbos-executor.js +46 -139
  9. package/dist/src/dbos-executor.js.map +1 -1
  10. package/dist/src/debugger/debug_workflow.d.ts +5 -14
  11. package/dist/src/debugger/debug_workflow.d.ts.map +1 -1
  12. package/dist/src/debugger/debug_workflow.js +18 -74
  13. package/dist/src/debugger/debug_workflow.js.map +1 -1
  14. package/dist/src/decorators.d.ts +2 -19
  15. package/dist/src/decorators.d.ts.map +1 -1
  16. package/dist/src/decorators.js +27 -104
  17. package/dist/src/decorators.js.map +1 -1
  18. package/dist/src/httpServer/handler.d.ts +15 -22
  19. package/dist/src/httpServer/handler.d.ts.map +1 -1
  20. package/dist/src/httpServer/handler.js +35 -44
  21. package/dist/src/httpServer/handler.js.map +1 -1
  22. package/dist/src/httpServer/handlerTypes.d.ts +1 -4
  23. package/dist/src/httpServer/handlerTypes.d.ts.map +1 -1
  24. package/dist/src/httpServer/handlerTypes.js +0 -3
  25. package/dist/src/httpServer/handlerTypes.js.map +1 -1
  26. package/dist/src/httpServer/server.d.ts.map +1 -1
  27. package/dist/src/httpServer/server.js +10 -34
  28. package/dist/src/httpServer/server.js.map +1 -1
  29. package/dist/src/index.d.ts +2 -2
  30. package/dist/src/index.d.ts.map +1 -1
  31. package/dist/src/index.js +1 -7
  32. package/dist/src/index.js.map +1 -1
  33. package/dist/src/kafka/kafka.d.ts +3 -2
  34. package/dist/src/kafka/kafka.d.ts.map +1 -1
  35. package/dist/src/kafka/kafka.js +13 -2
  36. package/dist/src/kafka/kafka.js.map +1 -1
  37. package/dist/src/scheduler/scheduler.d.ts +8 -4
  38. package/dist/src/scheduler/scheduler.d.ts.map +1 -1
  39. package/dist/src/scheduler/scheduler.js +9 -2
  40. package/dist/src/scheduler/scheduler.js.map +1 -1
  41. package/dist/src/system_database.d.ts +0 -2
  42. package/dist/src/system_database.d.ts.map +1 -1
  43. package/dist/src/system_database.js +4 -61
  44. package/dist/src/system_database.js.map +1 -1
  45. package/dist/src/testing/testing_runtime.d.ts +5 -9
  46. package/dist/src/testing/testing_runtime.d.ts.map +1 -1
  47. package/dist/src/testing/testing_runtime.js +12 -24
  48. package/dist/src/testing/testing_runtime.js.map +1 -1
  49. package/dist/src/transaction.d.ts +1 -1
  50. package/dist/src/transaction.d.ts.map +1 -1
  51. package/dist/src/utils.d.ts +0 -1
  52. package/dist/src/utils.d.ts.map +1 -1
  53. package/dist/src/utils.js +1 -5
  54. package/dist/src/utils.js.map +1 -1
  55. package/dist/src/workflow.d.ts +10 -46
  56. package/dist/src/workflow.d.ts.map +1 -1
  57. package/dist/src/workflow.js +20 -72
  58. package/dist/src/workflow.js.map +1 -1
  59. package/dist/tsconfig.build.tsbuildinfo +1 -1
  60. package/package.json +2 -2
  61. package/migrations/20240517000000_status_class_config.js +0 -18
@@ -2,8 +2,6 @@ export interface workflow_status {
2
2
  workflow_uuid: string;
3
3
  status: string;
4
4
  name: string;
5
- class_name?: string;
6
- config_name?: string;
7
5
  authenticated_user: string;
8
6
  output: string;
9
7
  error: string;
@@ -1 +1 @@
1
- {"version":3,"file":"system_db_schema.d.ts","sourceRoot":"","sources":["../../schemas/system_db_schema.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MA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,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;CACvB"}
@@ -3,7 +3,7 @@ import { GlobalLogger as Logger } from "./telemetry/logs";
3
3
  import { WorkflowContextImpl } from "./workflow";
4
4
  import { DBOSContext, DBOSContextImpl } from "./context";
5
5
  import { WorkflowContextDebug } from "./debugger/debug_workflow";
6
- export type Communicator<T extends unknown[], R> = (ctxt: CommunicatorContext, ...args: T) => Promise<R>;
6
+ export type Communicator<T extends any[], R> = (ctxt: CommunicatorContext, ...args: T) => Promise<R>;
7
7
  export interface CommunicatorConfig {
8
8
  retriesAllowed?: boolean;
9
9
  intervalSeconds?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"communicator.d.ts","sourceRoot":"","sources":["../../src/communicator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B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C;QAC3C,IAAI,CAAC,iBAAiB,GAAG,eAAe,CAAC,iBAAiB,CAAC;IAC7D,CAAC;CACF;AAjBD,0DAiBC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { Workflow, WorkflowConfig, WorkflowHandle, WorkflowParams, WorkflowStatus, BufferedResult } from './workflow';
2
+ import { Workflow, WorkflowConfig, WorkflowHandle, WorkflowParams, BufferedResult } from './workflow';
3
3
  import { Transaction, TransactionConfig } from './transaction';
4
4
  import { CommunicatorConfig, Communicator } from './communicator';
5
5
  import { TelemetryCollector } from './telemetry/collector';
@@ -9,7 +9,7 @@ import { TelemetryConfig } from './telemetry';
9
9
  import { PoolConfig } from 'pg';
10
10
  import { SystemDatabase } from './system_database';
11
11
  import { UserDatabase, UserDatabaseName } from './user_database';
12
- import { MethodRegistrationBase, ConfiguredInstance } from './decorators';
12
+ import { MethodRegistrationBase } from './decorators';
13
13
  export interface DBOSNull {
14
14
  }
15
15
  export declare const dbosNull: DBOSNull;
@@ -29,21 +29,20 @@ export interface DBOSConfig {
29
29
  };
30
30
  }
31
31
  interface WorkflowInfo {
32
- workflow: Workflow<unknown[], unknown>;
32
+ workflow: Workflow<any, any>;
33
33
  config: WorkflowConfig;
34
34
  }
35
35
  interface TransactionInfo {
36
- transaction: Transaction<unknown[], unknown>;
36
+ transaction: Transaction<any, any>;
37
37
  config: TransactionConfig;
38
38
  }
39
39
  interface CommunicatorInfo {
40
- communicator: Communicator<unknown[], unknown>;
40
+ communicator: Communicator<any, any>;
41
41
  config: CommunicatorConfig;
42
42
  }
43
43
  interface InternalWorkflowParams extends WorkflowParams {
44
44
  readonly tempWfType?: string;
45
45
  readonly tempWfName?: string;
46
- readonly tempWfClass?: string;
47
46
  }
48
47
  export declare const OperationType: {
49
48
  readonly HANDLER: "handler";
@@ -79,29 +78,14 @@ export declare class DBOSExecutor {
79
78
  configureDbClient(): void;
80
79
  init(...classes: object[]): Promise<void>;
81
80
  destroy(): Promise<void>;
82
- getWorkflowInfo(wf: Workflow<unknown[], unknown>): WorkflowInfo | undefined;
83
- getWorkflowInfoByStatus(wf: WorkflowStatus): {
84
- wfInfo: WorkflowInfo | undefined;
85
- configuredInst: ConfiguredInstance | null;
86
- };
87
- getTransactionInfo(tf: Transaction<unknown[], unknown>): TransactionInfo | undefined;
88
- getTransactionInfoByNames(className: string, functionName: string, cfgName: string): {
89
- txnInfo: TransactionInfo | undefined;
90
- clsInst: ConfiguredInstance | null;
91
- };
92
- getCommunicatorInfo(cf: Communicator<unknown[], unknown>): CommunicatorInfo | undefined;
93
- getCommunicatorInfoByNames(className: string, functionName: string, cfgName: string): {
94
- commInfo: CommunicatorInfo | undefined;
95
- clsInst: ConfiguredInstance | null;
96
- };
97
- workflow<T extends unknown[], R>(wf: Workflow<T, R>, params: InternalWorkflowParams, ...args: T): Promise<WorkflowHandle<R>>;
98
- internalWorkflow<T extends unknown[], R>(wf: Workflow<T, R>, params: InternalWorkflowParams, callerUUID?: string, callerFunctionID?: number, ...args: T): Promise<WorkflowHandle<R>>;
81
+ workflow<T extends any[], R>(wf: Workflow<T, R>, params: InternalWorkflowParams, ...args: T): Promise<WorkflowHandle<R>>;
82
+ internalWorkflow<T extends any[], R>(wf: Workflow<T, R>, params: InternalWorkflowParams, callerUUID?: string, callerFunctionID?: number, ...args: T): Promise<WorkflowHandle<R>>;
99
83
  /**
100
84
  * DEBUG MODE workflow execution, skipping all the recording
101
85
  */
102
- debugWorkflow<T extends unknown[], R>(wf: Workflow<T, R>, params: WorkflowParams, callerUUID?: string, callerFunctionID?: number, ...args: T): Promise<WorkflowHandle<R>>;
103
- transaction<T extends unknown[], R>(txn: Transaction<T, R>, params: WorkflowParams, ...args: T): Promise<R>;
104
- external<T extends unknown[], R>(commFn: Communicator<T, R>, params: WorkflowParams, ...args: T): Promise<R>;
86
+ debugWorkflow<T extends any[], R>(wf: Workflow<T, R>, params: WorkflowParams, callerUUID?: string, callerFunctionID?: number, ...args: T): Promise<WorkflowHandle<R>>;
87
+ transaction<T extends any[], R>(txn: Transaction<T, R>, params: WorkflowParams, ...args: T): Promise<R>;
88
+ external<T extends any[], R>(commFn: Communicator<T, R>, params: WorkflowParams, ...args: T): Promise<R>;
105
89
  send<T>(destinationUUID: string, message: T, topic?: string, idempotencyKey?: string): Promise<void>;
106
90
  /**
107
91
  * Wait for a workflow to emit an event, then return its value.
@@ -115,7 +99,7 @@ export declare class DBOSExecutor {
115
99
  * A recovery process that by default runs during executor init time.
116
100
  * It runs to completion all pending workflows that were executing when the previous executor failed.
117
101
  */
118
- recoverPendingWorkflows(executorIDs?: string[]): Promise<WorkflowHandle<unknown>[]>;
102
+ recoverPendingWorkflows(executorIDs?: string[]): Promise<WorkflowHandle<any>[]>;
119
103
  executeWorkflowUUID(workflowUUID: string): Promise<WorkflowHandle<unknown>>;
120
104
  /**
121
105
  * Periodically flush the workflow output buffer to the system database.
@@ -1 +1 @@
1
- {"version":3,"file":"dbos-executor.d.ts","sourceRoot":"","sources":["../../src/dbos-executor.ts"],"names":[],"mappings":";AAQA,OAAO,EAEL,QAAQ,EACR,cAAc,EAEd,cAAc,EACd,cAAc,EAGd,cAAc,EAEd,cAAc,EACf,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,cAAc,EAAkD,MAAM,mBAAmB,CAAC;AAEnG,OAAO,EAGL,YAAY,EAEZ,gBAA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AAC,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,cAAc,GAAE,MAAmD,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IAI5I;;OAEG;IACH,gBAAgB,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC;IAS5D;;;OAGG;IACG,uBAAuB,CAAC,WAAW,GAAE,MAAM,EAAc,GAAG,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC;IAuB1F,mBAAmB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAkFjF;;OAEG;IACG,oBAAoB;IAQpB,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC;IAiDhD,qBAAqB;CAatB"}
@@ -191,13 +191,19 @@ class DBOSExecutor {
191
191
  this.registeredOperations.push(...registeredClassOperations);
192
192
  for (const ro of registeredClassOperations) {
193
193
  if (ro.workflowConfig) {
194
- this.#registerWorkflow(ro);
194
+ const wf = ro.registeredFunction;
195
+ this.#registerWorkflow(wf, { ...ro.workflowConfig });
196
+ this.logger.debug(`Registered workflow ${ro.name}`);
195
197
  }
196
198
  else if (ro.txnConfig) {
197
- this.#registerTransaction(ro);
199
+ const tx = ro.registeredFunction;
200
+ this.#registerTransaction(tx, ro.txnConfig);
201
+ this.logger.debug(`Registered transaction ${ro.name}`);
198
202
  }
199
203
  else if (ro.commConfig) {
200
- this.#registerCommunicator(ro);
204
+ const comm = ro.registeredFunction;
205
+ this.#registerCommunicator(comm, ro.commConfig);
206
+ this.logger.debug(`Registered communicator ${ro.name}`);
201
207
  }
202
208
  }
203
209
  }
@@ -236,13 +242,6 @@ class DBOSExecutor {
236
242
  this.initialized = true;
237
243
  // Only execute init code if under non-debug mode
238
244
  if (!this.debugMode) {
239
- for (const cls of classes) {
240
- // Init its configurations
241
- const creg = (0, decorators_1.getOrCreateClassRegistration)(cls);
242
- for (const [_cfgname, cfg] of creg.configuredInstances) {
243
- await cfg.initialize(new context_1.InitContext(this));
244
- }
245
- }
246
245
  for (const v of this.registeredOperations) {
247
246
  const m = v;
248
247
  if (m.init === true) {
@@ -272,112 +271,35 @@ class DBOSExecutor {
272
271
  await this.logger.destroy();
273
272
  }
274
273
  /* WORKFLOW OPERATIONS */
275
- #registerWorkflow(ro) {
276
- const wf = ro.registeredFunction;
277
- if (wf.name === DBOSExecutor.tempWorkflowName) {
278
- throw new error_1.DBOSError(`Unexpected use of reserved workflow name: ${wf.name}`);
279
- }
280
- const wfn = ro.className + '.' + ro.name;
281
- if (this.workflowInfoMap.has(wfn)) {
282
- throw new error_1.DBOSError(`Repeated workflow name: ${wfn}`);
274
+ #registerWorkflow(wf, config = {}) {
275
+ if (wf.name === DBOSExecutor.tempWorkflowName || this.workflowInfoMap.has(wf.name)) {
276
+ throw new error_1.DBOSError(`Repeated workflow name: ${wf.name}`);
283
277
  }
284
278
  const workflowInfo = {
285
279
  workflow: wf,
286
- config: { ...ro.workflowConfig },
280
+ config: config,
287
281
  };
288
- this.workflowInfoMap.set(wfn, workflowInfo);
289
- this.logger.debug(`Registered workflow ${wfn}`);
282
+ this.workflowInfoMap.set(wf.name, workflowInfo);
290
283
  }
291
- #registerTransaction(ro) {
292
- const txf = ro.registeredFunction;
293
- const tfn = ro.className + '.' + ro.name;
294
- if (this.transactionInfoMap.has(tfn)) {
295
- throw new error_1.DBOSError(`Repeated Transaction name: ${tfn}`);
284
+ #registerTransaction(txn, params = {}) {
285
+ if (this.transactionInfoMap.has(txn.name)) {
286
+ throw new error_1.DBOSError(`Repeated Transaction name: ${txn.name}`);
296
287
  }
297
288
  const txnInfo = {
298
- transaction: txf,
299
- config: { ...ro.txnConfig },
289
+ transaction: txn,
290
+ config: params,
300
291
  };
301
- this.transactionInfoMap.set(tfn, txnInfo);
302
- this.logger.debug(`Registered transaction ${tfn}`);
292
+ this.transactionInfoMap.set(txn.name, txnInfo);
303
293
  }
304
- #registerCommunicator(ro) {
305
- const comm = ro.registeredFunction;
306
- const cfn = ro.className + '.' + ro.name;
307
- if (this.communicatorInfoMap.has(cfn)) {
308
- throw new error_1.DBOSError(`Repeated Commmunicator name: ${cfn}`);
294
+ #registerCommunicator(comm, params = {}) {
295
+ if (this.communicatorInfoMap.has(comm.name)) {
296
+ throw new error_1.DBOSError(`Repeated Commmunicator name: ${comm.name}`);
309
297
  }
310
298
  const commInfo = {
311
299
  communicator: comm,
312
- config: { ...ro.commConfig },
300
+ config: params,
313
301
  };
314
- this.communicatorInfoMap.set(cfn, commInfo);
315
- this.logger.debug(`Registered communicator ${cfn}`);
316
- }
317
- getWorkflowInfo(wf) {
318
- const wfname = (wf.name === DBOSExecutor.tempWorkflowName)
319
- ? wf.name
320
- : (0, decorators_1.getRegisteredMethodClassName)(wf) + '.' + wf.name;
321
- return this.workflowInfoMap.get(wfname);
322
- }
323
- getWorkflowInfoByStatus(wf) {
324
- const wfname = wf.workflowClassName + '.' + wf.workflowName;
325
- let wfInfo = this.workflowInfoMap.get(wfname);
326
- if (!wfInfo && !wf.workflowClassName) {
327
- for (const [_wfn, wfr] of this.workflowInfoMap) {
328
- if (wf.workflowName === wfr.workflow.name) {
329
- if (wfInfo) {
330
- throw new error_1.DBOSError(`Recovered workflow function name '${wf.workflowName}' is ambiguous. The ambiguous name was recently added; remove it and recover pending workflows before re-adding the new function.`);
331
- }
332
- else {
333
- wfInfo = wfr;
334
- }
335
- }
336
- }
337
- }
338
- return { wfInfo, configuredInst: (0, decorators_1.getConfiguredInstance)(wf.workflowClassName, wf.workflowConfigName) };
339
- }
340
- getTransactionInfo(tf) {
341
- const tfname = (0, decorators_1.getRegisteredMethodClassName)(tf) + '.' + tf.name;
342
- return this.transactionInfoMap.get(tfname);
343
- }
344
- getTransactionInfoByNames(className, functionName, cfgName) {
345
- const tfname = className + '.' + functionName;
346
- let txnInfo = this.transactionInfoMap.get(tfname);
347
- if (!txnInfo && !className) {
348
- for (const [_wfn, tfr] of this.transactionInfoMap) {
349
- if (functionName === tfr.transaction.name) {
350
- if (txnInfo) {
351
- throw new error_1.DBOSError(`Recovered transaction function name '${functionName}' is ambiguous. The ambiguous name was recently added; remove it and recover pending workflows before re-adding the new function.`);
352
- }
353
- else {
354
- txnInfo = tfr;
355
- }
356
- }
357
- }
358
- }
359
- return { txnInfo, clsInst: (0, decorators_1.getConfiguredInstance)(className, cfgName) };
360
- }
361
- getCommunicatorInfo(cf) {
362
- const cfname = (0, decorators_1.getRegisteredMethodClassName)(cf) + '.' + cf.name;
363
- return this.communicatorInfoMap.get(cfname);
364
- }
365
- getCommunicatorInfoByNames(className, functionName, cfgName) {
366
- const cfname = className + '.' + functionName;
367
- let commInfo = this.communicatorInfoMap.get(cfname);
368
- if (!commInfo && !className) {
369
- for (const [_wfn, cfr] of this.communicatorInfoMap) {
370
- if (functionName === cfr.communicator.name) {
371
- if (commInfo) {
372
- throw new error_1.DBOSError(`Recovered communicator function name '${functionName}' is ambiguous. The ambiguous name was recently added; remove it and recover pending workflows before re-adding the new function.`);
373
- }
374
- else {
375
- commInfo = cfr;
376
- }
377
- }
378
- }
379
- }
380
- return { commInfo, clsInst: (0, decorators_1.getConfiguredInstance)(className, cfgName) };
302
+ this.communicatorInfoMap.set(comm.name, commInfo);
381
303
  }
382
304
  async workflow(wf, params, ...args) {
383
305
  if (this.debugMode) {
@@ -389,7 +311,7 @@ class DBOSExecutor {
389
311
  async internalWorkflow(wf, params, callerUUID, callerFunctionID, ...args) {
390
312
  const workflowUUID = params.workflowUUID ? params.workflowUUID : this.#generateUUID();
391
313
  const presetUUID = params.workflowUUID ? true : false;
392
- const wInfo = this.getWorkflowInfo(wf);
314
+ const wInfo = this.workflowInfoMap.get(wf.name);
393
315
  if (wInfo === undefined) {
394
316
  throw new error_1.DBOSNotRegisteredError(wf.name);
395
317
  }
@@ -403,8 +325,6 @@ class DBOSExecutor {
403
325
  workflowUUID: workflowUUID,
404
326
  status: workflow_1.StatusString.PENDING,
405
327
  name: wf.name,
406
- className: wCtxt.isTempWorkflow ? "" : (0, decorators_1.getRegisteredMethodClassName)(wf),
407
- configName: params.configuredInstance?.name || "",
408
328
  authenticatedUser: wCtxt.authenticatedUser,
409
329
  output: undefined,
410
330
  error: "",
@@ -416,7 +336,6 @@ class DBOSExecutor {
416
336
  };
417
337
  if (wCtxt.isTempWorkflow) {
418
338
  internalStatus.name = `${DBOSExecutor.tempWorkflowName}-${wCtxt.tempWfOperationType}-${wCtxt.tempWfOperationName}`;
419
- internalStatus.className = params.tempWfClass ?? "";
420
339
  }
421
340
  // Synchronously set the workflow's status to PENDING and record workflow inputs (for non single-transaction workflows).
422
341
  // We have to do it for all types of workflows because operation_outputs table has a foreign key constraint on workflow status table.
@@ -427,7 +346,7 @@ class DBOSExecutor {
427
346
  let result;
428
347
  // Execute the workflow.
429
348
  try {
430
- result = await wf.call(params.configuredInstance, wCtxt, ...args);
349
+ result = await wf(wCtxt, ...args);
431
350
  internalStatus.output = result;
432
351
  internalStatus.status = workflow_1.StatusString.SUCCESS;
433
352
  this.systemDatabase.bufferWorkflowOutput(workflowUUID, internalStatus);
@@ -493,7 +412,7 @@ class DBOSExecutor {
493
412
  throw new error_1.DBOSDebuggerError("Workflow UUID not found!");
494
413
  }
495
414
  const workflowUUID = params.workflowUUID;
496
- const wInfo = this.getWorkflowInfo(wf);
415
+ const wInfo = this.workflowInfoMap.get(wf.name);
497
416
  if (wInfo === undefined) {
498
417
  throw new error_1.DBOSDebuggerError("Workflow unregistered! " + wf.name);
499
418
  }
@@ -509,7 +428,7 @@ class DBOSExecutor {
509
428
  if (JSON.stringify(args) !== JSON.stringify(recordedInputs)) {
510
429
  throw new error_1.DBOSDebuggerError(`Detect different input for the workflow UUID ${workflowUUID}!\n Received: ${JSON.stringify(args)}\n Original: ${JSON.stringify(recordedInputs)}`);
511
430
  }
512
- const workflowPromise = wf.call(params.configuredInstance, wCtxt, ...args)
431
+ const workflowPromise = wf(wCtxt, ...args)
513
432
  .then(async (result) => {
514
433
  // Check if the result is the same.
515
434
  const recordedResult = await this.systemDatabase.getWorkflowResult(workflowUUID);
@@ -527,27 +446,17 @@ class DBOSExecutor {
527
446
  // Create a workflow and call transaction.
528
447
  const temp_workflow = async (ctxt, ...args) => {
529
448
  const ctxtImpl = ctxt;
530
- return await ctxtImpl.transaction(txn, params.configuredInstance ?? null, ...args);
449
+ return await ctxtImpl.transaction(txn, ...args);
531
450
  };
532
- return (await this.workflow(temp_workflow, {
533
- ...params,
534
- tempWfType: TempWorkflowType.transaction,
535
- tempWfName: (0, decorators_1.getRegisteredMethodName)(txn),
536
- tempWfClass: (0, decorators_1.getRegisteredMethodClassName)(txn),
537
- }, ...args)).getResult();
451
+ return (await this.workflow(temp_workflow, { ...params, tempWfType: TempWorkflowType.transaction, tempWfName: txn.name }, ...args)).getResult();
538
452
  }
539
453
  async external(commFn, params, ...args) {
540
454
  // Create a workflow and call external.
541
455
  const temp_workflow = async (ctxt, ...args) => {
542
456
  const ctxtImpl = ctxt;
543
- return await ctxtImpl.external(commFn, params.configuredInstance ?? null, ...args);
457
+ return await ctxtImpl.external(commFn, ...args);
544
458
  };
545
- return (await this.workflow(temp_workflow, {
546
- ...params,
547
- tempWfType: TempWorkflowType.external,
548
- tempWfName: (0, decorators_1.getRegisteredMethodName)(commFn),
549
- tempWfClass: (0, decorators_1.getRegisteredMethodClassName)(commFn),
550
- }, ...args)).getResult();
459
+ return (await this.workflow(temp_workflow, { ...params, tempWfType: TempWorkflowType.external, tempWfName: commFn.name }, ...args)).getResult();
551
460
  }
552
461
  async send(destinationUUID, message, topic, idempotencyKey) {
553
462
  // Create a workflow and call send.
@@ -555,7 +464,7 @@ class DBOSExecutor {
555
464
  return await ctxt.send(destinationUUID, message, topic);
556
465
  };
557
466
  const workflowUUID = idempotencyKey ? destinationUUID + idempotencyKey : undefined;
558
- return (await this.workflow(temp_workflow, { workflowUUID: workflowUUID, tempWfType: TempWorkflowType.send, configuredInstance: null }, destinationUUID, message, topic)).getResult();
467
+ return (await this.workflow(temp_workflow, { workflowUUID: workflowUUID, tempWfType: TempWorkflowType.send }, destinationUUID, message, topic)).getResult();
559
468
  }
560
469
  /**
561
470
  * Wait for a workflow to emit an event, then return its value.
@@ -607,56 +516,54 @@ class DBOSExecutor {
607
516
  throw new error_1.DBOSError(`Failed to find inputs for workflow UUID: ${workflowUUID}`);
608
517
  }
609
518
  const parentCtx = this.#getRecoveryContext(workflowUUID, wfStatus);
610
- const { wfInfo, configuredInst } = this.getWorkflowInfoByStatus(wfStatus);
519
+ const wfInfo = this.workflowInfoMap.get(wfStatus.workflowName);
611
520
  if (wfInfo) {
612
521
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
613
- return this.workflow(wfInfo.workflow, { workflowUUID: workflowUUID, parentCtx: parentCtx, configuredInstance: configuredInst }, ...inputs);
522
+ return this.workflow(wfInfo.workflow, { workflowUUID: workflowUUID, parentCtx: parentCtx ?? undefined }, ...inputs);
614
523
  }
615
524
  // Should be temporary workflows. Parse the name of the workflow.
616
525
  const wfName = wfStatus.workflowName;
617
526
  const nameArr = wfName.split("-");
618
527
  if (!nameArr[0].startsWith(DBOSExecutor.tempWorkflowName)) {
619
- // CB - Doesn't this happen if the user changed the function name in their code?
620
528
  throw new error_1.DBOSError(`This should never happen! Cannot find workflow info for a non-temporary workflow! UUID ${workflowUUID}, name ${wfName}`);
621
529
  }
622
530
  let temp_workflow;
623
- let clsinst = null;
624
531
  if (nameArr[1] === TempWorkflowType.transaction) {
625
- const { txnInfo, clsInst } = this.getTransactionInfoByNames(wfStatus.workflowClassName, nameArr[2], wfStatus.workflowConfigName);
532
+ const txnInfo = this.transactionInfoMap.get(nameArr[2]);
626
533
  if (!txnInfo) {
627
534
  this.logger.error(`Cannot find transaction info for UUID ${workflowUUID}, name ${nameArr[2]}`);
628
535
  throw new error_1.DBOSNotRegisteredError(nameArr[2]);
629
536
  }
630
537
  temp_workflow = async (ctxt, ...args) => {
631
538
  const ctxtImpl = ctxt;
632
- return await ctxtImpl.transaction(txnInfo.transaction, clsInst, ...args);
539
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-argument
540
+ return await ctxtImpl.transaction(txnInfo.transaction, ...args);
633
541
  };
634
- clsinst = clsInst;
635
542
  }
636
543
  else if (nameArr[1] === TempWorkflowType.external) {
637
- const { commInfo, clsInst } = this.getCommunicatorInfoByNames(wfStatus.workflowClassName, nameArr[2], wfStatus.workflowConfigName);
544
+ const commInfo = this.communicatorInfoMap.get(nameArr[2]);
638
545
  if (!commInfo) {
639
546
  this.logger.error(`Cannot find communicator info for UUID ${workflowUUID}, name ${nameArr[2]}`);
640
547
  throw new error_1.DBOSNotRegisteredError(nameArr[2]);
641
548
  }
642
549
  temp_workflow = async (ctxt, ...args) => {
643
550
  const ctxtImpl = ctxt;
644
- return await ctxtImpl.external(commInfo.communicator, clsInst, ...args);
551
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-argument
552
+ return await ctxtImpl.external(commInfo.communicator, ...args);
645
553
  };
646
- clsinst = clsInst;
647
554
  }
648
555
  else if (nameArr[1] === TempWorkflowType.send) {
649
556
  temp_workflow = async (ctxt, ...args) => {
650
- return await ctxt.send(args[0], args[1], args[2]); // id, value, topic
557
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
558
+ return await ctxt.send(args[0], args[1], args[2]);
651
559
  };
652
- clsinst = null;
653
560
  }
654
561
  else {
655
562
  this.logger.error(`Unrecognized temporary workflow! UUID ${workflowUUID}, name ${wfName}`);
656
563
  throw new error_1.DBOSNotRegisteredError(wfName);
657
564
  }
658
565
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
659
- return this.workflow(temp_workflow, { workflowUUID: workflowUUID, parentCtx: parentCtx ?? undefined, configuredInstance: clsinst }, ...inputs);
566
+ return this.workflow(temp_workflow, { workflowUUID: workflowUUID, parentCtx: parentCtx ?? undefined }, ...inputs);
660
567
  }
661
568
  // NOTE: this creates a new span, it does not inherit the span from the original workflow
662
569
  #getRecoveryContext(workflowUUID, status) {
@@ -740,7 +647,7 @@ class DBOSExecutor {
740
647
  this.registeredOperations.forEach((registeredOperation) => {
741
648
  const ro = registeredOperation;
742
649
  if (ro.apiURL) {
743
- this.logger.info(" " + ro.apiType.padEnd(6) + " : " + ro.apiURL);
650
+ this.logger.info(" " + ro.apiType.padEnd(4) + " : " + ro.apiURL);
744
651
  const roles = ro.getRequiredRoles();
745
652
  if (roles.length > 0) {
746
653
  this.logger.info(" Required Roles: " + JSON.stringify(roles));
@@ -1 +1 @@
1
- {"version":3,"file":"dbos-executor.js","sourceRoot":"","sources":["../../src/dbos-executor.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAuD;AACvD,mCAMiB;AACjB,yCAYoB;AAIpB,qDAA2D;AAC3D,+CAA4C;AAC5C,2CAA0D;AAC1D,qDAA0D;AAG1D,uDAAmG;AACnG,+BAAoC;AACpC,mDAOyB;AACzB,6CAAmO;AACnO,4CAAoD;AACpD,gDAAkC;AAClC,uCAAyD;AAEzD,8DAAiE;AACjE,qDAAiD;AACjD,mCAAkC;AAClC,0DAA6B;AAGhB,QAAA,QAAQ,GAAa,EAAE,CAAC;AAwCxB,QAAA,aAAa,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;CACpB,CAAC;AAEX,MAAM,gBAAgB,GAAG;IACvB,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;CACJ,CAAC;AAEX,MAAa,YAAY;IA+CF;IA9CrB,WAAW,CAAU;IACrB,gBAAgB;IAChB,YAAY,GAAiB,IAA+B,CAAC;IAC7D,kBAAkB;IACT,cAAc,CAAiB;IAExC,oGAAoG;IACpG,MAAM,CAAU,gBAAgB,GAAG,eAAe,CAAC;IAE1C,eAAe,GAA8B,IAAI,GAAG,CAAC;QAC5D,+DA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