@5minds/processcube_engine_sdk 6.1.0-feature-87f566-m3wopid2 → 6.1.0-feature-a26f43-m3wtmlne

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 (40) hide show
  1. package/dist/DataModels/BusinessRuleTask/BusinessRuleTask.d.ts +130 -0
  2. package/dist/DataModels/BusinessRuleTask/BusinessRuleTaskErrors.d.ts +64 -0
  3. package/dist/DataModels/BusinessRuleTask/BusinessRuleTaskRequestPayloads.d.ts +127 -0
  4. package/dist/DataModels/BusinessRuleTask/index.d.ts +3 -0
  5. package/dist/DataModels/FlowNodeInstance/BusinessRuleTaskInstance.d.ts +3 -3
  6. package/dist/DataModels/FlowNodeInstance/FlowNodeInstance.d.ts +0 -5
  7. package/dist/DataModels/FlowNodeInstance/Queries.d.ts +0 -1
  8. package/dist/DataModels/index.d.ts +3 -0
  9. package/dist/EngineEvents/EventCallbackTypes.d.ts +5 -1
  10. package/dist/EngineEvents/EventPayloads/BusinessRuleTaskMessages.d.ts +160 -0
  11. package/dist/EngineEvents/EventPayloads/index.d.ts +1 -0
  12. package/dist/ExtensionAdapter/BusinessRuleTaskExtensionAdapter.d.ts +10 -0
  13. package/dist/ExtensionAdapter/index.d.ts +1 -0
  14. package/dist/ProcessModel/Model/Activities/BusinessRuleTask.d.ts +4 -4
  15. package/dist/ProcessModel/ViewModel/Activities/BusinessRuleTaskViewModel.d.ts +1 -1
  16. package/dist/commonjs/DataModels/BusinessRuleTask/BusinessRuleTask.js +22 -0
  17. package/dist/commonjs/DataModels/BusinessRuleTask/BusinessRuleTask.js.map +1 -0
  18. package/dist/commonjs/DataModels/BusinessRuleTask/BusinessRuleTaskErrors.js +74 -0
  19. package/dist/commonjs/DataModels/BusinessRuleTask/BusinessRuleTaskErrors.js.map +1 -0
  20. package/dist/commonjs/DataModels/BusinessRuleTask/BusinessRuleTaskRequestPayloads.js +3 -0
  21. package/dist/commonjs/DataModels/BusinessRuleTask/BusinessRuleTaskRequestPayloads.js.map +1 -0
  22. package/dist/commonjs/DataModels/BusinessRuleTask/index.js +20 -0
  23. package/dist/commonjs/DataModels/BusinessRuleTask/index.js.map +1 -0
  24. package/dist/commonjs/DataModels/FlowNodeInstance/FlowNodeInstance.js +0 -1
  25. package/dist/commonjs/DataModels/FlowNodeInstance/FlowNodeInstance.js.map +1 -1
  26. package/dist/commonjs/DataModels/index.js +3 -0
  27. package/dist/commonjs/DataModels/index.js.map +1 -1
  28. package/dist/commonjs/EngineEvents/EventPayloads/BusinessRuleTaskMessages.js +3 -0
  29. package/dist/commonjs/EngineEvents/EventPayloads/BusinessRuleTaskMessages.js.map +1 -0
  30. package/dist/commonjs/EngineEvents/EventPayloads/index.js +1 -0
  31. package/dist/commonjs/EngineEvents/EventPayloads/index.js.map +1 -1
  32. package/dist/commonjs/ExtensionAdapter/BusinessRuleTaskExtensionAdapter.js +3 -0
  33. package/dist/commonjs/ExtensionAdapter/BusinessRuleTaskExtensionAdapter.js.map +1 -0
  34. package/dist/commonjs/ExtensionAdapter/index.js +1 -0
  35. package/dist/commonjs/ExtensionAdapter/index.js.map +1 -1
  36. package/dist/commonjs/ProcessModel/ProcessModelParser/Parser/FlowNodeParsers/ActivityParsers/BusinessRuleTaskParser.js +1 -1
  37. package/dist/commonjs/ProcessModel/ProcessModelParser/Parser/FlowNodeParsers/ActivityParsers/BusinessRuleTaskParser.js.map +1 -1
  38. package/dist/commonjs/ProcessModel/ViewModel/Activities/BusinessRuleTaskViewModel.js +2 -2
  39. package/dist/commonjs/ProcessModel/ViewModel/Activities/BusinessRuleTaskViewModel.js.map +1 -1
  40. package/package.json +1 -1
@@ -0,0 +1,130 @@
1
+ /**
2
+ * @swagger
3
+ * components:
4
+ * schemas:
5
+ * BusinessRuleTask:
6
+ * description: Describes an BusinessRuleTask that the Engine has delegated to an business rule engine for processing.
7
+ * type: object
8
+ * required:
9
+ * - id
10
+ * - businessRuleEngineId
11
+ * - serviceId
12
+ * - isSingleTry
13
+ * - flowNodeInstanceId
14
+ * - correlationId
15
+ * - processDefinitionId
16
+ * - processInstanceId
17
+ * - ownerId
18
+ * - payload
19
+ * - lockExpirationTime
20
+ * - state
21
+ * properties:
22
+ * id:
23
+ * description: The ID of the BusinessRuleTask.
24
+ * type: string
25
+ * businessRuleEngineId:
26
+ * description: The ID of the business rule engine that has most recently locked the BusinessRuleTask for processing.
27
+ * type: string
28
+ * serviceId:
29
+ * description: The service name of the BusinessRuleTask.
30
+ * type: string
31
+ * isSingleTry:
32
+ * description: A flag indicating whether or not the BusinessRuleTask is a single try task.
33
+ * type: boolean
34
+ * flowNodeInstanceId:
35
+ * description: The ID of the FlowNodeInstance that the BusinessRuleTask belongs to.
36
+ * type: string
37
+ * correlationId:
38
+ * description: The ID of the Correlation that the BusinessRuleTask belongs to.
39
+ * type: string
40
+ * processDefinitionId:
41
+ * description: The ID of the ProcessDefinition that contains the BusinessRuleTask.
42
+ * type: string
43
+ * processModelId:
44
+ * description: The ID of the ProcessModel that contains the BusinessRuleTask.
45
+ * type: string
46
+ * embeddedProcessModelId:
47
+ * description: The ID of the SubProcess that contains the BusinessRuleTask.
48
+ * type: string
49
+ * processInstanceId:
50
+ * description: The ID of the ProcessInstance the BusinessRuleTask belongs to.
51
+ * type: string
52
+ * ownerId:
53
+ * description: The ID of the user that owns the BusinessRuleTask.
54
+ * type: string
55
+ * payload:
56
+ * description: The payload containing all relevant data the business rule engine needs to execute the requested service.
57
+ * type: object
58
+ * lockExpirationTime:
59
+ * description: The lock expiration time. On expiration, the task is released to be processed by other business rule engines. If not set, the BusinessRuleTask is not locked.
60
+ * type: string
61
+ * state:
62
+ * description: The state of the BusinessRuleTask.
63
+ * $ref: '#/components/schemas/BusinessRuleTaskState'
64
+ * finishedAt:
65
+ * description: The date when the BusinessRuleTask was finished.
66
+ * type: string
67
+ * result:
68
+ * description: The result of the BusinessRuleTask.
69
+ * type: object
70
+ * error:
71
+ * description: The error that occurred during processing of the BusinessRuleTask (if any).
72
+ * type: object
73
+ * createdAt:
74
+ * description: The date when the BusinessRuleTask was created.
75
+ * type: string
76
+ */
77
+ /**
78
+ * Describes an BusinessRuleTask that the Engine has delegated to an
79
+ * business rule engine for processing.
80
+ */
81
+ export declare type BusinessRuleTask<TPayload> = {
82
+ id: string;
83
+ /**
84
+ * The ID of the business rule engine that has most recently locked the BusinessRuleTask
85
+ * for processing.
86
+ */
87
+ businessRuleEngineId: string;
88
+ serviceId: string;
89
+ isSingleTry: boolean;
90
+ flowNodeInstanceId: string;
91
+ correlationId: string;
92
+ processDefinitionId: string;
93
+ processModelId?: string;
94
+ embeddedProcessModelId?: string;
95
+ processInstanceId: string;
96
+ ownerId: string;
97
+ /**
98
+ * The payload containing all relevant data the business rule engine needs to execute the
99
+ * requested service.
100
+ */
101
+ payload: TPayload;
102
+ /**
103
+ * The lock expiration time. On expiration, the task is released to
104
+ * be processed by other business rule engines.
105
+ * If not set, the BusinessRuleTask is not locked.
106
+ */
107
+ lockExpirationTime: Date;
108
+ state: BusinessRuleTaskState;
109
+ finishedAt?: Date;
110
+ result?: any;
111
+ error?: any;
112
+ createdAt?: Date;
113
+ };
114
+ /**
115
+ * @swagger
116
+ * components:
117
+ * schemas:
118
+ * BusinessRuleTaskState:
119
+ * description: Describes the state of an BusinessRuleTask.
120
+ * type: string
121
+ * enum:
122
+ * - pending
123
+ * - finished
124
+ * - expired
125
+ */
126
+ export declare enum BusinessRuleTaskState {
127
+ pending = "pending",
128
+ finished = "finished",
129
+ expired = "expired"
130
+ }
@@ -0,0 +1,64 @@
1
+ /**
2
+ * @swagger
3
+ * components:
4
+ * schemas:
5
+ * BusinessRuleTaskError:
6
+ * description: Describes an error that occured while processing an BusinessRule Task.
7
+ * type: object
8
+ * required:
9
+ * - errorCode
10
+ * properties:
11
+ * errorCode:
12
+ * type: string
13
+ * description: The error code of the error.
14
+ * errorMessage:
15
+ * type: string
16
+ * description: The error message of the error.
17
+ * errorDetails:
18
+ * type: object
19
+ * description: Additional information about the error.
20
+ */
21
+ /**
22
+ * Describes an error that occured while processing an BusinessRule Task.
23
+ */
24
+ export declare class BusinessRuleTaskError {
25
+ errorCode: string;
26
+ errorMessage: string;
27
+ errorDetails: any;
28
+ constructor(errorCode: string, errorMessage?: string, errorDetails?: any);
29
+ }
30
+ /**
31
+ * @swagger
32
+ * components:
33
+ * schemas:
34
+ * BusinessRuleTaskReusableError:
35
+ * description: A formatted error object representing an BusinessRuleTask error.
36
+ * type: object
37
+ * required:
38
+ * - code
39
+ * properties:
40
+ * code:
41
+ * description: The error code of the error.
42
+ * oneOf:
43
+ * - type: number
44
+ * - type: string
45
+ * name:
46
+ * description: The name of the error.
47
+ * type: string
48
+ * message:
49
+ * description: The error message of the error.
50
+ * type: string
51
+ * additionalInformation:
52
+ * description: Additional information about the error.
53
+ * type: object
54
+ */
55
+ /**
56
+ * For internal use only - A formatted error object representing an BusinessRuleTask error.
57
+ * Can be used by internal services who don't care if we're dealing with a Service- or BPMN error
58
+ */
59
+ export declare class BusinessRuleTaskReusableError {
60
+ code: number | string;
61
+ name?: string;
62
+ message?: string;
63
+ additionalInformation?: any;
64
+ }
@@ -0,0 +1,127 @@
1
+ import { BusinessRuleTaskError } from './BusinessRuleTaskErrors';
2
+ /**
3
+ * @swagger
4
+ * components:
5
+ * schemas:
6
+ * BusinessRuleExtendLockRequestPayload:
7
+ * description: Describes the payload that must be send with a extendLock HTTP POST request.
8
+ * type: object
9
+ * required:
10
+ * - businessRuleEngineId
11
+ * - additionalDuration
12
+ * properties:
13
+ * businessRuleEngineId:
14
+ * description: The ID of the business rule engine that wants to extend the lock.
15
+ * type: string
16
+ * additionalDuration:
17
+ * description: The additional duration in milliseconds that the lock should be extended.
18
+ * type: number
19
+ */
20
+ /**
21
+ * Describes the payload that must be send with a extendLock HTTP POST request.
22
+ */
23
+ export declare type BusinessRuleExtendLockRequestPayload = {
24
+ businessRuleEngineId: string;
25
+ additionalDuration: number;
26
+ };
27
+ /**
28
+ * @swagger
29
+ * components:
30
+ * schemas:
31
+ * BusinessRuleFetchAndLockRequestPayload:
32
+ * description: Describes the payload that must be send with a fetchAndLock HTTP POST request.
33
+ * type: object
34
+ * required:
35
+ * - businessRuleEngineId
36
+ * - serviceId
37
+ * - maxTasks
38
+ * - longPollingTimeout
39
+ * - lockDuration
40
+ * - payloadFilter
41
+ * properties:
42
+ * businessRuleEngineId:
43
+ * description: The ID of the business rule engine that wants to fetch and lock tasks.
44
+ * type: string
45
+ * serviceId:
46
+ * description: The service name of the tasks to fetch and lock.
47
+ * oneOf:
48
+ * - type: string
49
+ * - type: array
50
+ * items:
51
+ * type: string
52
+ * maxTasks:
53
+ * description: The maximum number of tasks to fetch and lock.
54
+ * type: number
55
+ * longPollingTimeout:
56
+ * description: The timeout for the long polling request.
57
+ * type: number
58
+ * lockDuration:
59
+ * description: The duration for which the tasks should be locked.
60
+ * type: number
61
+ * payloadFilter:
62
+ * description: A filter for the payload of the tasks.
63
+ * type: string
64
+ */
65
+ /**
66
+ * Describes the payload that must be send with a fetchAndLock HTTP POST request.
67
+ */
68
+ export declare type BusinessRuleFetchAndLockRequestPayload = {
69
+ businessRuleEngineId: string;
70
+ serviceId: string | Array<string>;
71
+ maxTasks: number;
72
+ longPollingTimeout: number;
73
+ lockDuration: number;
74
+ payloadFilter: string;
75
+ };
76
+ /**
77
+ * @swagger
78
+ * components:
79
+ * schemas:
80
+ * FinishBusinessRuleTaskRequestPayload:
81
+ * description: Describes the payload that must be send with a finishBusinessRuleTask HTTP POST request.
82
+ * type: object
83
+ * required:
84
+ * - businessRuleEngineId
85
+ * - result
86
+ * properties:
87
+ * businessRuleEngineId:
88
+ * description: The ID of the business rule engine that wants to finish the task.
89
+ * type: string
90
+ * result:
91
+ * description: The result of the task.
92
+ * type: object
93
+ * example:
94
+ * foo: bar
95
+ */
96
+ /**
97
+ * Describes the payload that must be send with a finishBusinessRuleTask HTTP POST request.
98
+ */
99
+ export declare type FinishBusinessRuleTaskRequestPayload<TResult> = {
100
+ businessRuleEngineId: string;
101
+ result: TResult;
102
+ };
103
+ /**
104
+ * @swagger
105
+ * components:
106
+ * schemas:
107
+ * HandleBusinessRuleTaskErrorRequestPayload:
108
+ * description: Describes the payload that must be send with a handleBusinessRuleTaskError HTTP POST request.
109
+ * type: object
110
+ * required:
111
+ * - businessRuleEngineId
112
+ * - bpmnError
113
+ * properties:
114
+ * businessRuleEngineId:
115
+ * description: The ID of the business rule engine that wants to handle the BPMN error.
116
+ * type: string
117
+ * error:
118
+ * description: The error to handle.
119
+ * $ref: '#/components/schemas/BusinessRuleTaskError'
120
+ */
121
+ /**
122
+ * Describes the payload that must be send with a handleBusinessRuleTaskError HTTP POST request.
123
+ */
124
+ export declare type HandleBusinessRuleTaskErrorRequestPayload = {
125
+ businessRuleEngineId: string;
126
+ error: BusinessRuleTaskError;
127
+ };
@@ -0,0 +1,3 @@
1
+ export * from './BusinessRuleTask';
2
+ export * from './BusinessRuleTaskErrors';
3
+ export * from './BusinessRuleTaskRequestPayloads';
@@ -4,12 +4,12 @@ export type BusinessRuleTaskInstance = FlowNodeInstance & {
4
4
  businessRuleTaskData?: BusinessRuleTaskData;
5
5
  };
6
6
  export type BusinessRuleTaskData = {
7
- externalTaskId: string;
8
- topic: string;
7
+ businessRuleTaskId: string;
8
+ serviceId: string;
9
9
  state: ExternalTaskState;
10
10
  isSingleTry: boolean;
11
11
  payload: any;
12
- workerId?: string;
12
+ businessRuleEngineId?: string;
13
13
  lockExpirationTime?: Date;
14
14
  result?: any;
15
15
  error?: any;
@@ -78,9 +78,6 @@ export type FlowNodeInstanceList = {
78
78
  * embeddedProcessModelId:
79
79
  * description: The ID of the SubProcess that contains this FlowNodeInstance
80
80
  * type: string
81
- * processModelName:
82
- * description: The Name of the ProcessModel that contains this FlowNodeInstance
83
- * type: string
84
81
  * processInstanceId:
85
82
  * description: The ID of the ProcessInstance that contains this FlowNodeInstance
86
83
  * type: string
@@ -148,7 +145,6 @@ export type FlowNodeInstance = {
148
145
  processDefinitionId: string;
149
146
  processModelId: string;
150
147
  embeddedProcessModelId?: string;
151
- processModelName?: string;
152
148
  processInstanceId: string;
153
149
  correlationId: string;
154
150
  /**
@@ -209,7 +205,6 @@ export declare enum FlowNodeInstanceSortableColumns {
209
205
  processDefinitionId = "processDefinitionId",
210
206
  processModelId = "processModelId",
211
207
  embeddedProcessModelId = "embeddedProcessModelId",
212
- processModelName = "processModelName",
213
208
  processInstanceId = "processInstanceId",
214
209
  correlationId = "correlationId",
215
210
  ownerId = "ownerId",
@@ -9,7 +9,6 @@ type FlowNodeInstanceBaseQuery = {
9
9
  processDefinitionId?: Array<string> | string;
10
10
  processModelId?: Array<string> | string;
11
11
  embeddedProcessModelId?: Array<string> | string;
12
- processModelName?: Array<string> | string;
13
12
  processInstanceId?: Array<string> | string;
14
13
  correlationId?: Array<string> | string;
15
14
  parentProcessInstanceId?: Array<string> | string;
@@ -3,6 +3,7 @@
3
3
  * Removing this would cause a ton of breaking changes with the client, the proxy and probably every extension.
4
4
  */
5
5
  import * as appInfo from './ApplicationInfo';
6
+ import * as businessRuleTasks from './BusinessRuleTask';
6
7
  import * as correlation from './Correlation';
7
8
  import * as cronjob from './Cronjob/index';
8
9
  import * as dataObject from './DataObjectInstance';
@@ -12,6 +13,7 @@ import * as iam from './Iam/index';
12
13
  import * as processDefinitions from './ProcessDefinition';
13
14
  import * as processInstances from './ProcessInstance/index';
14
15
  export * from './ApplicationInfo';
16
+ export * from './BusinessRuleTask/index';
15
17
  export * from './Constants';
16
18
  export * from './Correlation';
17
19
  export * from './Cronjob/index';
@@ -23,6 +25,7 @@ export * from './ProcessDefinition';
23
25
  export * from './ProcessInstance/index';
24
26
  export declare namespace DataModels {
25
27
  export import ApplicationInfo = appInfo.ApplicationInfo;
28
+ export import BusinessRuleTasks = businessRuleTasks;
26
29
  export import Correlation = correlation;
27
30
  export import Cronjob = cronjob;
28
31
  export import DataObjects = dataObject;
@@ -1,4 +1,4 @@
1
- import { CronjobEnabledChangedMessage, CronjobEventMessage, EventMessage, ExternalTaskCreatedMessage, ExternalTaskExpiredMessage, ExternalTaskLockedMessage, ExternalTaskUnlockedMessage, MetadataChangedMessage, ProcessDeploymentMessage, ProcessInstancesDeletedMessage, ProcessIsExecutableChangedMessage, UserTaskFinishedMessage } from './EventPayloads/index';
1
+ import { BusinessRuleTaskCreatedMessage, BusinessRuleTaskExpiredMessage, BusinessRuleTaskLockedMessage, BusinessRuleTaskUnlockedMessage, CronjobEnabledChangedMessage, CronjobEventMessage, EventMessage, ExternalTaskCreatedMessage, ExternalTaskExpiredMessage, ExternalTaskLockedMessage, ExternalTaskUnlockedMessage, MetadataChangedMessage, ProcessDeploymentMessage, ProcessInstancesDeletedMessage, ProcessIsExecutableChangedMessage, UserTaskFinishedMessage } from './EventPayloads/index';
2
2
  export type OnActivityErrorCallback = (activityError: EventMessage) => void | Promise<void>;
3
3
  export type OnProcessDeployedCallback = (message: ProcessDeploymentMessage) => void | Promise<void>;
4
4
  export type OnProcessInstancesDeletedCallback = (message: ProcessInstancesDeletedMessage) => void | Promise<void>;
@@ -43,6 +43,10 @@ export type OnExternalTaskCreatedCallback = (externaTask: ExternalTaskCreatedMes
43
43
  export type OnExternalTaskLockedCallback = (externaTask: ExternalTaskLockedMessage) => void | Promise<void>;
44
44
  export type OnExternalTaskUnlockedCallback = (externaTask: ExternalTaskUnlockedMessage) => void | Promise<void>;
45
45
  export type OnExternalTaskExpiredCallback = (externaTask: ExternalTaskExpiredMessage) => void | Promise<void>;
46
+ export type OnBusinessRuleTaskCreatedCallback = (businessRuleTask: BusinessRuleTaskCreatedMessage) => void | Promise<void>;
47
+ export type OnBusinessRuleTaskLockedCallback = (businessRuleTask: BusinessRuleTaskLockedMessage) => void | Promise<void>;
48
+ export type OnBusinessRuleTaskUnlockedCallback = (businessRuleTask: BusinessRuleTaskUnlockedMessage) => void | Promise<void>;
49
+ export type OnBusinessRuleTaskExpiredCallback = (businessRuleTask: BusinessRuleTaskExpiredMessage) => void | Promise<void>;
46
50
  export type OnProcessInstanceMetadataChangedCallback = (metadataChanged: MetadataChangedMessage) => void | Promise<void>;
47
51
  export type OnCorrelationMetadataChangedCallback = (metadataChanged: MetadataChangedMessage) => void | Promise<void>;
48
52
  export type OnGatewayFinishedCallback = (gatewayFinished: EventMessage) => void | Promise<void>;
@@ -0,0 +1,160 @@
1
+ import { BusinessRuleTaskReusableError } from '../../DataModels/BusinessRuleTask/index';
2
+ import { EventMessage } from './BaseMessage';
3
+ /**
4
+ * @swagger
5
+ * components:
6
+ * schemas:
7
+ * BusinessRuleTaskCreatedMessage:
8
+ * description: Message that is sent whenever an BusinessRuleTask was created.
9
+ * allOf:
10
+ * - $ref: '#/components/schemas/EventMessage'
11
+ * - type: object
12
+ * required:
13
+ * - businessRuleTaskId
14
+ * - serviceId
15
+ * - isSingleTry
16
+ * properties:
17
+ * businessRuleTaskId:
18
+ * description: The ID of the BusinessRuleTask.
19
+ * type: string
20
+ * serviceId:
21
+ * description: The serviceId of the BusinessRuleTask.
22
+ * type: string
23
+ * isSingleTry:
24
+ * description: Flag indicating whether the BusinessRuleTask is a SingleTry BusinessRuleTask.
25
+ * type: boolean
26
+ */
27
+ /**
28
+ * Encapsulates the message that is sent when when an BusinessRuleTask was created.
29
+ */
30
+ export type BusinessRuleTaskCreatedMessage = EventMessage & {
31
+ businessRuleTaskId: string;
32
+ serviceId: string;
33
+ isSingleTry: boolean;
34
+ };
35
+ /**
36
+ * @swagger
37
+ * components:
38
+ * schemas:
39
+ * BusinessRuleTaskLockedMessage:
40
+ * description: Message that is sent whenever an BusinessRuleTask was locked by a business rule engine.
41
+ * allOf:
42
+ * - $ref: '#/components/schemas/BusinessRuleTaskCreatedMessage'
43
+ * - type: object
44
+ * required:
45
+ * - businessRuleEngineId
46
+ * - lockExpirationTime
47
+ * properties:
48
+ * businessRuleEngineId:
49
+ * description: The ID of the business rule engine that locked the BusinessRuleTask.
50
+ * type: string
51
+ * lockExpirationTime:
52
+ * description: The time when the lock expires.
53
+ * type: string
54
+ */
55
+ /**
56
+ * Encapsulates the message that is sent when when a batch of BusinessRuleTasks was locked by a business rule engine.
57
+ */
58
+ export type BusinessRuleTaskLockedMessage = BusinessRuleTaskCreatedMessage & {
59
+ businessRuleEngineId: string;
60
+ lockExpirationTime: Date;
61
+ };
62
+ /**
63
+ * @swagger
64
+ * components:
65
+ * schemas:
66
+ * BusinessRuleTaskUnlockedMessage:
67
+ * description: Message that is sent whenever an BusinessRuleTask lock expires.
68
+ * allOf:
69
+ * - $ref: '#/components/schemas/BusinessRuleTaskCreatedMessage'
70
+ * - type: object
71
+ * required:
72
+ * - businessRuleTaskId
73
+ * - serviceId
74
+ * properties:
75
+ * businessRuleTaskId:
76
+ * description: The ID of the BusinessRuleTask.
77
+ * type: string
78
+ * serviceId:
79
+ * description: The serviceId of the BusinessRuleTask.
80
+ * type: string
81
+ */
82
+ /**
83
+ * Encapsulates the message that is sent when when an BusinessRuleTask lock expires.
84
+ * Only sent for Multi-Try BusinessRule Tasks, because SingleTry BusinessRule Tasks will emit an BusinessRuleTaskExpired message in such cases.
85
+ */
86
+ export type BusinessRuleTaskUnlockedMessage = BusinessRuleTaskCreatedMessage & {
87
+ businessRuleTaskId: string;
88
+ serviceId: string;
89
+ };
90
+ /**
91
+ * @swagger
92
+ * components:
93
+ * schemas:
94
+ * BusinessRuleTaskExpiredMessage:
95
+ * description: Message that is sent whenever an BusinessRuleTask expires.
96
+ * allOf:
97
+ * - $ref: '#/components/schemas/BusinessRuleTaskCreatedMessage'
98
+ * - type: object
99
+ * required:
100
+ * - businessRuleTaskId
101
+ * - serviceId
102
+ * properties:
103
+ * businessRuleTaskId:
104
+ * description: The ID of the BusinessRuleTask.
105
+ * type: string
106
+ * serviceId:
107
+ * description: The serviceId of the BusinessRuleTask.
108
+ * type: string
109
+ */
110
+ /**
111
+ * Encapsulates the message that is sent when when an SingleTry BusinessRuleTask expires.
112
+ */
113
+ export type BusinessRuleTaskExpiredMessage = BusinessRuleTaskCreatedMessage & {
114
+ businessRuleTaskId: string;
115
+ serviceId: string;
116
+ };
117
+ /**
118
+ * @swagger
119
+ * components:
120
+ * schemas:
121
+ * BusinessRuleTaskErrorMessage:
122
+ * description: Message that is sent whenever an BusinessRuleTask encountered an error.
123
+ * allOf:
124
+ * - $ref: '#/components/schemas/BusinessRuleTaskCreatedMessage'
125
+ * - type: object
126
+ * required:
127
+ * - error
128
+ * properties:
129
+ * error:
130
+ * description: The error that occurred.
131
+ * $ref: '#/components/schemas/BusinessRuleTaskReusableError'
132
+ */
133
+ /**
134
+ * Encapsulates a payload that is used when sending an event for finishing an BusinessRule Task with an error result.
135
+ */
136
+ export type BusinessRuleTaskErrorMessage = {
137
+ error: BusinessRuleTaskReusableError;
138
+ };
139
+ /**
140
+ * @swagger
141
+ * components:
142
+ * schemas:
143
+ * BusinessRuleTaskSuccessMessage:
144
+ * description: Message that is sent whenever an BusinessRuleTask encountered an error.
145
+ * allOf:
146
+ * - $ref: '#/components/schemas/BusinessRuleTaskCreatedMessage'
147
+ * - type: object
148
+ * required:
149
+ * - result
150
+ * properties:
151
+ * result:
152
+ * description: The result of the BusinessRuleTask.
153
+ * type: object
154
+ */
155
+ /**
156
+ * Encapsulates a payload that is used when sending an event for finishing an BusinessRule Task with a success result.
157
+ */
158
+ export type BusinessRuleTaskSuccessMessage<TResult> = {
159
+ result: TResult;
160
+ };
@@ -1,4 +1,5 @@
1
1
  export * from './BaseMessage';
2
+ export * from './BusinessRuleTaskMessages';
2
3
  export * from './CronjobEvent';
3
4
  export * from './CronjobEnabledChangedMessage';
4
5
  export * from './ErrorEndEventReached';
@@ -0,0 +1,10 @@
1
+ import { DataModels, Identity } from '../index';
2
+ type BusinessRuleTask<TPayload> = DataModels.BusinessRuleTasks.BusinessRuleTask<TPayload>;
3
+ export interface IBusinessRuleTaskExtensionAdapter {
4
+ getAllDeployedServiceIds(identity?: Identity): Promise<Array<string>>;
5
+ fetchAndLockBusinessRuleTasks<TPayload>(businessRuleEngineId: string, serviceIds: string | Array<string>, maxTasks: number, longPollingTimeout: number, lockDuration: number, payloadFilter?: RegExp, identity?: Identity): Promise<Array<BusinessRuleTask<TPayload>>>;
6
+ extendLock(businessRuleEngineId: string, businessRuleTaskId: string, additionalDuration: number, identity?: Identity): Promise<void>;
7
+ handleError(businessRuleEngineId: string, businessRuleTaskId: string, error: DataModels.BusinessRuleTasks.BusinessRuleTaskError, identity?: Identity): Promise<void>;
8
+ finishBusinessRuleTask<TResultType>(businessRuleEngineId: string, businessRuleTaskId: string, result: TResultType, identity?: Identity): Promise<void>;
9
+ }
10
+ export {};
@@ -1,4 +1,5 @@
1
1
  export * from './ApplicationInfoExtensionAdapter';
2
+ export * from './BusinessRuleTaskExtensionAdapter';
2
3
  export * from './CorrelationExtensionAdapter';
3
4
  export * from './CronjobExtensionAdapter';
4
5
  export * from './DataObjectInstanceExtensionAdapter';
@@ -8,15 +8,15 @@ import { Activity } from './ActivityBase';
8
8
  export type BusinessRuleTask = Activity & {
9
9
  readonly bpmnType: BpmnType.businessRuleTask;
10
10
  /**
11
- * The topic to use in conjunction with external ServiceTasks.
11
+ * The serviceId to use in conjunction with an business rule engine.
12
12
  */
13
- topic?: string;
13
+ serviceId?: string;
14
14
  /**
15
- * The payload to use in conjunction with external ServiceTasks.
15
+ * The payload to use in conjunction with an business rule engine.
16
16
  */
17
17
  payload?: string;
18
18
  /**
19
- * If set to 'true', the Service Task will fail, if it is not processed after the first lock ends.
19
+ * If set to 'true', the BusinessRuleTask will fail, if it is not processed after the first lock ends.
20
20
  */
21
21
  isSingleTry?: boolean;
22
22
  decisionRef: string;
@@ -2,7 +2,7 @@ import { BusinessRuleTask } from '../../Model/Activities';
2
2
  import { ProcessModelLike } from '../BaseElementViewModel';
3
3
  import { ActivityViewModel } from './ActivityViewModel';
4
4
  export declare class BusinessRuleTaskViewModel extends ActivityViewModel {
5
- topic?: string;
5
+ serviceId?: string;
6
6
  payload?: string;
7
7
  isSingleTry?: boolean;
8
8
  constructor(businessRuleTask: BusinessRuleTask, processModel: ProcessModelLike);
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BusinessRuleTaskState = void 0;
4
+ /**
5
+ * @swagger
6
+ * components:
7
+ * schemas:
8
+ * BusinessRuleTaskState:
9
+ * description: Describes the state of an BusinessRuleTask.
10
+ * type: string
11
+ * enum:
12
+ * - pending
13
+ * - finished
14
+ * - expired
15
+ */
16
+ var BusinessRuleTaskState;
17
+ (function (BusinessRuleTaskState) {
18
+ BusinessRuleTaskState["pending"] = "pending";
19
+ BusinessRuleTaskState["finished"] = "finished";
20
+ BusinessRuleTaskState["expired"] = "expired";
21
+ })(BusinessRuleTaskState || (exports.BusinessRuleTaskState = BusinessRuleTaskState = {}));
22
+ //# sourceMappingURL=BusinessRuleTask.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BusinessRuleTask.js","sourceRoot":"","sources":["../../../../src/DataModels/BusinessRuleTask/BusinessRuleTask.ts"],"names":[],"mappings":";;;AAkHA;;;;;;;;;;;GAWG;AACH,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;AACrB,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC"}
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BusinessRuleTaskReusableError = exports.BusinessRuleTaskError = void 0;
4
+ /**
5
+ * @swagger
6
+ * components:
7
+ * schemas:
8
+ * BusinessRuleTaskError:
9
+ * description: Describes an error that occured while processing an BusinessRule Task.
10
+ * type: object
11
+ * required:
12
+ * - errorCode
13
+ * properties:
14
+ * errorCode:
15
+ * type: string
16
+ * description: The error code of the error.
17
+ * errorMessage:
18
+ * type: string
19
+ * description: The error message of the error.
20
+ * errorDetails:
21
+ * type: object
22
+ * description: Additional information about the error.
23
+ */
24
+ /**
25
+ * Describes an error that occured while processing an BusinessRule Task.
26
+ */
27
+ class BusinessRuleTaskError {
28
+ errorCode;
29
+ errorMessage;
30
+ errorDetails;
31
+ constructor(errorCode, errorMessage, errorDetails) {
32
+ this.errorCode = errorCode;
33
+ this.errorMessage = errorMessage;
34
+ this.errorDetails = errorDetails;
35
+ }
36
+ }
37
+ exports.BusinessRuleTaskError = BusinessRuleTaskError;
38
+ /**
39
+ * @swagger
40
+ * components:
41
+ * schemas:
42
+ * BusinessRuleTaskReusableError:
43
+ * description: A formatted error object representing an BusinessRuleTask error.
44
+ * type: object
45
+ * required:
46
+ * - code
47
+ * properties:
48
+ * code:
49
+ * description: The error code of the error.
50
+ * oneOf:
51
+ * - type: number
52
+ * - type: string
53
+ * name:
54
+ * description: The name of the error.
55
+ * type: string
56
+ * message:
57
+ * description: The error message of the error.
58
+ * type: string
59
+ * additionalInformation:
60
+ * description: Additional information about the error.
61
+ * type: object
62
+ */
63
+ /**
64
+ * For internal use only - A formatted error object representing an BusinessRuleTask error.
65
+ * Can be used by internal services who don't care if we're dealing with a Service- or BPMN error
66
+ */
67
+ class BusinessRuleTaskReusableError {
68
+ code;
69
+ name;
70
+ message;
71
+ additionalInformation;
72
+ }
73
+ exports.BusinessRuleTaskReusableError = BusinessRuleTaskReusableError;
74
+ //# sourceMappingURL=BusinessRuleTaskErrors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BusinessRuleTaskErrors.js","sourceRoot":"","sources":["../../../../src/DataModels/BusinessRuleTask/BusinessRuleTaskErrors.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH;;GAEG;AACH,MAAa,qBAAqB;IACzB,SAAS,CAAS;IAClB,YAAY,CAAS;IACrB,YAAY,CAAM;IAEzB,YAAY,SAAiB,EAAE,YAAqB,EAAE,YAAkB;QACtE,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;CACF;AAVD,sDAUC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH;;;GAGG;AACH,MAAa,6BAA6B;IACjC,IAAI,CAAkB;IACtB,IAAI,CAAU;IACd,OAAO,CAAU;IACjB,qBAAqB,CAAO;CACpC;AALD,sEAKC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=BusinessRuleTaskRequestPayloads.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BusinessRuleTaskRequestPayloads.js","sourceRoot":"","sources":["../../../../src/DataModels/BusinessRuleTask/BusinessRuleTaskRequestPayloads.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./BusinessRuleTask"), exports);
18
+ __exportStar(require("./BusinessRuleTaskErrors"), exports);
19
+ __exportStar(require("./BusinessRuleTaskRequestPayloads"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/DataModels/BusinessRuleTask/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,2DAAyC;AACzC,oEAAkD"}
@@ -39,7 +39,6 @@ var FlowNodeInstanceSortableColumns;
39
39
  FlowNodeInstanceSortableColumns["processDefinitionId"] = "processDefinitionId";
40
40
  FlowNodeInstanceSortableColumns["processModelId"] = "processModelId";
41
41
  FlowNodeInstanceSortableColumns["embeddedProcessModelId"] = "embeddedProcessModelId";
42
- FlowNodeInstanceSortableColumns["processModelName"] = "processModelName";
43
42
  FlowNodeInstanceSortableColumns["processInstanceId"] = "processInstanceId";
44
43
  FlowNodeInstanceSortableColumns["correlationId"] = "correlationId";
45
44
  FlowNodeInstanceSortableColumns["ownerId"] = "ownerId";
@@ -1 +1 @@
1
- {"version":3,"file":"FlowNodeInstance.js","sourceRoot":"","sources":["../../../../src/DataModels/FlowNodeInstance/FlowNodeInstance.ts"],"names":[],"mappings":";;;AA+KA;;;;;;;;;;;;;;GAcG;AACH,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,gDAAuB,CAAA;IACvB,8CAAqB,CAAA;IACrB,kDAAyB,CAAA;IACzB,wCAAe,CAAA;IACf,8CAAqB,CAAA;AACvB,CAAC,EAPW,qBAAqB,qCAArB,qBAAqB,QAOhC;AAOD,IAAY,+BAoBX;AApBD,WAAY,+BAA+B;IACzC,4EAAyC,CAAA;IACzC,4DAAyB,CAAA;IACzB,gEAA6B,CAAA;IAC7B,gEAA6B,CAAA;IAC7B,gEAA6B,CAAA;IAC7B,0DAAuB,CAAA;IACvB,kDAAe,CAAA;IACf,4FAAyD,CAAA;IACzD,sFAAmD,CAAA;IACnD,8EAA2C,CAAA;IAC3C,oEAAiC,CAAA;IACjC,oFAAiD,CAAA;IACjD,wEAAqC,CAAA;IACrC,0EAAuC,CAAA;IACvC,kEAA+B,CAAA;IAC/B,sDAAmB,CAAA;IACnB,0DAAuB,CAAA;IACvB,4DAAyB,CAAA;IACzB,8FAA2D,CAAA;AAC7D,CAAC,EApBW,+BAA+B,+CAA/B,+BAA+B,QAoB1C"}
1
+ {"version":3,"file":"FlowNodeInstance.js","sourceRoot":"","sources":["../../../../src/DataModels/FlowNodeInstance/FlowNodeInstance.ts"],"names":[],"mappings":";;;AA2KA;;;;;;;;;;;;;;GAcG;AACH,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,gDAAuB,CAAA;IACvB,8CAAqB,CAAA;IACrB,kDAAyB,CAAA;IACzB,wCAAe,CAAA;IACf,8CAAqB,CAAA;AACvB,CAAC,EAPW,qBAAqB,qCAArB,qBAAqB,QAOhC;AAOD,IAAY,+BAmBX;AAnBD,WAAY,+BAA+B;IACzC,4EAAyC,CAAA;IACzC,4DAAyB,CAAA;IACzB,gEAA6B,CAAA;IAC7B,gEAA6B,CAAA;IAC7B,gEAA6B,CAAA;IAC7B,0DAAuB,CAAA;IACvB,kDAAe,CAAA;IACf,4FAAyD,CAAA;IACzD,sFAAmD,CAAA;IACnD,8EAA2C,CAAA;IAC3C,oEAAiC,CAAA;IACjC,oFAAiD,CAAA;IACjD,0EAAuC,CAAA;IACvC,kEAA+B,CAAA;IAC/B,sDAAmB,CAAA;IACnB,0DAAuB,CAAA;IACvB,4DAAyB,CAAA;IACzB,8FAA2D,CAAA;AAC7D,CAAC,EAnBW,+BAA+B,+CAA/B,+BAA+B,QAmB1C"}
@@ -37,6 +37,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.DataModels = void 0;
40
+ const businessRuleTasks = __importStar(require("./BusinessRuleTask"));
40
41
  const correlation = __importStar(require("./Correlation"));
41
42
  const cronjob = __importStar(require("./Cronjob/index"));
42
43
  const dataObject = __importStar(require("./DataObjectInstance"));
@@ -46,6 +47,7 @@ const iam = __importStar(require("./Iam/index"));
46
47
  const processDefinitions = __importStar(require("./ProcessDefinition"));
47
48
  const processInstances = __importStar(require("./ProcessInstance/index"));
48
49
  __exportStar(require("./ApplicationInfo"), exports);
50
+ __exportStar(require("./BusinessRuleTask/index"), exports);
49
51
  __exportStar(require("./Constants"), exports);
50
52
  __exportStar(require("./Correlation"), exports);
51
53
  __exportStar(require("./Cronjob/index"), exports);
@@ -57,6 +59,7 @@ __exportStar(require("./ProcessDefinition"), exports);
57
59
  __exportStar(require("./ProcessInstance/index"), exports);
58
60
  var DataModels;
59
61
  (function (DataModels) {
62
+ DataModels.BusinessRuleTasks = businessRuleTasks;
60
63
  DataModels.Correlation = correlation;
61
64
  DataModels.Cronjob = cronjob;
62
65
  DataModels.DataObjects = dataObject;
@@ -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,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,sEAAwD;AACxD,2DAA6C;AAC7C,yDAA2C;AAC3C,iEAAmD;AACnD,oEAAsD;AACtD,4EAA8D;AAC9D,iDAAmC;AACnC,wEAA0D;AAC1D,0EAA4D;AAE5D,oDAAkC;AAClC,2DAAyC;AACzC,8CAA4B;AAC5B,gDAA8B;AAC9B,kDAAgC;AAChC,uDAAqC;AACrC,uDAAqC;AACrC,2DAAyC;AACzC,8CAA4B;AAC5B,sDAAoC;AACpC,0DAAwC;AAExC,IAAiB,UAAU,CAW1B;AAXD,WAAiB,UAAU;IAEX,4BAAiB,GAAG,iBAAiB,CAAC;IACtC,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,EAXgB,UAAU,0BAAV,UAAU,QAW1B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=BusinessRuleTaskMessages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BusinessRuleTaskMessages.js","sourceRoot":"","sources":["../../../../src/EngineEvents/EventPayloads/BusinessRuleTaskMessages.ts"],"names":[],"mappings":""}
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BaseMessage"), exports);
18
+ __exportStar(require("./BusinessRuleTaskMessages"), exports);
18
19
  __exportStar(require("./CronjobEvent"), exports);
19
20
  __exportStar(require("./CronjobEnabledChangedMessage"), exports);
20
21
  __exportStar(require("./ErrorEndEventReached"), 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,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,6DAA2C;AAC3C,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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=BusinessRuleTaskExtensionAdapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BusinessRuleTaskExtensionAdapter.js","sourceRoot":"","sources":["../../../src/ExtensionAdapter/BusinessRuleTaskExtensionAdapter.ts"],"names":[],"mappings":""}
@@ -15,6 +15,7 @@ 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("./BusinessRuleTaskExtensionAdapter"), exports);
18
19
  __exportStar(require("./CorrelationExtensionAdapter"), exports);
19
20
  __exportStar(require("./CronjobExtensionAdapter"), exports);
20
21
  __exportStar(require("./DataObjectInstanceExtensionAdapter"), exports);
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ExtensionAdapter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD;AAClD,qEAAmD;AACnD,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"}
@@ -29,7 +29,7 @@ function parseBusinessRuleTasks(processData) {
29
29
  function parseBusinessRuleTask(businessRuletasksRaw) {
30
30
  const businessRuleTask = {
31
31
  ...(0, ActivityFactory_1.createActivityInstance)(businessRuletasksRaw, index_1.BpmnType.businessRuleTask),
32
- topic: businessRuletasksRaw[index_1.BpmnTags.CamundaProperty.Topic],
32
+ serviceId: businessRuletasksRaw[index_1.BpmnTags.CamundaProperty.Topic],
33
33
  };
34
34
  businessRuleTask.decisionRef = (0, ExtensionPropertyParser_1.findCamundaExtensionPropertyByName)('decisionRef', businessRuleTask.extensionElements.camundaExtensionProperties)?.value;
35
35
  businessRuleTask.decisionRefBinding = (0, ExtensionPropertyParser_1.findCamundaExtensionPropertyByName)('decisionRefBinding', businessRuleTask.extensionElements.camundaExtensionProperties)?.value;
@@ -1 +1 @@
1
- {"version":3,"file":"BusinessRuleTaskParser.js","sourceRoot":"","sources":["../../../../../../../src/ProcessModel/ProcessModelParser/Parser/FlowNodeParsers/ActivityParsers/BusinessRuleTaskParser.ts"],"names":[],"mappings":";;AAKA,wDAwBC;AA7BD,mDAAoE;AACpE,sDAA+D;AAC/D,uDAA2D;AAC3D,uEAA+E;AAE/E,SAAgB,sBAAsB,CAAC,WAAgB;IACrD,MAAM,oBAAoB,GAAG,IAAA,qCAAuB,EAAC,WAAW,EAAE,gBAAQ,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAEzG,MAAM,WAAW,GAAG,CAAC,CAAC,oBAAoB,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;IACxD,IAAI,WAAW,EAAE,CAAC;QAChB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,GAAG,CAAC,CAAC,mBAAwB,EAAqC,EAAE;QACjH,MAAM,UAAU,GAAG,mBAAmB,CAAC,EAAE,CAAC;QAE1C,IAAI,CAAC;YACH,OAAO,qBAAqB,CAAC,mBAAmB,CAAC,CAAC;QACpD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,KAAK,CAAC,qBAAqB,GAAG;gBAC5B,GAAG,KAAK,CAAC,qBAAqB;gBAC9B,UAAU,EAAE,UAAU;aACvB,CAAC;YAEF,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAED,SAAS,qBAAqB,CAAC,oBAAyB;IACtD,MAAM,gBAAgB,GAAG;QACvB,GAAG,IAAA,wCAAsB,EAAoC,oBAAoB,EAAE,gBAAQ,CAAC,gBAAgB,CAAC;QAC7G,KAAK,EAAE,oBAAoB,CAAC,gBAAQ,CAAC,eAAe,CAAC,KAAK,CAAC;KAC5D,CAAC;IAEF,gBAAgB,CAAC,WAAW,GAAG,IAAA,4DAAkC,EAAC,aAAa,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,EAAE,KAAK,CAAC;IACvJ,gBAAgB,CAAC,kBAAkB,GAAG,IAAA,4DAAkC,EAAC,oBAAoB,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,EAAE,KAAK,CAAC;IACrK,gBAAgB,CAAC,kBAAkB,GAAG,IAAA,4DAAkC,EAAC,oBAAoB,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,EAAE,KAAK,CAAC;IAErK,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,iBAAiB,EAAE,0BAA0B,IAAI,EAAE,CAAC;IAEjG,gBAAgB,CAAC,OAAO,GAAG,IAAA,4DAAkC,EAAC,SAAS,EAAE,mBAAmB,CAAC,EAAE,KAAK,CAAC;IACrG,gBAAgB,CAAC,WAAW,GAAG,IAAA,4DAAkC,EAAC,oBAAoB,EAAE,mBAAmB,CAAC,EAAE,KAAK,KAAK,MAAM,CAAC;IAE/H,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
1
+ {"version":3,"file":"BusinessRuleTaskParser.js","sourceRoot":"","sources":["../../../../../../../src/ProcessModel/ProcessModelParser/Parser/FlowNodeParsers/ActivityParsers/BusinessRuleTaskParser.ts"],"names":[],"mappings":";;AAKA,wDAwBC;AA7BD,mDAAoE;AACpE,sDAA+D;AAC/D,uDAA2D;AAC3D,uEAA+E;AAE/E,SAAgB,sBAAsB,CAAC,WAAgB;IACrD,MAAM,oBAAoB,GAAG,IAAA,qCAAuB,EAAC,WAAW,EAAE,gBAAQ,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAEzG,MAAM,WAAW,GAAG,CAAC,CAAC,oBAAoB,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;IACxD,IAAI,WAAW,EAAE,CAAC;QAChB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,GAAG,CAAC,CAAC,mBAAwB,EAAqC,EAAE;QACjH,MAAM,UAAU,GAAG,mBAAmB,CAAC,EAAE,CAAC;QAE1C,IAAI,CAAC;YACH,OAAO,qBAAqB,CAAC,mBAAmB,CAAC,CAAC;QACpD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,KAAK,CAAC,qBAAqB,GAAG;gBAC5B,GAAG,KAAK,CAAC,qBAAqB;gBAC9B,UAAU,EAAE,UAAU;aACvB,CAAC;YAEF,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAED,SAAS,qBAAqB,CAAC,oBAAyB;IACtD,MAAM,gBAAgB,GAAG;QACvB,GAAG,IAAA,wCAAsB,EAAoC,oBAAoB,EAAE,gBAAQ,CAAC,gBAAgB,CAAC;QAC7G,SAAS,EAAE,oBAAoB,CAAC,gBAAQ,CAAC,eAAe,CAAC,KAAK,CAAC;KAChE,CAAC;IAEF,gBAAgB,CAAC,WAAW,GAAG,IAAA,4DAAkC,EAAC,aAAa,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,EAAE,KAAK,CAAC;IACvJ,gBAAgB,CAAC,kBAAkB,GAAG,IAAA,4DAAkC,EAAC,oBAAoB,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,EAAE,KAAK,CAAC;IACrK,gBAAgB,CAAC,kBAAkB,GAAG,IAAA,4DAAkC,EAAC,oBAAoB,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,EAAE,KAAK,CAAC;IAErK,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,iBAAiB,EAAE,0BAA0B,IAAI,EAAE,CAAC;IAEjG,gBAAgB,CAAC,OAAO,GAAG,IAAA,4DAAkC,EAAC,SAAS,EAAE,mBAAmB,CAAC,EAAE,KAAK,CAAC;IACrG,gBAAgB,CAAC,WAAW,GAAG,IAAA,4DAAkC,EAAC,oBAAoB,EAAE,mBAAmB,CAAC,EAAE,KAAK,KAAK,MAAM,CAAC;IAE/H,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BusinessRuleTaskViewModel = void 0;
4
4
  const ActivityViewModel_1 = require("./ActivityViewModel");
5
5
  class BusinessRuleTaskViewModel extends ActivityViewModel_1.ActivityViewModel {
6
- topic;
6
+ serviceId;
7
7
  payload;
8
8
  isSingleTry;
9
9
  constructor(businessRuleTask, processModel) {
10
10
  super(businessRuleTask, processModel);
11
- this.topic = businessRuleTask.topic;
11
+ this.serviceId = businessRuleTask.serviceId;
12
12
  this.payload = businessRuleTask.payload;
13
13
  this.isSingleTry = businessRuleTask.isSingleTry;
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BusinessRuleTaskViewModel.js","sourceRoot":"","sources":["../../../../../src/ProcessModel/ViewModel/Activities/BusinessRuleTaskViewModel.ts"],"names":[],"mappings":";;;AAEA,2DAAwD;AAExD,MAAa,yBAA0B,SAAQ,qCAAiB;IACvD,KAAK,CAAU;IACf,OAAO,CAAU;IACjB,WAAW,CAAW;IAE7B,YAAY,gBAAkC,EAAE,YAA8B;QAC5E,KAAK,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;QACtC,IAAI,CAAC,KAAK,GAAG,gBAAgB,CAAC,KAAK,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,gBAAgB,CAAC,OAAO,CAAC;QACxC,IAAI,CAAC,WAAW,GAAG,gBAAgB,CAAC,WAAW,CAAC;IAClD,CAAC;CACF;AAXD,8DAWC"}
1
+ {"version":3,"file":"BusinessRuleTaskViewModel.js","sourceRoot":"","sources":["../../../../../src/ProcessModel/ViewModel/Activities/BusinessRuleTaskViewModel.ts"],"names":[],"mappings":";;;AAEA,2DAAwD;AAExD,MAAa,yBAA0B,SAAQ,qCAAiB;IACvD,SAAS,CAAU;IACnB,OAAO,CAAU;IACjB,WAAW,CAAW;IAE7B,YAAY,gBAAkC,EAAE,YAA8B;QAC5E,KAAK,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;QACtC,IAAI,CAAC,SAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,gBAAgB,CAAC,OAAO,CAAC;QACxC,IAAI,CAAC,WAAW,GAAG,gBAAgB,CAAC,WAAW,CAAC;IAClD,CAAC;CACF;AAXD,8DAWC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/processcube_engine_sdk",
3
- "version": "6.1.0-feature-87f566-m3wopid2",
3
+ "version": "6.1.0-feature-a26f43-m3wtmlne",
4
4
  "description": "Software development kit for the Engine.",
5
5
  "main": "dist/commonjs/index.js",
6
6
  "types": "dist/index.d.ts",