@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.
- package/dist/DataModels/ApplicationInfo.d.ts +0 -3
- package/dist/DataModels/ProcessInstance/ProcessInstance.d.ts +0 -1
- package/dist/DataModels/index.d.ts +0 -1
- package/dist/Engine.d.ts +1 -22
- package/dist/EngineConfiguration.d.ts +0 -1
- package/dist/EngineEvents/EventPayloads/TerminateProcessInstance.d.ts +0 -1
- package/dist/EngineEvents/EventPayloads/index.d.ts +0 -1
- package/dist/EngineEvents/Subscription.d.ts +26 -0
- package/dist/EngineEvents/index.d.ts +1 -0
- package/dist/ExtensionAdapter/NotificationExtensionAdapter.d.ts +4 -4
- package/dist/ExtensionAdapter/index.d.ts +0 -3
- package/dist/commonjs/DataModels/ProcessInstance/ProcessInstance.js.map +1 -1
- package/dist/commonjs/DataModels/index.js +0 -1
- package/dist/commonjs/DataModels/index.js.map +1 -1
- package/dist/commonjs/Engine.js.map +1 -1
- package/dist/commonjs/EngineEvents/EventPayloads/index.js +0 -1
- package/dist/commonjs/EngineEvents/EventPayloads/index.js.map +1 -1
- package/dist/commonjs/{DataModels/EngineMetadata.js → EngineEvents/Subscription.js} +1 -1
- package/dist/commonjs/EngineEvents/Subscription.js.map +1 -0
- package/dist/commonjs/EngineEvents/index.js +1 -0
- package/dist/commonjs/EngineEvents/index.js.map +1 -1
- package/dist/commonjs/ExtensionAdapter/index.js +0 -3
- package/dist/commonjs/ExtensionAdapter/index.js.map +1 -1
- package/dist/commonjs/index.js +0 -4
- package/dist/commonjs/index.js.map +1 -1
- package/dist/index.d.ts +0 -4
- package/package.json +1 -1
- package/dist/DataModels/EngineMetadata.d.ts +0 -13
- package/dist/EngineEventBus.d.ts +0 -87
- package/dist/EngineEventBusSettings.d.ts +0 -140
- package/dist/EngineEvents/EventPayloads/KillProcessInstanceMessageInternal.d.ts +0 -11
- package/dist/EngineRestApiSettings.d.ts +0 -2107
- package/dist/EngineSocketIoSettings.d.ts +0 -62
- package/dist/ExtensionAdapter/ClusterExtensionAdapter.d.ts +0 -14
- package/dist/ExtensionAdapter/MessageEventExtensionAdapter.d.ts +0 -4
- package/dist/ExtensionAdapter/SignalEventExtensionAdapter.d.ts +0 -4
- package/dist/commonjs/DataModels/EngineMetadata.js.map +0 -1
- package/dist/commonjs/EngineEventBus.js +0 -3
- package/dist/commonjs/EngineEventBus.js.map +0 -1
- package/dist/commonjs/EngineEventBusSettings.js +0 -89
- package/dist/commonjs/EngineEventBusSettings.js.map +0 -1
- package/dist/commonjs/EngineEvents/EventPayloads/KillProcessInstanceMessageInternal.js +0 -3
- package/dist/commonjs/EngineEvents/EventPayloads/KillProcessInstanceMessageInternal.js.map +0 -1
- package/dist/commonjs/EngineRestApiSettings.js +0 -2139
- package/dist/commonjs/EngineRestApiSettings.js.map +0 -1
- package/dist/commonjs/EngineSocketIoSettings.js +0 -67
- package/dist/commonjs/EngineSocketIoSettings.js.map +0 -1
- package/dist/commonjs/ExtensionAdapter/ClusterExtensionAdapter.js +0 -3
- package/dist/commonjs/ExtensionAdapter/ClusterExtensionAdapter.js.map +0 -1
- package/dist/commonjs/ExtensionAdapter/MessageEventExtensionAdapter.js +0 -3
- package/dist/commonjs/ExtensionAdapter/MessageEventExtensionAdapter.js.map +0 -1
- package/dist/commonjs/ExtensionAdapter/SignalEventExtensionAdapter.js +0 -3
- package/dist/commonjs/ExtensionAdapter/SignalEventExtensionAdapter.js.map +0 -1
|
@@ -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,
|
|
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
|
};
|
|
@@ -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":";;;
|
|
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,
|
|
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":";;;
|
|
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,
|
|
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"}
|
|
@@ -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;
|
|
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,
|
|
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"}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -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,
|
|
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,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
|
-
};
|
package/dist/EngineEventBus.d.ts
DELETED
|
@@ -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
|
-
};
|