@nanobpm/urban 0.90.2 → 0.92.0
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/runtime/core/host.d.ts +17 -13
- package/dist/runtime/core/host.js +7 -5
- package/dist/runtime/core/modules/runtime.gen.js +1 -1
- package/dist/runtime/engine/nanosdk.js +4 -3
- package/package.json +1 -1
- package/src/runtime/browser/runtime.browser.js +9 -1
- package/src/runtime/browser/runtime.engineform.test.ts +100 -0
- package/src/runtime/core/host.ts +18 -14
- package/src/runtime/core/modules/runtime.gen.ts +1 -1
- package/src/runtime/engine/nanosdk.test.ts +58 -10
- package/src/runtime/engine/nanosdk.ts +4 -3
|
@@ -314,16 +314,20 @@ export interface ElementInstanceSummary {
|
|
|
314
314
|
* {@link ElementInstanceWaitStateFilter} whose `waitStateType` falls outside that floor is
|
|
315
315
|
* rejected (the gateway answers HTTP 422); {@link assertDeployedWaitStateType} enforces the
|
|
316
316
|
* same floor client-side so the divergence surfaces as a clear error offline, in tests, and
|
|
317
|
-
* against a live engine alike.
|
|
317
|
+
* against a live engine alike. The floor now covers `JOB | MESSAGE | USER_TASK`
|
|
318
|
+
* (Magikcraft/nano-bpm#1042 shipped `USER_TASK` parks); `TIMER`/`SIGNAL`/`CONDITION` remain
|
|
319
|
+
* the follow-on. Ref: Magikcraft/nano-bpm#1042.
|
|
318
320
|
*/
|
|
319
321
|
export type WaitStateType = "JOB" | "MESSAGE" | "USER_TASK" | "TIMER" | "SIGNAL" | "CONDITION";
|
|
320
322
|
/**
|
|
321
323
|
* The `waitStateType` values the *currently deployed* nanobpmn gateway's wait-state read
|
|
322
324
|
* model actually implements — the **deployed floor**, a strict subset of the canonical
|
|
323
|
-
* {@link WaitStateType} union. The gateway's read model
|
|
324
|
-
* taken 2026-06-09
|
|
325
|
-
*
|
|
326
|
-
* with
|
|
325
|
+
* {@link WaitStateType} union. The gateway's read model started as a snapshot of the Zeebe
|
|
326
|
+
* contract taken 2026-06-09 that recognized only `JOB | MESSAGE`; Magikcraft/nano-bpm#1042
|
|
327
|
+
* has since shipped `USER_TASK` parks (added on user-task CREATED, removed on
|
|
328
|
+
* COMPLETED/CANCELED, with the park identity under `details.taskKey`), moving the floor up to
|
|
329
|
+
* `JOB | MESSAGE | USER_TASK`. `TIMER`/`SIGNAL`/`CONDITION` are still rejected with HTTP 422
|
|
330
|
+
* (the 8.10 follow-on tracked in Magikcraft/nano-bpm#1042).
|
|
327
331
|
*
|
|
328
332
|
* This constant is the **single source of truth** for that floor: the SDK-backed and
|
|
329
333
|
* WASM-backed {@link EngineClient} adapters both gate through {@link assertDeployedWaitStateType},
|
|
@@ -645,14 +649,14 @@ export interface EngineClient {
|
|
|
645
649
|
* (see {@link ElementInstanceWaitState}), so a consumer can read the job/message parks a
|
|
646
650
|
* {@link searchUserTasks} cannot surface.
|
|
647
651
|
*
|
|
648
|
-
* **Deployed floor.** The currently deployed nanobpmn gateway implements
|
|
649
|
-
* `JOB | MESSAGE` ({@link DEPLOYED_WAIT_STATE_TYPES})
|
|
650
|
-
* {@link searchUserTasks}
|
|
651
|
-
* with {@link UnsupportedWaitStateTypeError} (the
|
|
652
|
-
* unfiltered search returns only in-floor parks. The
|
|
653
|
-
* forward-looking (richer engines may serve more), but this adapter
|
|
654
|
-
* floor so a query cannot pass in emulation while a real engine rejects it.
|
|
655
|
-
* Magikcraft/nano-bpm#1042.
|
|
652
|
+
* **Deployed floor.** The currently deployed nanobpmn gateway implements
|
|
653
|
+
* `JOB | MESSAGE | USER_TASK` ({@link DEPLOYED_WAIT_STATE_TYPES}); a `USER_TASK` park can be
|
|
654
|
+
* read here (or through {@link searchUserTasks}). A `waitStateType` filter outside the floor
|
|
655
|
+
* (`TIMER`/`SIGNAL`/`CONDITION`) is rejected with {@link UnsupportedWaitStateTypeError} (the
|
|
656
|
+
* live gateway answers HTTP 422); an unfiltered search returns only in-floor parks. The
|
|
657
|
+
* `waitStateType` union is forward-looking (richer engines may serve more), but this adapter
|
|
658
|
+
* contract pins the floor so a query cannot pass in emulation while a real engine rejects it.
|
|
659
|
+
* Ref: Magikcraft/nano-bpm#1042.
|
|
656
660
|
*/
|
|
657
661
|
searchElementInstanceWaitStates(filter?: ElementInstanceWaitStateFilter): Promise<ElementInstanceWaitState[]>;
|
|
658
662
|
/**
|
|
@@ -45,10 +45,12 @@ export function presentFormIdentifier(value) {
|
|
|
45
45
|
/**
|
|
46
46
|
* The `waitStateType` values the *currently deployed* nanobpmn gateway's wait-state read
|
|
47
47
|
* model actually implements — the **deployed floor**, a strict subset of the canonical
|
|
48
|
-
* {@link WaitStateType} union. The gateway's read model
|
|
49
|
-
* taken 2026-06-09
|
|
50
|
-
*
|
|
51
|
-
* with
|
|
48
|
+
* {@link WaitStateType} union. The gateway's read model started as a snapshot of the Zeebe
|
|
49
|
+
* contract taken 2026-06-09 that recognized only `JOB | MESSAGE`; Magikcraft/nano-bpm#1042
|
|
50
|
+
* has since shipped `USER_TASK` parks (added on user-task CREATED, removed on
|
|
51
|
+
* COMPLETED/CANCELED, with the park identity under `details.taskKey`), moving the floor up to
|
|
52
|
+
* `JOB | MESSAGE | USER_TASK`. `TIMER`/`SIGNAL`/`CONDITION` are still rejected with HTTP 422
|
|
53
|
+
* (the 8.10 follow-on tracked in Magikcraft/nano-bpm#1042).
|
|
52
54
|
*
|
|
53
55
|
* This constant is the **single source of truth** for that floor: the SDK-backed and
|
|
54
56
|
* WASM-backed {@link EngineClient} adapters both gate through {@link assertDeployedWaitStateType},
|
|
@@ -57,7 +59,7 @@ export function presentFormIdentifier(value) {
|
|
|
57
59
|
* backed by the real gateway) only once the engine actually serves the richer type — the
|
|
58
60
|
* tracking gap is Magikcraft/nano-bpm#1042.
|
|
59
61
|
*/
|
|
60
|
-
export const DEPLOYED_WAIT_STATE_TYPES = ["JOB", "MESSAGE"];
|
|
62
|
+
export const DEPLOYED_WAIT_STATE_TYPES = ["JOB", "MESSAGE", "USER_TASK"];
|
|
61
63
|
/**
|
|
62
64
|
* Thrown when a wait-state search is asked to filter on a {@link WaitStateType} the deployed
|
|
63
65
|
* gateway's read model does not implement (outside {@link DEPLOYED_WAIT_STATE_TYPES}). It
|