deliveredtechnologies / rulebook

100% Java, Lambda Enabled, Lightweight Rules Engine with a Simple and Intuitive DSL
http://www.deliveredtechnologies.com
Apache License 2.0
716 stars 124 forks source link

Multiples Rulebooks some application #180

Open brunoboassi opened 4 years ago

brunoboassi commented 4 years ago

Hi guys,

First, sorry my bad english, I will try explain my problem.

I have one application with four flux and each flux need one rulebook. I wanna know how I implement this. I use the Pojo mode today and the only way I was think is using Qualifier and instanciate 4 rulebook object.

Some better idea?

Clayton7510 commented 4 years ago

You can use the POJO rules with the RuleBookRunner or the Java DSL to create a RuelBook. Or you could extend a RuleBook implementation (CoRRuleBook is currently packaged in the rulebook-core lib). Any of those approaches is practically the same as they all end up creating a RuleBook object.