Reputation: 53
Project my-app:
Import above jar into Guvnor
import the rules into the my-app and execute it
execute the rules inside business logic using drools/KIE API as follows:
kSession.insert(pojoInstance);
kSession.fireAllRules();
Is this a right approach? If not, can someone guide how this can be done?
Upvotes: 0
Views: 129
Reputation: 1631
Approach you mentioned looks good to me. I am not sure which version of drools you are using but if you are using Drools 7/6 then you can think of using kie-server. Kie-server provide REST API for rule execution and it support kie-Scanner API's through which you can update rules at runtime without downtime. It will save efforts of exporting rules/jar and using them in application.
Upvotes: 0