@o3r/rules-engine
Version:
This module provides a rule engine that can be executed on your Otter application to customize your application (translations, placeholders and configs) based on a json file generated by your CMS.
62 lines • 3.05 kB
TypeScript
import type { DevtoolsServiceInterface } from '@o3r/core';
import { RulesEngineDevtoolsServiceOptions } from './rules-engine-devkit.interface';
import { OtterRulesEngineDevtools } from './rules-engine-devtools.service';
import * as i0 from "@angular/core";
export declare class RulesEngineDevtoolsConsoleService implements DevtoolsServiceInterface {
private readonly rulesEngineDevtools;
/** Name of the Window property to access to the devtools */
static readonly windowModuleName = "rulesEngine";
private readonly options;
constructor(rulesEngineDevtools: OtterRulesEngineDevtools, options?: RulesEngineDevtoolsServiceOptions);
/** @inheritDoc */
activate(): void;
/** Return the list of debug events emitted by rules engine */
getCurrentRulesEngineEventsStack(): Promise<void>;
/** Returns the list of active rulesets (name and id) at the moment when the function is called */
getActiveRulesets(): Promise<void>;
/** Returns the list of available rulesets (name and id) at the moment when the function is called */
getAvailableRulesets(): Promise<void>;
/** Returns the list of output actions emitted by the rules engine at the moment when the function is called */
getAllOutputActions(): Promise<void>;
/**
* Get the list of executions for the given ruleset
* @param rulesetId
*/
getRulesetExecutions(rulesetId: string): Promise<void>;
/**
* Check if the ruleset is activ in the moment when the function is called
* @param rulesetId
* @returns True if the ruleset is active; False if the ruleset is inactive or it does not exist
*/
isRulesetActive(rulesetId: string): Promise<void>;
/**
* Get the list of rules executed for the specified ruleset
* @param rulesetId
*/
getRulesEvaluationsForRuleset(rulesetId: string): Promise<void>;
/**
* Get the list of input facts (name, current value) for the specified ruleset, at the moment when the function is called
* @param rulesetId
*/
getInputFactsForRuleset(rulesetId: string): Promise<void>;
/**
* Get the list of triggers for the specified ruleset
* @param rulesetId
*/
getTriggersForRuleset(rulesetId: string): Promise<void>;
/**
* Get the list of outputed actions emitted by the given ruleset, at the moment when the function is called
* @param rulesetId
*/
getOutputActionsForRuleset(rulesetId: string): Promise<void>;
/** Get the list of fact names and corresponding values */
getAllFactsSnapshot(): Promise<void>;
/**
* Retrieve the ruleset information (rules, linkedComponents, validity range etc.) for a ruleset id
* @param rulesetId
*/
getRulesetInformation(rulesetId: string): Promise<void>;
static ɵfac: i0.ɵɵFactoryDeclaration<RulesEngineDevtoolsConsoleService, [null, { optional: true; }]>;
static ɵprov: i0.ɵɵInjectableDeclaration<RulesEngineDevtoolsConsoleService>;
}
//# sourceMappingURL=rules-engine-devtools.console.service.d.ts.map