rest - Is it mandatory to use Drools KIE execution server to fire a rule? -


all, mandatory use drools kie execution server fire rule ? passing required data rules jar standalone approach instead of rest ?

there no need @ use kie execution server, no. following drools' user guide can learn how create kie container in java , how kie session it.

for example, if have rules in classpath, can try this:

kieservices kieservices = kieservices.factory.get(); kiecontainer kcontainer = kieservices.getkieclasspathcontainer();  kiesession ksession = kcontainer.newkiesession(); applicant applicant = new applicant( "mr john smith", 16 );     ksession.insert( applicant ); ksession.fireallrules(); 

once have session, can start feeding facts , exercising rules.

hope helps,


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -