-
Hi, I'm a little confused about how the "Or" operator functions with a child rule. I would have thought that in the following situation, the rule would be considered successful, as long as either the parent or the child rule evaluated successfully: But it seems like the failure of the child rule results in the entire rule failing, even if I specify an operator of "Or" or "OrElse". Am I misunderstanding something? Thanks very much for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Playing with this a little further, it would appear that if there are child rules, the expression of the parent rule is not evaluated, and that the parent rule is just a "container" for the child rules. My apologies. |
Beta Was this translation helpful? Give feedback.
-
Hi, I actually have the same question. How do you implement rules with precondition or hierarchy? For example, if I got rule says: Parameter: boatvalue. Expected output: true/false If boatcolor == "red" then It is a use case in if-else. How do I do this in rulesengine without creating 7 massive rule strings, since parent rule expressions are not in use? |
Beta Was this translation helpful? Give feedback.
Playing with this a little further, it would appear that if there are child rules, the expression of the parent rule is not evaluated, and that the parent rule is just a "container" for the child rules. My apologies.