@5minds/processcube_engine_sdk 7.0.0-feature-97b9d2-m7z4pgzu → 7.0.0-renovate-e2d87f-m80jsb6l

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.
Files changed (53) hide show
  1. package/dist/DataModels/ApplicationInfo.d.ts +0 -3
  2. package/dist/DataModels/ProcessInstance/ProcessInstance.d.ts +0 -1
  3. package/dist/DataModels/index.d.ts +0 -1
  4. package/dist/Engine.d.ts +1 -22
  5. package/dist/EngineConfiguration.d.ts +0 -1
  6. package/dist/EngineEvents/EventPayloads/TerminateProcessInstance.d.ts +0 -1
  7. package/dist/EngineEvents/EventPayloads/index.d.ts +0 -1
  8. package/dist/EngineEvents/Subscription.d.ts +26 -0
  9. package/dist/EngineEvents/index.d.ts +1 -0
  10. package/dist/ExtensionAdapter/NotificationExtensionAdapter.d.ts +4 -4
  11. package/dist/ExtensionAdapter/index.d.ts +0 -3
  12. package/dist/commonjs/DataModels/ProcessInstance/ProcessInstance.js.map +1 -1
  13. package/dist/commonjs/DataModels/index.js +0 -1
  14. package/dist/commonjs/DataModels/index.js.map +1 -1
  15. package/dist/commonjs/Engine.js.map +1 -1
  16. package/dist/commonjs/EngineEvents/EventPayloads/index.js +0 -1
  17. package/dist/commonjs/EngineEvents/EventPayloads/index.js.map +1 -1
  18. package/dist/commonjs/{DataModels/EngineMetadata.js → EngineEvents/Subscription.js} +1 -1
  19. package/dist/commonjs/EngineEvents/Subscription.js.map +1 -0
  20. package/dist/commonjs/EngineEvents/index.js +1 -0
  21. package/dist/commonjs/EngineEvents/index.js.map +1 -1
  22. package/dist/commonjs/ExtensionAdapter/index.js +0 -3
  23. package/dist/commonjs/ExtensionAdapter/index.js.map +1 -1
  24. package/dist/commonjs/index.js +0 -4
  25. package/dist/commonjs/index.js.map +1 -1
  26. package/dist/index.d.ts +0 -4
  27. package/package.json +1 -1
  28. package/dist/DataModels/EngineMetadata.d.ts +0 -13
  29. package/dist/EngineEventBus.d.ts +0 -87
  30. package/dist/EngineEventBusSettings.d.ts +0 -140
  31. package/dist/EngineEvents/EventPayloads/KillProcessInstanceMessageInternal.d.ts +0 -11
  32. package/dist/EngineRestApiSettings.d.ts +0 -2107
  33. package/dist/EngineSocketIoSettings.d.ts +0 -62
  34. package/dist/ExtensionAdapter/ClusterExtensionAdapter.d.ts +0 -14
  35. package/dist/ExtensionAdapter/MessageEventExtensionAdapter.d.ts +0 -4
  36. package/dist/ExtensionAdapter/SignalEventExtensionAdapter.d.ts +0 -4
  37. package/dist/commonjs/DataModels/EngineMetadata.js.map +0 -1
  38. package/dist/commonjs/EngineEventBus.js +0 -3
  39. package/dist/commonjs/EngineEventBus.js.map +0 -1
  40. package/dist/commonjs/EngineEventBusSettings.js +0 -89
  41. package/dist/commonjs/EngineEventBusSettings.js.map +0 -1
  42. package/dist/commonjs/EngineEvents/EventPayloads/KillProcessInstanceMessageInternal.js +0 -3
  43. package/dist/commonjs/EngineEvents/EventPayloads/KillProcessInstanceMessageInternal.js.map +0 -1
  44. package/dist/commonjs/EngineRestApiSettings.js +0 -2139
  45. package/dist/commonjs/EngineRestApiSettings.js.map +0 -1
  46. package/dist/commonjs/EngineSocketIoSettings.js +0 -67
  47. package/dist/commonjs/EngineSocketIoSettings.js.map +0 -1
  48. package/dist/commonjs/ExtensionAdapter/ClusterExtensionAdapter.js +0 -3
  49. package/dist/commonjs/ExtensionAdapter/ClusterExtensionAdapter.js.map +0 -1
  50. package/dist/commonjs/ExtensionAdapter/MessageEventExtensionAdapter.js +0 -3
  51. package/dist/commonjs/ExtensionAdapter/MessageEventExtensionAdapter.js.map +0 -1
  52. package/dist/commonjs/ExtensionAdapter/SignalEventExtensionAdapter.js +0 -3
  53. package/dist/commonjs/ExtensionAdapter/SignalEventExtensionAdapter.js.map +0 -1
@@ -56,8 +56,5 @@ export type ApplicationInfo = {
56
56
  name: string;
57
57
  version: string;
58
58
  }>;
59
- extensionInfo?: {
60
- [extensionName: string]: any;
61
- };
62
59
  extraInfo: any;
63
60
  };
@@ -161,7 +161,6 @@ export declare type ProcessInstance = {
161
161
  metadata?: ProcessInstanceMetadata;
162
162
  correlation?: Correlation;
163
163
  triggeredByFlowNodeInstance?: FlowNodeInstance;
164
- engineId?: string;
165
164
  };
166
165
  /**
167
166
  * @swagger
@@ -16,7 +16,6 @@ export * from './Constants';
16
16
  export * from './Correlation';
17
17
  export * from './Cronjob/index';
18
18
  export * from './DataObjectInstance';
19
- export * from './EngineMetadata';
20
19
  export * from './ExternalTask/index';
21
20
  export * from './FlowNodeInstance/index';
22
21
  export * from './Iam/index';
package/dist/Engine.d.ts CHANGED
@@ -1,9 +1,8 @@
1
1
  import * as express from 'express';
2
2
  import { UserTaskInstance } from './DataModels';
3
3
  import { Identity } from './DataModels/Iam/index';
4
- import { ExternalEventBus } from './EngineEventBus';
5
4
  import { EngineEventType, MiddlewareCallback } from './EngineEvents/index';
6
- import { IApplicationInfoExtensionAdapter, IClusterExtensionAdapter, ICorrelationExtensionAdapter, ICronjobExtensionAdapter, IDataObjectInstanceExtensionAdapter, IEventExtensionAdapter, IExternalTaskExtensionAdapter, IFlowNodeInstanceExtensionAdapter, IIamExtensionAdapter, IManualTaskExtensionAdapter, IMessageEventExtensionAdapter, INotificationExtensionAdapter, IProcessDefinitionExtensionAdapter, IProcessInstanceExtensionAdapter, IProcessModelExtensionAdapter, ISignalEventExtensionAdapter, IUntypedTaskExtensionAdapter, IUserTaskExtensionAdapter } from './ExtensionAdapter';
5
+ import { IApplicationInfoExtensionAdapter, ICorrelationExtensionAdapter, ICronjobExtensionAdapter, IDataObjectInstanceExtensionAdapter, IEventExtensionAdapter, IExternalTaskExtensionAdapter, IFlowNodeInstanceExtensionAdapter, IIamExtensionAdapter, IManualTaskExtensionAdapter, INotificationExtensionAdapter, IProcessDefinitionExtensionAdapter, IProcessInstanceExtensionAdapter, IProcessModelExtensionAdapter, IUntypedTaskExtensionAdapter, IUserTaskExtensionAdapter } from './ExtensionAdapter';
7
6
  import { EventViewModel, FlowNodeViewModel } from './ProcessModel/index';
8
7
  /**
9
8
  * Describes the onLoad function, which can be exported by an extension.
@@ -13,16 +12,8 @@ import { EventViewModel, FlowNodeViewModel } from './ProcessModel/index';
13
12
  * export const onLoad: onLoadFunction = (engine: Engine) => {}
14
13
  */
15
14
  export type OnLoad = (engine: Engine) => void | Promise<void>;
16
- export type GetStatusInfo = () => Object | Promise<Object>;
17
15
  export type EngineExtension = {
18
16
  onLoad: OnLoad;
19
- getStatusInfo?: GetStatusInfo;
20
- };
21
- export type Extension = {
22
- exports: EngineExtension;
23
- name: string;
24
- version: string;
25
- path: string;
26
17
  };
27
18
  export type CustomServiceTaskHandlerContext = {
28
19
  token: {
@@ -76,7 +67,6 @@ export type CustomHttpRouteRequest = {
76
67
  stale: boolean;
77
68
  subdomains: Array<string>;
78
69
  xhr: boolean;
79
- nonce?: string;
80
70
  };
81
71
  export declare enum HttpResponseActionType {
82
72
  Send = "send",
@@ -223,14 +213,6 @@ export type Engine = {
223
213
  * @param callback The callback to call after the Engine has finished starting up.
224
214
  */
225
215
  onReady(callback: () => void | Promise<void>): void;
226
- /**
227
- * Registers a custom Event Bus, which will replace the Engine's own internal Event Bus.
228
- *
229
- * **NOTE:** Can only be used BEFORE the {@link Engine.onReady} Event was fired!
230
- *
231
- * @param eventBus A custom {@link ExternalEventBus}.
232
- */
233
- registerCustomEventBus(eventBus: ExternalEventBus): void;
234
216
  /**
235
217
  * Registers the given callback as an Event Middleware.
236
218
  * This middleware gets called whenever a Log Event occurs at the Engine.
@@ -364,7 +346,6 @@ export type Engine = {
364
346
  registerHttpRoute(path: string, method: 'get' | 'post' | 'put' | 'delete', routeHandler: CustomHttpRouteHandler, options?: CustomHttpRouteOptions): void;
365
347
  executeRuntimeExpression<TExpectedResult>(expression: string, params: RuntimeExpressionParameters): Promise<TExpectedResult>;
366
348
  applicationInfo: IApplicationInfoExtensionAdapter;
367
- cluster: IClusterExtensionAdapter;
368
349
  correlations: ICorrelationExtensionAdapter;
369
350
  cronjobs: ICronjobExtensionAdapter;
370
351
  dataObjectInstances: IDataObjectInstanceExtensionAdapter;
@@ -374,11 +355,9 @@ export type Engine = {
374
355
  flowNodeInstances: IFlowNodeInstanceExtensionAdapter;
375
356
  iam: IIamExtensionAdapter;
376
357
  manualTasks: IManualTaskExtensionAdapter;
377
- messageEvents: IMessageEventExtensionAdapter;
378
358
  notification: INotificationExtensionAdapter;
379
359
  processDefinitions: IProcessDefinitionExtensionAdapter;
380
360
  processInstances: IProcessInstanceExtensionAdapter;
381
361
  processModels: IProcessModelExtensionAdapter;
382
- signalEvents: ISignalEventExtensionAdapter;
383
362
  userTasks: IUserTaskExtensionAdapter;
384
363
  };
@@ -87,7 +87,6 @@ export declare type HttpServerConfig = {
87
87
  };
88
88
  export declare type IAMConfiguration = {
89
89
  baseUrl: string;
90
- internalUrl?: string;
91
90
  allowAnonymousRootAccess?: boolean;
92
91
  rootAccessToken?: string;
93
92
  };
@@ -3,7 +3,6 @@ import { Identity } from '../../DataModels/Iam/index';
3
3
  * Encapsulates a message for when a Process Instance gets terminated.
4
4
  */
5
5
  export type TerminateProcessInstanceMessage = {
6
- processInstanceId: string;
7
6
  /**
8
7
  * If the Process Instance is terminated by a user, this will contain the users identity.
9
8
  */
@@ -5,7 +5,6 @@ export * from './ErrorEndEventReached';
5
5
  export * from './ExternalTaskMessages';
6
6
  export * from './FinishManualTask';
7
7
  export * from './FinishUserTask';
8
- export * from './KillProcessInstanceMessageInternal';
9
8
  export * from './MessageEventReached';
10
9
  export * from './MetadataChangedMessage';
11
10
  export * from './ProcessDeploymentMessage';
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Defines the signature for the Callback that an EventSubscription should have.
3
+ *
4
+ * @param eventPayload Optional: The payload received with the event.
5
+ * @param eventName Optional: The name of the received event.
6
+ */
7
+ export declare type EventReceivedCallback = (eventPayload?: any, eventName?: string) => void | Promise<void>;
8
+ /**
9
+ * Contains information about a subscription on the EventAggregator.
10
+ * External services can use this information to manage their own subscriptions.
11
+ */
12
+ export declare type Subscription = {
13
+ /**
14
+ * The Id under which the EventAggregator has stored the Subscription.
15
+ */
16
+ readonly id: string;
17
+ /**
18
+ * The name of the event for which the Subscription was created.
19
+ */
20
+ readonly eventName: string;
21
+ /**
22
+ * If set to true, the Subscription will be destroyed after first receiving
23
+ * the event.
24
+ */
25
+ readonly onlyReceiveOnce: boolean;
26
+ };
@@ -9,6 +9,7 @@ export * from './EventCallbackTypes';
9
9
  export * from './EngineEvent';
10
10
  export * from './EngineEventMiddlewares';
11
11
  export * from './EventPayloads/index';
12
+ export * from './Subscription';
12
13
  export declare namespace Messages {
13
14
  export import EventMessage = eventPayloads.EventMessage;
14
15
  export import IConstructor = iConstructor.IConstructor;
@@ -77,10 +77,6 @@ export interface INotificationExtensionAdapter {
77
77
  subscribeOnce?: boolean;
78
78
  identity?: Identity;
79
79
  }): Promise<Subscription>;
80
- onActivityError(callback: Messages.CallbackTypes.OnActivityErrorCallback, options?: {
81
- subscribeOnce?: boolean;
82
- identity?: Identity;
83
- }): Promise<Subscription>;
84
80
  onUntypedTaskWaiting(callback: Messages.CallbackTypes.OnUntypedTaskWaitingCallback, options?: {
85
81
  subscribeOnce?: boolean;
86
82
  identity?: Identity;
@@ -141,6 +137,10 @@ export interface INotificationExtensionAdapter {
141
137
  subscribeOnce?: boolean;
142
138
  identity?: Identity;
143
139
  }): Promise<Subscription>;
140
+ onFlowNodeEventRetrySending(callback: Messages.CallbackTypes.OnFlowNodeEventRetrySendingCallback, options?: {
141
+ subscribeOnce?: boolean;
142
+ identity?: Identity;
143
+ }): Promise<Subscription>;
144
144
  onMessageTriggered(callback: Messages.CallbackTypes.OnMessageTriggeredCallback, options?: {
145
145
  subscribeOnce?: boolean;
146
146
  identity?: Identity;
@@ -1,5 +1,4 @@
1
1
  export * from './ApplicationInfoExtensionAdapter';
2
- export * from './ClusterExtensionAdapter';
3
2
  export * from './CorrelationExtensionAdapter';
4
3
  export * from './CronjobExtensionAdapter';
5
4
  export * from './DataObjectInstanceExtensionAdapter';
@@ -8,11 +7,9 @@ export * from './ExternalTaskExtensionAdapter';
8
7
  export * from './FlowNodeInstanceExtensionAdapter';
9
8
  export * from './IIamExtensionAdapter';
10
9
  export * from './ManualTaskExtensionAdapter';
11
- export * from './MessageEventExtensionAdapter';
12
10
  export * from './NotificationExtensionAdapter';
13
11
  export * from './ProcessDefinitionExtensionAdapter';
14
12
  export * from './ProcessModelExtensionAdapter';
15
13
  export * from './ProcessInstanceExtensionAdapter';
16
- export * from './SignalEventExtensionAdapter';
17
14
  export * from './UntypedTaskExtensionAdapter';
18
15
  export * from './UserTaskExtensionAdapter';
@@ -1 +1 @@
1
- {"version":3,"file":"ProcessInstance.js","sourceRoot":"","sources":["../../../../src/DataModels/ProcessInstance/ProcessInstance.ts"],"names":[],"mappings":";;;AAwKA;;;;;;;;;;;;GAYG;AACH;;GAEG;AACH,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,6CAAqB,CAAA;IACrB,uCAAe,CAAA;IACf,iDAAyB,CAAA;AAC3B,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B"}
1
+ {"version":3,"file":"ProcessInstance.js","sourceRoot":"","sources":["../../../../src/DataModels/ProcessInstance/ProcessInstance.ts"],"names":[],"mappings":";;;AAuKA;;;;;;;;;;;;GAYG;AACH;;GAEG;AACH,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,6CAAqB,CAAA;IACrB,uCAAe,CAAA;IACf,iDAAyB,CAAA;AAC3B,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B"}
@@ -50,7 +50,6 @@ __exportStar(require("./Constants"), exports);
50
50
  __exportStar(require("./Correlation"), exports);
51
51
  __exportStar(require("./Cronjob/index"), exports);
52
52
  __exportStar(require("./DataObjectInstance"), exports);
53
- __exportStar(require("./EngineMetadata"), exports);
54
53
  __exportStar(require("./ExternalTask/index"), exports);
55
54
  __exportStar(require("./FlowNodeInstance/index"), exports);
56
55
  __exportStar(require("./Iam/index"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/DataModels/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,2DAA6C;AAC7C,yDAA2C;AAC3C,iEAAmD;AACnD,oEAAsD;AACtD,4EAA8D;AAC9D,iDAAmC;AACnC,wEAA0D;AAC1D,0EAA4D;AAE5D,oDAAkC;AAClC,8CAA4B;AAC5B,gDAA8B;AAC9B,kDAAgC;AAChC,uDAAqC;AACrC,mDAAiC;AACjC,uDAAqC;AACrC,2DAAyC;AACzC,8CAA4B;AAC5B,sDAAoC;AACpC,0DAAwC;AAExC,IAAiB,UAAU,CAU1B;AAVD,WAAiB,UAAU;IAEX,sBAAW,GAAG,WAAW,CAAC;IAC1B,kBAAO,GAAG,OAAO,CAAC;IAClB,sBAAW,GAAG,UAAU,CAAC;IACzB,wBAAa,GAAG,aAAa,CAAC;IAC9B,4BAAiB,GAAG,iBAAiB,CAAC;IACtC,cAAG,GAAG,GAAG,CAAC;IACV,6BAAkB,GAAG,kBAAkB,CAAC;IACxC,2BAAgB,GAAG,gBAAgB,CAAC;AACpD,CAAC,EAVgB,UAAU,0BAAV,UAAU,QAU1B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/DataModels/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,2DAA6C;AAC7C,yDAA2C;AAC3C,iEAAmD;AACnD,oEAAsD;AACtD,4EAA8D;AAC9D,iDAAmC;AACnC,wEAA0D;AAC1D,0EAA4D;AAE5D,oDAAkC;AAClC,8CAA4B;AAC5B,gDAA8B;AAC9B,kDAAgC;AAChC,uDAAqC;AACrC,uDAAqC;AACrC,2DAAyC;AACzC,8CAA4B;AAC5B,sDAAoC;AACpC,0DAAwC;AAExC,IAAiB,UAAU,CAU1B;AAVD,WAAiB,UAAU;IAEX,sBAAW,GAAG,WAAW,CAAC;IAC1B,kBAAO,GAAG,OAAO,CAAC;IAClB,sBAAW,GAAG,UAAU,CAAC;IACzB,wBAAa,GAAG,aAAa,CAAC;IAC9B,4BAAiB,GAAG,iBAAiB,CAAC;IACtC,cAAG,GAAG,GAAG,CAAC;IACV,6BAAkB,GAAG,kBAAkB,CAAC;IACxC,2BAAgB,GAAG,gBAAgB,CAAC;AACpD,CAAC,EAVgB,UAAU,0BAAV,UAAU,QAU1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"Engine.js","sourceRoot":"","sources":["../../src/Engine.ts"],"names":[],"mappings":";;;AAoGA,IAAY,sBASX;AATD,WAAY,sBAAsB;IAChC,uCAAa,CAAA;IACb,uCAAa,CAAA;IACb,yCAAe,CAAA;IACf,+CAAqB,CAAA;IACrB,+CAAqB,CAAA;IACrB,qCAAW,CAAA;IACX,mDAAyB,CAAA;IACzB,+CAAqB,CAAA;AACvB,CAAC,EATW,sBAAsB,sCAAtB,sBAAsB,QASjC;AAoCY,QAAA,6BAA6B,GAAG,+BAA+B,CAAC"}
1
+ {"version":3,"file":"Engine.js","sourceRoot":"","sources":["../../src/Engine.ts"],"names":[],"mappings":";;;AAsFA,IAAY,sBASX;AATD,WAAY,sBAAsB;IAChC,uCAAa,CAAA;IACb,uCAAa,CAAA;IACb,yCAAe,CAAA;IACf,+CAAqB,CAAA;IACrB,+CAAqB,CAAA;IACrB,qCAAW,CAAA;IACX,mDAAyB,CAAA;IACzB,+CAAqB,CAAA;AACvB,CAAC,EATW,sBAAsB,sCAAtB,sBAAsB,QASjC;AAoCY,QAAA,6BAA6B,GAAG,+BAA+B,CAAC"}
@@ -21,7 +21,6 @@ __exportStar(require("./ErrorEndEventReached"), exports);
21
21
  __exportStar(require("./ExternalTaskMessages"), exports);
22
22
  __exportStar(require("./FinishManualTask"), exports);
23
23
  __exportStar(require("./FinishUserTask"), exports);
24
- __exportStar(require("./KillProcessInstanceMessageInternal"), exports);
25
24
  __exportStar(require("./MessageEventReached"), exports);
26
25
  __exportStar(require("./MetadataChangedMessage"), exports);
27
26
  __exportStar(require("./ProcessDeploymentMessage"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/EngineEvents/EventPayloads/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAE9B,iDAA+B;AAC/B,iEAA+C;AAC/C,yDAAuC;AACvC,yDAAuC;AACvC,qDAAmC;AACnC,mDAAiC;AACjC,uEAAqD;AACrD,wDAAsC;AACtC,2DAAyC;AACzC,6DAA2C;AAC3C,mEAAiD;AACjD,sEAAoD;AACpD,uDAAqC;AACrC,qDAAmC;AACnC,6DAA2C;AAC3C,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/EngineEvents/EventPayloads/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAE9B,iDAA+B;AAC/B,iEAA+C;AAC/C,yDAAuC;AACvC,yDAAuC;AACvC,qDAAmC;AACnC,mDAAiC;AACjC,wDAAsC;AACtC,2DAAyC;AACzC,6DAA2C;AAC3C,mEAAiD;AACjD,sEAAoD;AACpD,uDAAqC;AACrC,qDAAmC;AACnC,6DAA2C;AAC3C,uDAAqC"}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=EngineMetadata.js.map
3
+ //# sourceMappingURL=Subscription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../../src/EngineEvents/Subscription.ts"],"names":[],"mappings":""}
@@ -47,6 +47,7 @@ __exportStar(require("./EventCallbackTypes"), exports);
47
47
  __exportStar(require("./EngineEvent"), exports);
48
48
  __exportStar(require("./EngineEventMiddlewares"), exports);
49
49
  __exportStar(require("./EventPayloads/index"), exports);
50
+ __exportStar(require("./Subscription"), exports);
50
51
  var Messages;
51
52
  (function (Messages) {
52
53
  Messages.BpmnEvents = eventPayloads;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/EngineEvents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oEAAsD;AACtD,qEAAuD;AAGvD,kDAAgC;AAChC,uDAAqC;AACrC,gDAA8B;AAC9B,2DAAyC;AAEzC,wDAAsC;AAEtC,IAAiB,QAAQ,CAMxB;AAND,WAAiB,QAAQ;IAGT,mBAAU,GAAG,aAAa,CAAC;IAC3B,qBAAY,GAAG,aAAa,CAAC;IAC7B,sBAAa,GAAG,aAAa,CAAC;AAC9C,CAAC,EANgB,QAAQ,wBAAR,QAAQ,QAMxB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/EngineEvents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oEAAsD;AACtD,qEAAuD;AAGvD,kDAAgC;AAChC,uDAAqC;AACrC,gDAA8B;AAC9B,2DAAyC;AAEzC,wDAAsC;AACtC,iDAA+B;AAE/B,IAAiB,QAAQ,CAMxB;AAND,WAAiB,QAAQ;IAGT,mBAAU,GAAG,aAAa,CAAC;IAC3B,qBAAY,GAAG,aAAa,CAAC;IAC7B,sBAAa,GAAG,aAAa,CAAC;AAC9C,CAAC,EANgB,QAAQ,wBAAR,QAAQ,QAMxB"}
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ApplicationInfoExtensionAdapter"), exports);
18
- __exportStar(require("./ClusterExtensionAdapter"), exports);
19
18
  __exportStar(require("./CorrelationExtensionAdapter"), exports);
20
19
  __exportStar(require("./CronjobExtensionAdapter"), exports);
21
20
  __exportStar(require("./DataObjectInstanceExtensionAdapter"), exports);
@@ -24,12 +23,10 @@ __exportStar(require("./ExternalTaskExtensionAdapter"), exports);
24
23
  __exportStar(require("./FlowNodeInstanceExtensionAdapter"), exports);
25
24
  __exportStar(require("./IIamExtensionAdapter"), exports);
26
25
  __exportStar(require("./ManualTaskExtensionAdapter"), exports);
27
- __exportStar(require("./MessageEventExtensionAdapter"), exports);
28
26
  __exportStar(require("./NotificationExtensionAdapter"), exports);
29
27
  __exportStar(require("./ProcessDefinitionExtensionAdapter"), exports);
30
28
  __exportStar(require("./ProcessModelExtensionAdapter"), exports);
31
29
  __exportStar(require("./ProcessInstanceExtensionAdapter"), exports);
32
- __exportStar(require("./SignalEventExtensionAdapter"), exports);
33
30
  __exportStar(require("./UntypedTaskExtensionAdapter"), exports);
34
31
  __exportStar(require("./UserTaskExtensionAdapter"), exports);
35
32
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ExtensionAdapter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD;AAClD,4DAA0C;AAC1C,gEAA8C;AAC9C,4DAA0C;AAC1C,uEAAqD;AACrD,0DAAwC;AACxC,iEAA+C;AAC/C,qEAAmD;AACnD,yDAAuC;AACvC,+DAA6C;AAC7C,iEAA+C;AAC/C,iEAA+C;AAC/C,sEAAoD;AACpD,iEAA+C;AAC/C,oEAAkD;AAClD,gEAA8C;AAC9C,gEAA8C;AAC9C,6DAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ExtensionAdapter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD;AAClD,gEAA8C;AAC9C,4DAA0C;AAC1C,uEAAqD;AACrD,0DAAwC;AACxC,iEAA+C;AAC/C,qEAAmD;AACnD,yDAAuC;AACvC,+DAA6C;AAC7C,iEAA+C;AAC/C,sEAAoD;AACpD,iEAA+C;AAC/C,oEAAkD;AAClD,gEAA8C;AAC9C,6DAA2C"}
@@ -22,11 +22,7 @@ __exportStar(require("./Errors/index"), exports);
22
22
  __exportStar(require("./ExtensionAdapter/index"), exports);
23
23
  __exportStar(require("./ProcessModel/index"), exports);
24
24
  __exportStar(require("./Engine"), exports);
25
- __exportStar(require("./EngineEventBus"), exports);
26
25
  __exportStar(require("./EngineConfiguration"), exports);
27
- __exportStar(require("./EngineEventBusSettings"), exports);
28
- __exportStar(require("./EngineRestApiSettings"), exports);
29
- __exportStar(require("./EngineSocketIoSettings"), exports);
30
26
  __exportStar(require("./Logger"), exports);
31
27
  __exportStar(require("./Serializer"), exports);
32
28
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAAuD;AAEvD,qDAAmC;AACnC,uDAAqC;AACrC,iDAA+B;AAC/B,2DAAyC;AACzC,uDAAqC;AAErC,2CAAyB;AACzB,mDAAiC;AACjC,wDAAsC;AAEtC,2DAAyC;AACzC,0DAAwC;AACxC,2DAAyC;AAEzC,2CAAyB;AACzB,+CAA6B;AAE7B;;GAEG;AACU,QAAA,YAAY,GAAG;IAC1B,GAAG,uBAAe;CACnB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAAuD;AAEvD,qDAAmC;AACnC,uDAAqC;AACrC,iDAA+B;AAC/B,2DAAyC;AACzC,uDAAqC;AAErC,2CAAyB;AACzB,wDAAsC;AAEtC,2CAAyB;AACzB,+CAA6B;AAE7B;;GAEG;AACU,QAAA,YAAY,GAAG;IAC1B,GAAG,uBAAe;CACnB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -5,11 +5,7 @@ export * from './Errors/index';
5
5
  export * from './ExtensionAdapter/index';
6
6
  export * from './ProcessModel/index';
7
7
  export * from './Engine';
8
- export * from './EngineEventBus';
9
8
  export * from './EngineConfiguration';
10
- export * from './EngineEventBusSettings';
11
- export * from './EngineRestApiSettings';
12
- export * from './EngineSocketIoSettings';
13
9
  export * from './Logger';
14
10
  export * from './Serializer';
15
11
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/processcube_engine_sdk",
3
- "version": "7.0.0-feature-97b9d2-m7z4pgzu",
3
+ "version": "7.0.0-renovate-e2d87f-m80jsb6l",
4
4
  "description": "Software development kit for the Engine.",
5
5
  "main": "dist/commonjs/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,13 +0,0 @@
1
- export type EngineMetadata = {
2
- engineId: string;
3
- hostname: string;
4
- lastSeen: number;
5
- alive?: boolean;
6
- leader?: boolean;
7
- current?: boolean;
8
- allProcesses?: number;
9
- runningProcesses?: number;
10
- finishedProcesses?: number;
11
- erroredProcesses?: number;
12
- terminatedProcesses?: number;
13
- };
@@ -1,87 +0,0 @@
1
- /**
2
- * Defines the signature for the Callback that an EventSubscription should have.
3
- *
4
- * @param eventPayload Optional: The payload received with the event.
5
- * @param eventName Optional: The name of the received event.
6
- */
7
- export type EventReceivedCallback = (eventPayload?: any, eventName?: string) => void | Promise<void>;
8
- /**
9
- * Contains information about a subscription on the EngineEventBus.
10
- * External services can use this information to manage their own subscriptions.
11
- */
12
- export type Subscription = {
13
- /**
14
- * The Id under which the EngineEventBus has stored the Subscription.
15
- */
16
- readonly id: string;
17
- /**
18
- * The name of the event for which the Subscription was created.
19
- */
20
- readonly eventName: string;
21
- /**
22
- * If set to true, the Subscription will be destroyed after first receiving
23
- * the event.
24
- */
25
- readonly onlyReceiveOnce: boolean;
26
- };
27
- export type ExternalSubscription = {
28
- remove: () => Promise<void>;
29
- };
30
- /**
31
- * The Event Bus is used by the Engine to manage communications between the individual engine services, as well as all Flow Node Instances and Process Instances.
32
- *
33
- * By default, the Engine uses its own EventAggregator.
34
- *
35
- * You can replace it with your own, if you want to connect the engine to an external messagebus.
36
- */
37
- export type EngineEventBus = {
38
- /**
39
- * Creates a new {@link Subscription} on the EventBus for the event with the given name.
40
- * The {@link Subscription} will remain active, until manually disposed through the {@link EngineEventBus.unsubscribe} method.
41
- *
42
- * @param eventName The name of the Event to subscribe to.
43
- * @param callback The callback to execute, when the event is received.
44
- * @returns A {@link Subscription} object.
45
- */
46
- subscribe: (eventName: string, callback: EventReceivedCallback) => Subscription;
47
- /**
48
- * Creates a new {@link Subscription} on the EventBus for the event with the given name.
49
- * The {@link Subscription} is automatically disposed, after the event was received once.
50
- *
51
- * @param eventName The name of the Event to subscribe to.
52
- * @param callback The callback to execute, when the event is received.
53
- * @returns A {@link Subscription} object.
54
- */
55
- subscribeOnce: (eventName: string, callback: EventReceivedCallback) => Subscription;
56
- /**
57
- * Publishes a given event on the EventBus.
58
- * Usually, this function returns as soon as the Event was published.
59
- * However, it is possible to wait for all Subscribers to acknowledge receiving the Event, by providing an "onAcknowledgement" Callback function.
60
- *
61
- * @param eventName The name of the Event to publish.
62
- * @param payload The payload to send with the Event.
63
- * @param onAcknowledgement Optional: The callback to call, after all Subscribers have acknowledged receiving the Event.
64
- * @param eventId Optional: The Event ID to use.
65
- */
66
- publish: (eventName: string, payload?: Record<string, any>, onAcknowledgement?: () => void, eventId?: string) => void;
67
- /**
68
- * Allows a Subscriber to acknowledge the receit of an Event with the given ID.
69
- *
70
- * @param eventId The ID of the Event to acknowledge.
71
- */
72
- acknowledgeEvent: (eventId: string) => void;
73
- /**
74
- * Disposes the given Event Subscription.
75
- *
76
- * @param subscription The Subscription to dispose.
77
- */
78
- unsubscribe: (subscription: Subscription) => void;
79
- };
80
- export type ExternalEventBus = {
81
- subscribeToWorkQueue: (queueName: string, callback: Function) => Promise<ExternalSubscription>;
82
- subscribeToTopicWithRoutingKey: (topic: string, routingKey: string, callback: Function, oneTimeSubscription?: boolean) => Promise<ExternalSubscription>;
83
- subscribeToBroadcast: (topic: string, callback: Function, oneTimeSubscription?: boolean) => Promise<ExternalSubscription>;
84
- publishToWorkQueue: (queueName: string, payload: Record<string, any>) => Promise<void>;
85
- publishToTopicWithRoutingKey: (topic: string, routingKey: string, payload: Record<string, any>) => Promise<void>;
86
- publishToBroadcast: (topic: string, payload: Record<string, any>) => Promise<void>;
87
- };
@@ -1,140 +0,0 @@
1
- export declare const EngineEventBusSettings: {
2
- messagePaths: {
3
- activityReached: string;
4
- activityFinished: string;
5
- activityCanceled: string;
6
- boundaryEventTriggered: string;
7
- boundaryEventFinished: string;
8
- boundaryEventWaiting: string;
9
- changeCorrelationMetadata: {
10
- topic: string;
11
- routingKey: (correlationId: string) => string;
12
- };
13
- clusterSetupFinished: string;
14
- correlationMetadataChanged: string;
15
- cronjobCreated: string;
16
- cronjobExecuted: string;
17
- cronjobEnabledChanged: string;
18
- cronjobStopped: string;
19
- cronjobUpdated: string;
20
- cronjobRemoved: string;
21
- untypedTaskReached: string;
22
- untypedTaskFinished: string;
23
- endEventFinished: string;
24
- engineDied: string;
25
- externalTaskCreated: string;
26
- externalTaskExpired: string;
27
- externalTaskFinished: string;
28
- externalTaskLocked: string;
29
- externalTaskUnlocked: string;
30
- finishExternalTask: string;
31
- flowNodeEventRetrySending: string;
32
- intermediateThrowEventTriggered: string;
33
- intermediateCatchEventReached: string;
34
- intermediateCatchEventFinished: string;
35
- livenessProbe: string;
36
- manualTaskReached: string;
37
- processDeployed: string;
38
- processUndeployed: string;
39
- processInstancesDeleted: string;
40
- processInstanceMetadataChanged: string;
41
- processExecutableChanged: string;
42
- startEventFinished: string;
43
- terminateProcessInstance: string;
44
- userTaskReached: string;
45
- userTaskReserved: string;
46
- userTaskReservationCanceled: string;
47
- messageEventTriggeredOnPath: {
48
- topic: string;
49
- routingKey: (triggerValue: string, reference: string, processInstanceId: string) => string;
50
- };
51
- signalEventTriggeredOnPath: {
52
- topic: string;
53
- routingKey: (triggerValue: string, reference: string, processInstanceId: string) => string;
54
- };
55
- messageTriggered: string;
56
- signalTriggered: string;
57
- triggerTimerEvent: {
58
- topic: string;
59
- routingKey: (flowNodeInstanceId: string) => string;
60
- };
61
- tokenPayloadChange: {
62
- topic: string;
63
- routingKey: (flowNodeInstanceId: string) => string;
64
- };
65
- tokenPayloadChangeFinished: {
66
- topic: string;
67
- routingKey: (flowNodeInstanceId: string) => string;
68
- };
69
- activityError: string;
70
- processStarting: string;
71
- processResumed: string;
72
- processOwnerChanged: string;
73
- gatewayFinished: string;
74
- finishUntypedTask: {
75
- topic: string;
76
- routingKey: (flowNodeInstanceId: string) => string;
77
- };
78
- finishUserTask: {
79
- topic: string;
80
- routingKey: (flowNodeInstanceId: string) => string;
81
- };
82
- userTaskFinished: {
83
- topic: string;
84
- routingKey: (flownodeInstanceId: string) => string;
85
- };
86
- finishManualTask: {
87
- topic: string;
88
- routingKey: (flowNodeInstanceId: string) => string;
89
- };
90
- manualTaskFinished: {
91
- topic: string;
92
- routingKey: (flowNodeInstanceId: string) => string;
93
- };
94
- endEventReached: {
95
- topic: string;
96
- routingKey: (processInstanceId: string) => string;
97
- };
98
- processStarted: {
99
- topic: string;
100
- routingKey: (processModelId: string) => string;
101
- };
102
- processEnded: {
103
- topic: string;
104
- routingKey: (processInstanceId: string) => string;
105
- };
106
- processErrored: {
107
- topic: string;
108
- routingKey: (processInstanceId: string) => string;
109
- };
110
- processTerminated: {
111
- topic: string;
112
- routingKey: (processInstanceId: string) => string;
113
- };
114
- killProcessInstance: {
115
- topic: string;
116
- routingKey: (processInstanceId?: string, engineId?: string) => string;
117
- };
118
- processKilled: {
119
- topic: string;
120
- routingKey: (processInstanceId: string) => string;
121
- };
122
- terminateEndEventReached: {
123
- topic: string;
124
- routingKey: (processInstanceId: string) => string;
125
- };
126
- changeProcessInstanceOwner: {
127
- topic: string;
128
- routingKey: (processInstanceId: string) => string;
129
- };
130
- processInstanceOwnerChanged: {
131
- topic: string;
132
- routingKey: (processInstanceId: string) => string;
133
- };
134
- lockExternalTask: string;
135
- unlockExternalTask: string;
136
- };
137
- externalMessagePaths: {
138
- processStartRequest: string;
139
- };
140
- };
@@ -1,11 +0,0 @@
1
- import { Identity } from '../../DataModels';
2
- /**
3
- * Encapsulates a message for when a Process Instance gets killed by a user.
4
- */
5
- export type KillProcessInstanceMessageInternal = {
6
- /**
7
- * Contain the killers identity.
8
- */
9
- killedBy: Identity;
10
- processInstanceId: string;
11
- };