@educorvi/rita
    Preparing search index...

    Class PluginAbstract

    When a rule is evaluated, the enrichData function is called and the data to evaluate against is passed to this plugin. The plugin is supposed to create its own data (or enrich the data object that is passed to it) and return it. This new object will then be used to evaluate the formula inside the plugin

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    formula: undefined | Formula

    The formula that will be evaluated with the enriched data

    options: Record<any, any>

    The options given to this plugin

    Methods

    • Enriches the data for the child formula

      Parameters

      • data: Record<string, any>

        The original data for evaluation

      • Optionallogger: Logger

        Optionally pass a logger

      Returns Promise<Record<string, any>>

      The enriched data that is then used to evaluate the child formula