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

Add support for executable rule inputs #15

Open
kislayverma opened this issue Sep 11, 2016 · 2 comments
Open

Add support for executable rule inputs #15

kislayverma opened this issue Sep 11, 2016 · 2 comments

Comments

@kislayverma
Copy link
Owner

kislayverma commented Sep 11, 2016

Instead of rule inputs being fixed values, we should allow them to be arbitrarily executable pieces of code. This will allow definition of custom logic instead of static values.

A few things to consider here.

  1. Performance may be impacted if the logic is intensive.
  2. What data be passed to these inputs and how.
  3. Does this mean a new rule input type (e.g. 'EVAL') and how does that play with the data type construct.

This is also a significant deviation from the current simple approach of Rulette towards rule inputs, viz that of treating them as stored "values". With this, we shift more towards Drools style rule "execution", although we may be able to support both modes.

@kapilratnani
Copy link

The executable rules can have some side-effect or are just pure function returning a value?

@kislayverma
Copy link
Owner Author

No side Effects. They will comply with the Rule input contract and use "some" data. What should that data be though, is the question

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

No branches or pull requests

2 participants