Partial rule evaluation / subcondition #376
Unanswered
marek-kuticka
asked this question in
Q&A
Replies: 1 comment
-
As you can read here, https://github.com/hyperjumptech/grule-rule-engine/blob/master/docs/en/RETE_en.md#what-is-inside-grules-working-memory The expression |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good evening.
if I have several rules including the same "subrule / subcondition" .. is there a way to remember, that the certain subcondition was already evaluated for a specific fact?
rule 1: when Person.Status == "single" && Person.Salary > 20000
and then
rule2: when Person.Status == "single" && Person.assets < 30000
I'd like the evaluation of first subcondition to be remembered and re-used when evaluating the same fact using same subcondition.
is this possible in current GRULE engine? if not, could you imagine having this implemented?
many thanks
Marek
Beta Was this translation helpful? Give feedback.
All reactions