Closed (fixed)
Project:
Rules
Version:
8.x-3.x-dev
Component:
Rules Core
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2016 at 16:57 UTC
Updated:
5 Feb 2016 at 19:44 UTC
Jump to comment: Most recent
RulesExpression plugins should have a method integrityCheck() that determines if the current configuration setup is sane and no dependencies are missing or configured data types do not match.
Proposed solution: add a "configuration state" class that holds all data definitions of variables that are used in a rule. Add ->integrityCheck() methods to expression objects that throw exception in case an expression is misconfigured. The configuration state is used during traversing nested expression objects to determine which variable are available at which level in the expression tree.
Comments
Comment #2
klausiPR: https://github.com/fago/rules/pull/336
Comment #3
fagosee my PR comments
Comment #4
klausiall comments addressed, please review.
Comment #5
klausimerged.