@nanobpm/engine-wasm 0.10.0 → 0.11.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.
@@ -192,14 +192,16 @@ export class TestEngine {
192
192
  deployResource(resource_name: string, content: string): string;
193
193
  /**
194
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.
195
+ * standalone counterpart to a business rule task's in-line evaluation (the
196
+ * engine's `EvaluateDecision` command, exactly as the gateway runs it). The
197
+ * decision must already be deployed (via `deploy`/`deployDecision`). The
198
+ * evaluation is recorded as a decision instance with its own minted
199
+ * `decisionEvaluationKey` and no process instance — a failed one too
200
+ * (Zeebe parity, #1292). `variables_json` is a JSON object string (`"{}"` /
201
+ * `""` for none). Returns
202
+ * `{ "decisionId": ..., "decisionKey": ..., "decisionEvaluationKey": ..., "output": <value> }`
203
+ * on success, or throws a JS error carrying an "unknown decision" or
204
+ * evaluation-failure message.
203
205
  */
204
206
  evaluateDecision(decision_id: string, variables_json: string): string;
205
207
  /**
@@ -764,14 +764,16 @@ export class TestEngine {
764
764
  }
765
765
  /**
766
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.
767
+ * standalone counterpart to a business rule task's in-line evaluation (the
768
+ * engine's `EvaluateDecision` command, exactly as the gateway runs it). The
769
+ * decision must already be deployed (via `deploy`/`deployDecision`). The
770
+ * evaluation is recorded as a decision instance with its own minted
771
+ * `decisionEvaluationKey` and no process instance — a failed one too
772
+ * (Zeebe parity, #1292). `variables_json` is a JSON object string (`"{}"` /
773
+ * `""` for none). Returns
774
+ * `{ "decisionId": ..., "decisionKey": ..., "decisionEvaluationKey": ..., "output": <value> }`
775
+ * on success, or throws a JS error carrying an "unknown decision" or
776
+ * evaluation-failure message.
775
777
  * @param {string} decision_id
776
778
  * @param {string} variables_json
777
779
  * @returns {string}
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanobpm/engine-wasm",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
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",
@@ -192,14 +192,16 @@ export class TestEngine {
192
192
  deployResource(resource_name: string, content: string): string;
193
193
  /**
194
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.
195
+ * standalone counterpart to a business rule task's in-line evaluation (the
196
+ * engine's `EvaluateDecision` command, exactly as the gateway runs it). The
197
+ * decision must already be deployed (via `deploy`/`deployDecision`). The
198
+ * evaluation is recorded as a decision instance with its own minted
199
+ * `decisionEvaluationKey` and no process instance — a failed one too
200
+ * (Zeebe parity, #1292). `variables_json` is a JSON object string (`"{}"` /
201
+ * `""` for none). Returns
202
+ * `{ "decisionId": ..., "decisionKey": ..., "decisionEvaluationKey": ..., "output": <value> }`
203
+ * on success, or throws a JS error carrying an "unknown decision" or
204
+ * evaluation-failure message.
203
205
  */
204
206
  evaluateDecision(decision_id: string, variables_json: string): string;
205
207
  /**
@@ -764,14 +764,16 @@ export class TestEngine {
764
764
  }
765
765
  /**
766
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.
767
+ * standalone counterpart to a business rule task's in-line evaluation (the
768
+ * engine's `EvaluateDecision` command, exactly as the gateway runs it). The
769
+ * decision must already be deployed (via `deploy`/`deployDecision`). The
770
+ * evaluation is recorded as a decision instance with its own minted
771
+ * `decisionEvaluationKey` and no process instance — a failed one too
772
+ * (Zeebe parity, #1292). `variables_json` is a JSON object string (`"{}"` /
773
+ * `""` for none). Returns
774
+ * `{ "decisionId": ..., "decisionKey": ..., "decisionEvaluationKey": ..., "output": <value> }`
775
+ * on success, or throws a JS error carrying an "unknown decision" or
776
+ * evaluation-failure message.
775
777
  * @param {string} decision_id
776
778
  * @param {string} variables_json
777
779
  * @returns {string}
Binary file