@5minds/processcube_engine_sdk 5.0.0-feature-5d29bc-lsbmelbb → 5.0.0-feature-c05bcb-lsj0yuxe

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.
@@ -22,7 +22,7 @@ export type UserTaskInstance = FlowNodeInstance & {
22
22
  */
23
23
  userTaskConfigModel: UserTaskConfigModel;
24
24
  /**
25
- * Optional: The identifiers (either ID, name or email) of the Users that are assigned to the UserTask.
25
+ * Optional: The IDs of the Users that are assigned to the UserTask.
26
26
  */
27
27
  assignedUserIds?: Array<string>;
28
28
  };
@@ -15,12 +15,6 @@
15
15
  * userId:
16
16
  * description: The ID of the auth token's owner.
17
17
  * type: string
18
- * userName:
19
- * description: The username of the auth token's owner.
20
- * type: string
21
- * userEmail:
22
- * description: The email address of the auth token's owner.
23
- * type: string
24
18
  * anonymousSessionId:
25
19
  * description: The ID of an anonymous session.
26
20
  * type: string
@@ -36,15 +30,7 @@ export type Identity = {
36
30
  /**
37
31
  * The ID of the auth token's owner.
38
32
  */
39
- userId?: string;
40
- /**
41
- * The userName of the auth token's owner.
42
- */
43
- userName?: string;
44
- /**
45
- * The userEmail of the auth token's owner.
46
- */
47
- userEmail?: string;
33
+ userId: string;
48
34
  /**
49
35
  * Optional: The ID of an anonymous session.
50
36
  * Should be set, when the auth token belongs to an anonymous user.
@@ -14,6 +14,7 @@ export type OnIntermediateCatchEventFinishedCallback = (intermediateCatchEventFi
14
14
  export type OnFlowNodeEventRetrySendingCallback = (flowNodeEventRetrySending: EventMessage) => void | Promise<void>;
15
15
  export type OnMessageTriggeredCallback = (messageTriggered: EventMessage) => void | Promise<void>;
16
16
  export type OnSignalTriggeredCallback = (signalTriggered: EventMessage) => void | Promise<void>;
17
+ export type OnEscalationTriggeredCallback = (escalationTriggered: EventMessage) => void | Promise<void>;
17
18
  export type OnStartEventFinishedCallback = (startEventFinished: EventMessage) => void | Promise<void>;
18
19
  export type OnEndEventFinishedCallback = (endEventFinished: EventMessage) => void | Promise<void>;
19
20
  export type OnActivityReachedCallback = (activityReached: EventMessage) => void | Promise<void>;
@@ -45,6 +45,10 @@ export interface IEventExtensionAdapter {
45
45
  subscribeOnce?: boolean;
46
46
  identity?: Identity;
47
47
  }): Promise<Subscription>;
48
+ onEscalationTriggered(callback: Messages.CallbackTypes.OnEscalationTriggeredCallback, options?: {
49
+ subscribeOnce?: boolean;
50
+ identity?: Identity;
51
+ }): Promise<Subscription>;
48
52
  onStartEventFinished(callback: Messages.CallbackTypes.OnStartEventFinishedCallback, options?: {
49
53
  subscribeOnce?: boolean;
50
54
  identity?: Identity;
@@ -149,6 +149,10 @@ export interface INotificationExtensionAdapter {
149
149
  subscribeOnce?: boolean;
150
150
  identity?: Identity;
151
151
  }): Promise<Subscription>;
152
+ onEscalationTriggered(callback: Messages.CallbackTypes.OnSignalTriggeredCallback, options?: {
153
+ subscribeOnce?: boolean;
154
+ identity?: Identity;
155
+ }): Promise<Subscription>;
152
156
  onStartEventFinished(callback: Messages.CallbackTypes.OnStartEventFinishedCallback, options?: {
153
157
  subscribeOnce?: boolean;
154
158
  identity?: Identity;
@@ -0,0 +1,28 @@
1
+ import { EventType } from '../Constants';
2
+ import { BoundaryEvent, Event, EndEvent, EventDefinition, IntermediateCatchEvent, IntermediateThrowEvent, StartEvent } from './EventBase';
3
+ /**
4
+ * Describes a global BPMN Escalation object.
5
+ */
6
+ export type Escalation = {
7
+ id: string;
8
+ code: string;
9
+ };
10
+ /**
11
+ * Contains the definition for an EscalationEvent.
12
+ */
13
+ export type EscalationEventDefinition = EventDefinition & {
14
+ id: string;
15
+ code: string;
16
+ };
17
+ /**
18
+ * Describes a Flow Node with a Escalation Event Definition.
19
+ */
20
+ export type EscalationEvent = Event & {
21
+ readonly eventType: EventType.escalationEvent;
22
+ escalationEventDefinition: EscalationEventDefinition;
23
+ };
24
+ export type EscalationBoundaryEvent = BoundaryEvent & EscalationEvent;
25
+ export type EscalationStartEvent = StartEvent & EscalationEvent;
26
+ export type EscalationEndEvent = EndEvent & EscalationEvent;
27
+ export type EscalationIntermediateCatchEvent = IntermediateCatchEvent & EscalationEvent;
28
+ export type EscalationIntermediateThrowEvent = IntermediateThrowEvent & EscalationEvent;
@@ -6,3 +6,4 @@ export * from './MessageEvents';
6
6
  export * from './SignalEvents';
7
7
  export * from './TerminateEvents';
8
8
  export * from './TimerEvents';
9
+ export * from './EscalationEvents';
@@ -0,0 +1,5 @@
1
+ define(["require", "exports"], function (require, exports) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ });
5
+ //# sourceMappingURL=EscalationEvents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EscalationEvents.js","sourceRoot":"","sources":["../../../../../src/ProcessModel/Model/Events/EscalationEvents.ts"],"names":[],"mappings":""}
@@ -12,7 +12,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
12
12
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
13
13
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
14
14
  };
15
- define(["require", "exports", "./ConditionalEvents", "./ErrorEvents", "./EventBase", "./LinkEvents", "./MessageEvents", "./SignalEvents", "./TerminateEvents", "./TimerEvents"], function (require, exports, ConditionalEvents_1, ErrorEvents_1, EventBase_1, LinkEvents_1, MessageEvents_1, SignalEvents_1, TerminateEvents_1, TimerEvents_1) {
15
+ define(["require", "exports", "./ConditionalEvents", "./ErrorEvents", "./EventBase", "./LinkEvents", "./MessageEvents", "./SignalEvents", "./TerminateEvents", "./TimerEvents", "./EscalationEvents"], function (require, exports, ConditionalEvents_1, ErrorEvents_1, EventBase_1, LinkEvents_1, MessageEvents_1, SignalEvents_1, TerminateEvents_1, TimerEvents_1, EscalationEvents_1) {
16
16
  "use strict";
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  __exportStar(ConditionalEvents_1, exports);
@@ -23,5 +23,6 @@ define(["require", "exports", "./ConditionalEvents", "./ErrorEvents", "./EventBa
23
23
  __exportStar(SignalEvents_1, exports);
24
24
  __exportStar(TerminateEvents_1, exports);
25
25
  __exportStar(TimerEvents_1, exports);
26
+ __exportStar(EscalationEvents_1, exports);
26
27
  });
27
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ProcessModel/Model/Events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;IAAA,2CAAoC;IACpC,qCAA8B;IAC9B,mCAA4B;IAC5B,oCAA6B;IAC7B,uCAAgC;IAChC,sCAA+B;IAC/B,yCAAkC;IAClC,qCAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ProcessModel/Model/Events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;IAAA,2CAAoC;IACpC,qCAA8B;IAC9B,mCAA4B;IAC5B,oCAA6B;IAC7B,uCAAgC;IAChC,sCAA+B;IAC/B,yCAAkC;IAClC,qCAA8B;IAC9B,0CAAmC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=EscalationEvents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EscalationEvents.js","sourceRoot":"","sources":["../../../../../src/ProcessModel/Model/Events/EscalationEvents.ts"],"names":[],"mappings":""}
@@ -22,4 +22,5 @@ __exportStar(require("./MessageEvents"), exports);
22
22
  __exportStar(require("./SignalEvents"), exports);
23
23
  __exportStar(require("./TerminateEvents"), exports);
24
24
  __exportStar(require("./TimerEvents"), exports);
25
+ __exportStar(require("./EscalationEvents"), exports);
25
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ProcessModel/Model/Events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,gDAA8B;AAC9B,8CAA4B;AAC5B,+CAA6B;AAC7B,kDAAgC;AAChC,iDAA+B;AAC/B,oDAAkC;AAClC,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ProcessModel/Model/Events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,gDAA8B;AAC9B,8CAA4B;AAC5B,+CAA6B;AAC7B,kDAAgC;AAChC,iDAA+B;AAC/B,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/processcube_engine_sdk",
3
- "version": "5.0.0-feature-5d29bc-lsbmelbb",
3
+ "version": "5.0.0-feature-c05bcb-lsj0yuxe",
4
4
  "description": "Software development kit for the Engine.",
5
5
  "main": "dist/commonjs/index.js",
6
6
  "types": "dist/index.d.ts",