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

Make it easier to use the DSL with Facts of different types in a RuleBook #39

Closed
Clayton7510 opened this issue Mar 20, 2017 · 1 comment
Assignees
Milestone

Comments

@Clayton7510
Copy link
Collaborator

If you are using POJO Rules, this is a non-issue. But if you are using the Java DSL, then mixing types of Facts is cumbersome since generics suppose all Facts are of the same type.

This should be an easier thing to do. I'm thinking that a RuleBook can be of an unspecified type and then Rules of any type can be added. Facts of all types would be chained across Rules. But only Facts of the type of the Rule would be available in the When and Predicate, still keeping the lambda syntax pretty streamlined.

@Clayton7510
Copy link
Collaborator Author

I think this is going in with v0.4 as part of the DSL updates. This is really done except for some needed refactoring
In terms of the refactoring, I am looking to converge the functionality between StandardDecision and StandardRule. I'm thinking StandardDecision will probably end up being a decorator for StandardRule.

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

1 participant