Search code examples
apache-sparkspark-streamingdroolskie

What all do i need for using drools with spark for managing rules?


I have to set some filtering conditions base on business given values. I am thinking of using drools for this but the documentation is very complex and has too many components. Which components do i need to use drools as rules engine. My understanding is that i need drools engine which is the core part and drools workbench which is a GUI to set rules I also have KIE execution server deployed on tomcat server but do i need this?. Is this correct do i need anything else?


Solution

  • I installed kie-server and kie-workbench.

    kie-workbench is a UI and allows following 1. Creation of a project/container 2. creation of rule or guided rule 3. creation of data objects which are like POJO objects. 4. deploy created project/container to kie-server 5. and also lot of other things which i did not explore.

    kie-server is component which 1. accepts REST requests to manage or execute containers

    I created required rules in kie-wb and deployed them onto kie-server and then made rest requests to kie-server from my program and received xml response after all rules are executed.

    I followed the following links http://www.mastertheboss.com/jboss-jbpm/jbpm6/running-rules-on-wildfly-with-kie-server http://mswiderski.blogspot.in/2015/10/installing-kie-server-and-workbench-on.html