Skip to content
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

Rules language #46

Open
milosdakic opened this issue Mar 29, 2016 · 3 comments
Open

Rules language #46

milosdakic opened this issue Mar 29, 2016 · 3 comments

Comments

@milosdakic
Copy link

Would be awesome if Ruler could do something similar to https://github.com/hoaproject/Ruler, where rules can be defined like so:

'group in ["customer", "guest"] and points > 30'

This would allow storage of rules within databases or other formats.

@yellow1912
Copy link

You can serialize the parsed rule then store it, at least that's what we are doing with this ruler

@wmelton
Copy link

wmelton commented Jul 29, 2016

@yellow1912 - How do you handle the error generated with trying to serialize the closure object? What function are you calling to get just the parsed rule?

@davidmpaz
Copy link
Contributor

For what I have read in the Documentation, this idea would be a perfect match for another Project, using Ruler as dependency and building some kind of external Domain Specific Language (DSL) which leverage the usage of Ruler itself.

I did something similar for an old Project of mine by using a DSL modelling framework which was Eclipse Based. At the time was a huge help when generating the Ruler code to use later on for validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants