-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Evaluation order of logical operators #154
Comments
I would say there is no specific evaluation sequence. Conditions are evaluated over time while the engine is running. |
The |
Your constraint |
Please note that somethings I wont be able to recall as it was a long time ago, but I'll try to as best I can. The constraint do depend on the fact The rules were to spot unwanted changes in our Tree and classify them accordingly. The Some more info I can give about the original post is that I only wanted to do the |
I wanted to know what is the order in which nools parses logical operators in the rules.
When I was testing some rules detection using a Class I've made to be used inside the scope to validate some conditions, i've noticed that the DSL was parsing them bottom-up.
Is it possible to confirm if this is intended to work this way?
example (doesn't work):
In this exemple, i want to get and save a object with the e.id and match it to some information, after that i want to get the selected objects' child and match to another info.
Nools then gives a error saying that "selectedObject" is not defined, however when I change the order it works fine.
I wanted nools to confirm MyClass functions after it validates the e.attributes but for this, they must also be written after
example (does work):
Is it working with some kind of stack, FILO? Could you shed some light into it please?
Thank you
The text was updated successfully, but these errors were encountered: