@nanobpm/engine-wasm 0.9.0 → 0.9.1

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/README.md CHANGED
@@ -44,19 +44,26 @@ import init, { TestEngine } from "@nanobpm/engine-wasm";
44
44
  await init(); // instantiate the wasm module
45
45
  const engine = new TestEngine();
46
46
 
47
- engine.deploy(bpmnXml); // deploy a BPMN diagram
47
+ engine.deploy(bpmnXml); // deploy a BPMN diagram (or a DMN decision)
48
48
  const handle = engine.createInstance("my-process", "{}");
49
49
  const snap = JSON.parse(engine.snapshot()); // live primary state
50
50
  const trace = JSON.parse(engine.events()); // the event log
51
51
  engine.reset(); // back to a clean engine
52
52
  ```
53
53
 
54
- The lean surface covers primary state and execution: `deploy`, `createInstance`,
54
+ The lean surface covers primary state and execution: `deploy`, `deployDecision`,
55
+ `evaluateDecision`, `createInstance`,
55
56
  `snapshot`, `events`, `replayEvents`, job ops (`activateJobs`, `completeJob`, `failJob`,
56
57
  `updateRetries`, `updateTimeout`, `throwError`), user-task ops (`completeUserTask`,
57
58
  `assignUserTask`, …), messaging/signals, the virtual clock (`advanceTime`,
58
59
  `tickNow`), and `reset`. It links **no** SQLite / read-model code.
59
60
 
61
+ `deploy` accepts **either** a BPMN process **or** a DMN decision resource: a
62
+ document with no BPMN `<process>` is routed to decision deployment (equivalent to
63
+ calling `deployDecision`), so a `businessRuleTask` carrying a
64
+ `zeebe:calledDecision` can resolve its decision. `evaluateDecision(decisionId,
65
+ variablesJson)` evaluates a deployed decision standalone.
66
+
60
67
  ### Optional job leasing and agent history
61
68
 
62
69
  `activateJobs(type, maxJobs, timeoutMs, worker, withLease?)` defaults to nonleasing
@@ -142,11 +142,26 @@ export class TestEngine {
142
142
  */
143
143
  debugStep(): string;
144
144
  /**
145
- * Parse and deploy a BPMN resource. Returns a JSON object
146
- * `{ "processIds": [...], "snapshot": {...} }` on success, or throws a
147
- * JS error carrying the parse/deploy failure message.
145
+ * Parse and deploy a BPMN **or** DMN resource — the one entry point accepts
146
+ * both (issue #1158). A BPMN process resource deploys as before and returns
147
+ * `{ "processIds": [...], "snapshot": {...} }`. A DMN decision resource (no
148
+ * `<process>` element) is routed to decision deployment and returns the same
149
+ * shape as the `deployDecision` method
150
+ * (`{ "decisionRequirementsId": ..., "decisionRequirementsKey": ..., "version": N, "decisions": [{ "decisionId", "decisionName", "decisionKey", "version" }], "snapshot": {...} }`),
151
+ * so a `zeebe:calledDecision` on a business rule task can finally resolve.
152
+ * On failure it throws a JS error carrying the parse/deploy message for the
153
+ * format the document most resembles.
148
154
  */
149
155
  deploy(xml: string): string;
156
+ /**
157
+ * Parse and deploy a DMN decision-requirements resource explicitly. Registers
158
+ * every `<decision>` it contains (by id) so a business rule task's
159
+ * `zeebe:calledDecision` resolves and `evaluateDecision` can run it. Returns a
160
+ * JSON object
161
+ * `{ "decisionRequirementsId": ..., "decisionRequirementsKey": ..., "version": N, "decisions": [{ "decisionId", "decisionName", "decisionKey", "version" }], "snapshot": {...} }`
162
+ * on success, or throws a JS error carrying the parse/deploy failure message.
163
+ */
164
+ deployDecision(xml: string): string;
150
165
  /**
151
166
  * Deploy a single `form-js` `.form` resource (the verbatim form-js JSON
152
167
  * document). Mirrors the native deploy decomposition, which registers a
@@ -175,6 +190,18 @@ export class TestEngine {
175
190
  * on success, or throws a JS error carrying the deploy failure message.
176
191
  */
177
192
  deployResource(resource_name: string, content: string): string;
193
+ /**
194
+ * Evaluate a deployed decision by id against the given variables — the
195
+ * standalone counterpart to a business rule task's in-line evaluation. The
196
+ * decision must already be deployed (via `deploy`/`deployDecision`). Read-only:
197
+ * it evaluates and returns the result without mutating engine state or
198
+ * recording a decision instance. `variables_json` is a JSON object string
199
+ * (`"{}"` / `""` for none). Returns
200
+ * `{ "decisionId": ..., "decisionKey": ..., "output": <value> }` on success,
201
+ * or throws a JS error carrying an "unknown decision" or evaluation-failure
202
+ * message.
203
+ */
204
+ evaluateDecision(decision_id: string, variables_json: string): string;
178
205
  /**
179
206
  * The full ordered event log emitted so far, as a JSON array of
180
207
  * `{ seq, now, type, ...payload }`. Useful for a step-through / trace view.
@@ -317,8 +344,10 @@ export interface InitOutput {
317
344
  readonly testengine_debugResume: (a: number, b: number) => void;
318
345
  readonly testengine_debugStep: (a: number, b: number) => void;
319
346
  readonly testengine_deploy: (a: number, b: number, c: number, d: number) => void;
347
+ readonly testengine_deployDecision: (a: number, b: number, c: number, d: number) => void;
320
348
  readonly testengine_deployForm: (a: number, b: number, c: number, d: number) => void;
321
349
  readonly testengine_deployResource: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
350
+ readonly testengine_evaluateDecision: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
322
351
  readonly testengine_events: (a: number, b: number) => void;
323
352
  readonly testengine_failJob: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
324
353
  readonly testengine_migrate: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
@@ -603,9 +603,15 @@ export class TestEngine {
603
603
  }
604
604
  }
605
605
  /**
606
- * Parse and deploy a BPMN resource. Returns a JSON object
607
- * `{ "processIds": [...], "snapshot": {...} }` on success, or throws a
608
- * JS error carrying the parse/deploy failure message.
606
+ * Parse and deploy a BPMN **or** DMN resource — the one entry point accepts
607
+ * both (issue #1158). A BPMN process resource deploys as before and returns
608
+ * `{ "processIds": [...], "snapshot": {...} }`. A DMN decision resource (no
609
+ * `<process>` element) is routed to decision deployment and returns the same
610
+ * shape as the `deployDecision` method
611
+ * (`{ "decisionRequirementsId": ..., "decisionRequirementsKey": ..., "version": N, "decisions": [{ "decisionId", "decisionName", "decisionKey", "version" }], "snapshot": {...} }`),
612
+ * so a `zeebe:calledDecision` on a business rule task can finally resolve.
613
+ * On failure it throws a JS error carrying the parse/deploy message for the
614
+ * format the document most resembles.
609
615
  * @param {string} xml
610
616
  * @returns {string}
611
617
  */
@@ -635,6 +641,42 @@ export class TestEngine {
635
641
  wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
636
642
  }
637
643
  }
644
+ /**
645
+ * Parse and deploy a DMN decision-requirements resource explicitly. Registers
646
+ * every `<decision>` it contains (by id) so a business rule task's
647
+ * `zeebe:calledDecision` resolves and `evaluateDecision` can run it. Returns a
648
+ * JSON object
649
+ * `{ "decisionRequirementsId": ..., "decisionRequirementsKey": ..., "version": N, "decisions": [{ "decisionId", "decisionName", "decisionKey", "version" }], "snapshot": {...} }`
650
+ * on success, or throws a JS error carrying the parse/deploy failure message.
651
+ * @param {string} xml
652
+ * @returns {string}
653
+ */
654
+ deployDecision(xml) {
655
+ let deferred3_0;
656
+ let deferred3_1;
657
+ try {
658
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
659
+ const ptr0 = passStringToWasm0(xml, wasm.__wbindgen_export, wasm.__wbindgen_export2);
660
+ const len0 = WASM_VECTOR_LEN;
661
+ wasm.testengine_deployDecision(retptr, this.__wbg_ptr, ptr0, len0);
662
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
663
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
664
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
665
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
666
+ var ptr2 = r0;
667
+ var len2 = r1;
668
+ if (r3) {
669
+ ptr2 = 0; len2 = 0;
670
+ throw takeObject(r2);
671
+ }
672
+ deferred3_0 = ptr2;
673
+ deferred3_1 = len2;
674
+ return getStringFromWasm0(ptr2, len2);
675
+ } finally {
676
+ wasm.__wbindgen_add_to_stack_pointer(16);
677
+ wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
678
+ }
679
+ }
638
680
  /**
639
681
  * Deploy a single `form-js` `.form` resource (the verbatim form-js JSON
640
682
  * document). Mirrors the native deploy decomposition, which registers a
@@ -720,6 +762,48 @@ export class TestEngine {
720
762
  wasm.__wbindgen_export3(deferred4_0, deferred4_1, 1);
721
763
  }
722
764
  }
765
+ /**
766
+ * Evaluate a deployed decision by id against the given variables — the
767
+ * standalone counterpart to a business rule task's in-line evaluation. The
768
+ * decision must already be deployed (via `deploy`/`deployDecision`). Read-only:
769
+ * it evaluates and returns the result without mutating engine state or
770
+ * recording a decision instance. `variables_json` is a JSON object string
771
+ * (`"{}"` / `""` for none). Returns
772
+ * `{ "decisionId": ..., "decisionKey": ..., "output": <value> }` on success,
773
+ * or throws a JS error carrying an "unknown decision" or evaluation-failure
774
+ * message.
775
+ * @param {string} decision_id
776
+ * @param {string} variables_json
777
+ * @returns {string}
778
+ */
779
+ evaluateDecision(decision_id, variables_json) {
780
+ let deferred4_0;
781
+ let deferred4_1;
782
+ try {
783
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
784
+ const ptr0 = passStringToWasm0(decision_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
785
+ const len0 = WASM_VECTOR_LEN;
786
+ const ptr1 = passStringToWasm0(variables_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
787
+ const len1 = WASM_VECTOR_LEN;
788
+ wasm.testengine_evaluateDecision(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
789
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
790
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
791
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
792
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
793
+ var ptr3 = r0;
794
+ var len3 = r1;
795
+ if (r3) {
796
+ ptr3 = 0; len3 = 0;
797
+ throw takeObject(r2);
798
+ }
799
+ deferred4_0 = ptr3;
800
+ deferred4_1 = len3;
801
+ return getStringFromWasm0(ptr3, len3);
802
+ } finally {
803
+ wasm.__wbindgen_add_to_stack_pointer(16);
804
+ wasm.__wbindgen_export3(deferred4_0, deferred4_1, 1);
805
+ }
806
+ }
723
807
  /**
724
808
  * The full ordered event log emitted so far, as a JSON array of
725
809
  * `{ seq, now, type, ...payload }`. Useful for a step-through / trace view.
Binary file
@@ -20,8 +20,10 @@ export const testengine_debugIsPaused: (a: number) => number;
20
20
  export const testengine_debugResume: (a: number, b: number) => void;
21
21
  export const testengine_debugStep: (a: number, b: number) => void;
22
22
  export const testengine_deploy: (a: number, b: number, c: number, d: number) => void;
23
+ export const testengine_deployDecision: (a: number, b: number, c: number, d: number) => void;
23
24
  export const testengine_deployForm: (a: number, b: number, c: number, d: number) => void;
24
25
  export const testengine_deployResource: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
26
+ export const testengine_evaluateDecision: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
25
27
  export const testengine_events: (a: number, b: number) => void;
26
28
  export const testengine_failJob: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
27
29
  export const testengine_migrate: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanobpm/engine-wasm",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "The nanobpmn engine (engine-core) compiled to WebAssembly for in-browser BPMN execution: deploy a diagram, start instances, activate/complete jobs, and read live snapshots/traces. Published as two subpath entrypoints — a lean baseline engine (default) and a read-model engine (the gateway's C8-style REST read surface). The substrate for the Bojtos demo framework (ADR 0043) and the console test-run panel.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -142,11 +142,26 @@ export class TestEngine {
142
142
  */
143
143
  debugStep(): string;
144
144
  /**
145
- * Parse and deploy a BPMN resource. Returns a JSON object
146
- * `{ "processIds": [...], "snapshot": {...} }` on success, or throws a
147
- * JS error carrying the parse/deploy failure message.
145
+ * Parse and deploy a BPMN **or** DMN resource — the one entry point accepts
146
+ * both (issue #1158). A BPMN process resource deploys as before and returns
147
+ * `{ "processIds": [...], "snapshot": {...} }`. A DMN decision resource (no
148
+ * `<process>` element) is routed to decision deployment and returns the same
149
+ * shape as the `deployDecision` method
150
+ * (`{ "decisionRequirementsId": ..., "decisionRequirementsKey": ..., "version": N, "decisions": [{ "decisionId", "decisionName", "decisionKey", "version" }], "snapshot": {...} }`),
151
+ * so a `zeebe:calledDecision` on a business rule task can finally resolve.
152
+ * On failure it throws a JS error carrying the parse/deploy message for the
153
+ * format the document most resembles.
148
154
  */
149
155
  deploy(xml: string): string;
156
+ /**
157
+ * Parse and deploy a DMN decision-requirements resource explicitly. Registers
158
+ * every `<decision>` it contains (by id) so a business rule task's
159
+ * `zeebe:calledDecision` resolves and `evaluateDecision` can run it. Returns a
160
+ * JSON object
161
+ * `{ "decisionRequirementsId": ..., "decisionRequirementsKey": ..., "version": N, "decisions": [{ "decisionId", "decisionName", "decisionKey", "version" }], "snapshot": {...} }`
162
+ * on success, or throws a JS error carrying the parse/deploy failure message.
163
+ */
164
+ deployDecision(xml: string): string;
150
165
  /**
151
166
  * Deploy a single `form-js` `.form` resource (the verbatim form-js JSON
152
167
  * document). Mirrors the native deploy decomposition, which registers a
@@ -175,6 +190,18 @@ export class TestEngine {
175
190
  * on success, or throws a JS error carrying the deploy failure message.
176
191
  */
177
192
  deployResource(resource_name: string, content: string): string;
193
+ /**
194
+ * Evaluate a deployed decision by id against the given variables — the
195
+ * standalone counterpart to a business rule task's in-line evaluation. The
196
+ * decision must already be deployed (via `deploy`/`deployDecision`). Read-only:
197
+ * it evaluates and returns the result without mutating engine state or
198
+ * recording a decision instance. `variables_json` is a JSON object string
199
+ * (`"{}"` / `""` for none). Returns
200
+ * `{ "decisionId": ..., "decisionKey": ..., "output": <value> }` on success,
201
+ * or throws a JS error carrying an "unknown decision" or evaluation-failure
202
+ * message.
203
+ */
204
+ evaluateDecision(decision_id: string, variables_json: string): string;
178
205
  /**
179
206
  * The full ordered event log emitted so far, as a JSON array of
180
207
  * `{ seq, now, type, ...payload }`. Useful for a step-through / trace view.
@@ -376,8 +403,10 @@ export interface InitOutput {
376
403
  readonly testengine_debugResume: (a: number, b: number) => void;
377
404
  readonly testengine_debugStep: (a: number, b: number) => void;
378
405
  readonly testengine_deploy: (a: number, b: number, c: number, d: number) => void;
406
+ readonly testengine_deployDecision: (a: number, b: number, c: number, d: number) => void;
379
407
  readonly testengine_deployForm: (a: number, b: number, c: number, d: number) => void;
380
408
  readonly testengine_deployResource: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
409
+ readonly testengine_evaluateDecision: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
381
410
  readonly testengine_events: (a: number, b: number) => void;
382
411
  readonly testengine_failJob: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
383
412
  readonly testengine_getFormByKey: (a: number, b: number, c: number, d: number) => void;
@@ -603,9 +603,15 @@ export class TestEngine {
603
603
  }
604
604
  }
605
605
  /**
606
- * Parse and deploy a BPMN resource. Returns a JSON object
607
- * `{ "processIds": [...], "snapshot": {...} }` on success, or throws a
608
- * JS error carrying the parse/deploy failure message.
606
+ * Parse and deploy a BPMN **or** DMN resource — the one entry point accepts
607
+ * both (issue #1158). A BPMN process resource deploys as before and returns
608
+ * `{ "processIds": [...], "snapshot": {...} }`. A DMN decision resource (no
609
+ * `<process>` element) is routed to decision deployment and returns the same
610
+ * shape as the `deployDecision` method
611
+ * (`{ "decisionRequirementsId": ..., "decisionRequirementsKey": ..., "version": N, "decisions": [{ "decisionId", "decisionName", "decisionKey", "version" }], "snapshot": {...} }`),
612
+ * so a `zeebe:calledDecision` on a business rule task can finally resolve.
613
+ * On failure it throws a JS error carrying the parse/deploy message for the
614
+ * format the document most resembles.
609
615
  * @param {string} xml
610
616
  * @returns {string}
611
617
  */
@@ -635,6 +641,42 @@ export class TestEngine {
635
641
  wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
636
642
  }
637
643
  }
644
+ /**
645
+ * Parse and deploy a DMN decision-requirements resource explicitly. Registers
646
+ * every `<decision>` it contains (by id) so a business rule task's
647
+ * `zeebe:calledDecision` resolves and `evaluateDecision` can run it. Returns a
648
+ * JSON object
649
+ * `{ "decisionRequirementsId": ..., "decisionRequirementsKey": ..., "version": N, "decisions": [{ "decisionId", "decisionName", "decisionKey", "version" }], "snapshot": {...} }`
650
+ * on success, or throws a JS error carrying the parse/deploy failure message.
651
+ * @param {string} xml
652
+ * @returns {string}
653
+ */
654
+ deployDecision(xml) {
655
+ let deferred3_0;
656
+ let deferred3_1;
657
+ try {
658
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
659
+ const ptr0 = passStringToWasm0(xml, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
660
+ const len0 = WASM_VECTOR_LEN;
661
+ wasm.testengine_deployDecision(retptr, this.__wbg_ptr, ptr0, len0);
662
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
663
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
664
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
665
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
666
+ var ptr2 = r0;
667
+ var len2 = r1;
668
+ if (r3) {
669
+ ptr2 = 0; len2 = 0;
670
+ throw takeObject(r2);
671
+ }
672
+ deferred3_0 = ptr2;
673
+ deferred3_1 = len2;
674
+ return getStringFromWasm0(ptr2, len2);
675
+ } finally {
676
+ wasm.__wbindgen_add_to_stack_pointer(16);
677
+ wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
678
+ }
679
+ }
638
680
  /**
639
681
  * Deploy a single `form-js` `.form` resource (the verbatim form-js JSON
640
682
  * document). Mirrors the native deploy decomposition, which registers a
@@ -720,6 +762,48 @@ export class TestEngine {
720
762
  wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
721
763
  }
722
764
  }
765
+ /**
766
+ * Evaluate a deployed decision by id against the given variables — the
767
+ * standalone counterpart to a business rule task's in-line evaluation. The
768
+ * decision must already be deployed (via `deploy`/`deployDecision`). Read-only:
769
+ * it evaluates and returns the result without mutating engine state or
770
+ * recording a decision instance. `variables_json` is a JSON object string
771
+ * (`"{}"` / `""` for none). Returns
772
+ * `{ "decisionId": ..., "decisionKey": ..., "output": <value> }` on success,
773
+ * or throws a JS error carrying an "unknown decision" or evaluation-failure
774
+ * message.
775
+ * @param {string} decision_id
776
+ * @param {string} variables_json
777
+ * @returns {string}
778
+ */
779
+ evaluateDecision(decision_id, variables_json) {
780
+ let deferred4_0;
781
+ let deferred4_1;
782
+ try {
783
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
784
+ const ptr0 = passStringToWasm0(decision_id, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
785
+ const len0 = WASM_VECTOR_LEN;
786
+ const ptr1 = passStringToWasm0(variables_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
787
+ const len1 = WASM_VECTOR_LEN;
788
+ wasm.testengine_evaluateDecision(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
789
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
790
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
791
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
792
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
793
+ var ptr3 = r0;
794
+ var len3 = r1;
795
+ if (r3) {
796
+ ptr3 = 0; len3 = 0;
797
+ throw takeObject(r2);
798
+ }
799
+ deferred4_0 = ptr3;
800
+ deferred4_1 = len3;
801
+ return getStringFromWasm0(ptr3, len3);
802
+ } finally {
803
+ wasm.__wbindgen_add_to_stack_pointer(16);
804
+ wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
805
+ }
806
+ }
723
807
  /**
724
808
  * The full ordered event log emitted so far, as a JSON array of
725
809
  * `{ seq, now, type, ...payload }`. Useful for a step-through / trace view.
Binary file
@@ -20,8 +20,10 @@ export const testengine_debugIsPaused: (a: number) => number;
20
20
  export const testengine_debugResume: (a: number, b: number) => void;
21
21
  export const testengine_debugStep: (a: number, b: number) => void;
22
22
  export const testengine_deploy: (a: number, b: number, c: number, d: number) => void;
23
+ export const testengine_deployDecision: (a: number, b: number, c: number, d: number) => void;
23
24
  export const testengine_deployForm: (a: number, b: number, c: number, d: number) => void;
24
25
  export const testengine_deployResource: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
26
+ export const testengine_evaluateDecision: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
25
27
  export const testengine_events: (a: number, b: number) => void;
26
28
  export const testengine_failJob: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
27
29
  export const testengine_getFormByKey: (a: number, b: number, c: number, d: number) => void;
@@ -8525,6 +8525,11 @@ export type ProcessInstanceResult = {
8525
8525
  * The business id associated with this process instance.
8526
8526
  */
8527
8527
  businessId: BusinessId | null;
8528
+ /**
8529
+ * The date-time at which this process instance most recently entered the SUSPENDED state, or null when the instance is not currently suspended. Always present.
8530
+ *
8531
+ */
8532
+ suspendedDate: string | null;
8528
8533
  };
8529
8534
 
8530
8535
  /**
@@ -8606,7 +8611,7 @@ export type ProcessInstanceSequenceFlowsQueryResult = {
8606
8611
  /**
8607
8612
  * Process instance states
8608
8613
  */
8609
- export type ProcessInstanceStateEnum = 'ACTIVE' | 'COMPLETED' | 'TERMINATED';
8614
+ export type ProcessInstanceStateEnum = 'ACTIVE' | 'COMPLETED' | 'TERMINATED' | 'SUSPENDED';
8610
8615
 
8611
8616
  /**
8612
8617
  * ProcessInstanceStateEnum property with full advanced search capabilities.
@@ -8699,10 +8704,14 @@ export type _1ProcessInstances1ProcessInstanceKey1Migration = unknown;
8699
8704
 
8700
8705
  export type _1ProcessInstances1ProcessInstanceKey1Modification = unknown;
8701
8706
 
8707
+ export type _1ProcessInstances1ProcessInstanceKey1Resumption = unknown;
8708
+
8702
8709
  export type _1ProcessInstances1ProcessInstanceKey1SequenceFlows = unknown;
8703
8710
 
8704
8711
  export type _1ProcessInstances1ProcessInstanceKey1Statistics1ElementInstances = unknown;
8705
8712
 
8713
+ export type _1ProcessInstances1ProcessInstanceKey1Suspension = unknown;
8714
+
8706
8715
  export type RoleClientResult = {
8707
8716
  /**
8708
8717
  * The ID of the client.
@@ -15635,6 +15644,49 @@ export type ModifyProcessInstanceResponses = {
15635
15644
 
15636
15645
  export type ModifyProcessInstanceResponse = ModifyProcessInstanceResponses[keyof ModifyProcessInstanceResponses];
15637
15646
 
15647
+ export type ResumeProcessInstanceData = {
15648
+ body?: never;
15649
+ path: {
15650
+ /**
15651
+ * The key of the process instance to resume.
15652
+ */
15653
+ processInstanceKey: ProcessInstanceKey;
15654
+ };
15655
+ query?: never;
15656
+ url: '/process-instances/{processInstanceKey}/resumption';
15657
+ };
15658
+
15659
+ export type ResumeProcessInstanceErrors = {
15660
+ /**
15661
+ * The provided data is not valid.
15662
+ */
15663
+ 400: ProblemDetail;
15664
+ /**
15665
+ * The process instance is not found.
15666
+ */
15667
+ 404: ProblemDetail;
15668
+ /**
15669
+ * An internal error occurred while processing the request.
15670
+ */
15671
+ 500: ProblemDetail;
15672
+ /**
15673
+ * The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server's compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains `RESOURCE_EXHAUSTED`. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: https://docs.camunda.io/docs/components/zeebe/technical-concepts/internal-processing/#handling-backpressure .
15674
+ *
15675
+ */
15676
+ 503: ProblemDetail;
15677
+ };
15678
+
15679
+ export type ResumeProcessInstanceError = ResumeProcessInstanceErrors[keyof ResumeProcessInstanceErrors];
15680
+
15681
+ export type ResumeProcessInstanceResponses = {
15682
+ /**
15683
+ * The process instance is resumed.
15684
+ */
15685
+ 204: void;
15686
+ };
15687
+
15688
+ export type ResumeProcessInstanceResponse = ResumeProcessInstanceResponses[keyof ResumeProcessInstanceResponses];
15689
+
15638
15690
  export type GetProcessInstanceSequenceFlowsData = {
15639
15691
  body?: never;
15640
15692
  path: {
@@ -15719,6 +15771,49 @@ export type GetProcessInstanceStatisticsResponses = {
15719
15771
 
15720
15772
  export type GetProcessInstanceStatisticsResponse = GetProcessInstanceStatisticsResponses[keyof GetProcessInstanceStatisticsResponses];
15721
15773
 
15774
+ export type SuspendProcessInstanceData = {
15775
+ body?: never;
15776
+ path: {
15777
+ /**
15778
+ * The key of the process instance to suspend.
15779
+ */
15780
+ processInstanceKey: ProcessInstanceKey;
15781
+ };
15782
+ query?: never;
15783
+ url: '/process-instances/{processInstanceKey}/suspension';
15784
+ };
15785
+
15786
+ export type SuspendProcessInstanceErrors = {
15787
+ /**
15788
+ * The provided data is not valid.
15789
+ */
15790
+ 400: ProblemDetail;
15791
+ /**
15792
+ * The process instance is not found.
15793
+ */
15794
+ 404: ProblemDetail;
15795
+ /**
15796
+ * An internal error occurred while processing the request.
15797
+ */
15798
+ 500: ProblemDetail;
15799
+ /**
15800
+ * The service is currently unavailable. This may happen only on some requests where the system creates backpressure to prevent the server's compute resources from being exhausted, avoiding more severe failures. In this case, the title of the error object contains `RESOURCE_EXHAUSTED`. Clients are recommended to eventually retry those requests after a backoff period. You can learn more about the backpressure mechanism here: https://docs.camunda.io/docs/components/zeebe/technical-concepts/internal-processing/#handling-backpressure .
15801
+ *
15802
+ */
15803
+ 503: ProblemDetail;
15804
+ };
15805
+
15806
+ export type SuspendProcessInstanceError = SuspendProcessInstanceErrors[keyof SuspendProcessInstanceErrors];
15807
+
15808
+ export type SuspendProcessInstanceResponses = {
15809
+ /**
15810
+ * The process instance is suspended.
15811
+ */
15812
+ 204: void;
15813
+ };
15814
+
15815
+ export type SuspendProcessInstanceResponse = SuspendProcessInstanceResponses[keyof SuspendProcessInstanceResponses];
15816
+
15722
15817
  export type SearchResourcesData = {
15723
15818
  body?: ResourceSearchQuery;
15724
15819
  path?: never;