@o3r/rules-engine 14.0.0-prerelease.21 → 14.0.0-prerelease.22

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.
@@ -2510,6 +2510,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
2510
2510
 
2511
2511
  /** Abstract fact set service */
2512
2512
  class FactsService {
2513
+ #isRegistered = false;
2514
+ /** Get the registered state */
2515
+ get isRegistered() {
2516
+ return this.#isRegistered;
2517
+ }
2513
2518
  constructor(rulesEngine) {
2514
2519
  this.rulesEngine = rulesEngine;
2515
2520
  }
@@ -2517,6 +2522,7 @@ class FactsService {
2517
2522
  register() {
2518
2523
  this.rulesEngine.upsertFacts(Object.entries(this.facts)
2519
2524
  .map(([id, factValue]) => ({ id, value$: factValue })));
2525
+ this.#isRegistered = true;
2520
2526
  }
2521
2527
  }
2522
2528