@5minds/processcube_engine_sdk 7.0.0 → 7.1.0-feature-aad227-marxjue1

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.
@@ -1,4 +1,18 @@
1
1
  import { EndEventViewModel, FlowNodeViewModel, Model, StartEventViewModel } from '../ProcessModel/index';
2
+ /**
3
+ * Determines what should happen with Cyclic Timers contained within a Process Model, after the Model is deployed to the Engine.
4
+ *
5
+ * @param Overwrite Default behaviour - Cyclic timers are enabled according to what is defined in the BPMN
6
+ * @param Disabled All cyclic timers are disabled
7
+ * @param Keep Already deployed cyclic timers are kept as they are and new cyclic timers are added as defined in the BPMN
8
+ * @param DisableNew Already deployed cyclic timers are kept as they are and new cyclic timers are disabled
9
+ */
10
+ export declare enum CyclicTimersDeploymentMode {
11
+ Overwrite = "Overwrite",
12
+ Keep = "Keep",
13
+ Disable = "Disable",
14
+ DisableNew = "DisableNew"
15
+ }
2
16
  /**
3
17
  * @swagger
4
18
  * components:
@@ -173,8 +187,12 @@ export declare type ProcessModelList = {
173
187
  * overwriteExisting:
174
188
  * description: A flag indicating whether existing process definitions should be overwritten.
175
189
  * type: boolean
190
+ * cyclicTimers:
191
+ * description: Decides on how to handle Cyclic Timers contained within the diagram.
192
+ * type: CyclicTimersDeploymentMode
176
193
  */
177
194
  export declare type PersistProcessDefinitionsPayload = {
178
195
  xml: string | Array<string>;
179
196
  overwriteExisting?: boolean;
197
+ cyclicTimers?: CyclicTimersDeploymentMode;
180
198
  };
@@ -1,4 +1,4 @@
1
- import { DataModels, Identity } from '../index';
1
+ import { CyclicTimersDeploymentMode, DataModels, Identity } from '../index';
2
2
  type ProcessStartOptions<TPayload extends object> = DataModels.ProcessInstances.ProcessStartOptions<TPayload>;
3
3
  type ProcessStartResponse = DataModels.ProcessInstances.ProcessStartResponse;
4
4
  export interface IProcessDefinitionExtensionAdapter {
@@ -23,6 +23,7 @@ export interface IProcessDefinitionExtensionAdapter {
23
23
  deployFiles(filePaths: string | Array<string>, options?: {
24
24
  overwriteExisting?: boolean;
25
25
  identity?: Identity;
26
+ cyclicTimers?: CyclicTimersDeploymentMode;
26
27
  }): Promise<void>;
27
28
  startProcessInstance<TPayload extends object>(options: ProcessStartOptions<TPayload>, identity?: Identity): Promise<ProcessStartResponse>;
28
29
  startProcessInstanceAndAwaitEndEvent<TPayload extends object>(options: ProcessStartOptions<TPayload>, identity?: Identity): Promise<ProcessStartResponse>;
@@ -1,3 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CyclicTimersDeploymentMode = void 0;
4
+ /**
5
+ * Determines what should happen with Cyclic Timers contained within a Process Model, after the Model is deployed to the Engine.
6
+ *
7
+ * @param Overwrite Default behaviour - Cyclic timers are enabled according to what is defined in the BPMN
8
+ * @param Disabled All cyclic timers are disabled
9
+ * @param Keep Already deployed cyclic timers are kept as they are and new cyclic timers are added as defined in the BPMN
10
+ * @param DisableNew Already deployed cyclic timers are kept as they are and new cyclic timers are disabled
11
+ */
12
+ var CyclicTimersDeploymentMode;
13
+ (function (CyclicTimersDeploymentMode) {
14
+ CyclicTimersDeploymentMode["Overwrite"] = "Overwrite";
15
+ CyclicTimersDeploymentMode["Keep"] = "Keep";
16
+ CyclicTimersDeploymentMode["Disable"] = "Disable";
17
+ CyclicTimersDeploymentMode["DisableNew"] = "DisableNew";
18
+ })(CyclicTimersDeploymentMode || (exports.CyclicTimersDeploymentMode = CyclicTimersDeploymentMode = {}));
3
19
  //# sourceMappingURL=ProcessDefinition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProcessDefinition.js","sourceRoot":"","sources":["../../../src/DataModels/ProcessDefinition.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"ProcessDefinition.js","sourceRoot":"","sources":["../../../src/DataModels/ProcessDefinition.ts"],"names":[],"mappings":";;;AAEA;;;;;;;GAOG;AACH,IAAY,0BAKX;AALD,WAAY,0BAA0B;IACpC,qDAAuB,CAAA;IACvB,2CAAa,CAAA;IACb,iDAAmB,CAAA;IACnB,uDAAyB,CAAA;AAC3B,CAAC,EALW,0BAA0B,0CAA1B,0BAA0B,QAKrC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/processcube_engine_sdk",
3
- "version": "7.0.0",
3
+ "version": "7.1.0-feature-aad227-marxjue1",
4
4
  "description": "Software development kit for the Engine.",
5
5
  "main": "dist/commonjs/index.js",
6
6
  "types": "dist/index.d.ts",