defaultRulesEngineProcessorJsonRulesEngine
constdefaultRulesEngineProcessorJsonRulesEngine:RulesEngineProcessor<RuleProperties[]>
Defined in: rules-engine/src/utils/formatRulesEngine/defaultRulesEngineProcessorJsonRulesEngine.ts:60
Default processor for the json-rules-engine export format.
Conditions are walked recursively. Each emitted rule is guarded by its ancestor antecedents
(structural nesting) and—in "cascade" mode—by the negated antecedents of its prior siblings,
producing if/else-if/else semantics. In "cumulative" mode prior-sibling negations are omitted,
so every condition is evaluated independently. A defaultConsequent behaves like the else
branch in "cascade" mode (firing only when every sibling antecedent at its level fails), and as
an always-true baseline in "cumulative" mode.
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.