-
Notifications
You must be signed in to change notification settings - Fork 42
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
How to use the engine with OpenStruct object #13
Comments
The way I've been doing this sort of thing is like:
and then rules something like
Of course, if you're only using the rule engine on one type of thing, you can leave out the type step/rule. If there's a better way, I'd love to hear about it :-) |
There isn't. If you want to use structures, you must decompose them into triples. |
Although having some sort of automatic translation is an interesting idea. |
I've been slowly working towards this, actually. |
I would like to try wongi-engine but I get some problems to set it.
I am used to ruleby where I can easily access fields in the OpenStruct objects I want to put in the facts base and do some comparison on them to trigger rules.
I want to be able to see if a node has already recorded an error , and from there trigger an action, and depending on the type of error, remove the facts.
I wonder how I can write the "has" or other matchers.
Each object has a box method so I would like to do obj1.box == obj2.box
and also some other comparisons on other fields too
Thanks
René
The text was updated successfully, but these errors were encountered: