Drools As a Service...Need your Help

678 views
Skip to first unread message

Avinash Konjeti

unread,
Mar 27, 2017, 6:15:13 AM3/27/17
to Drools Usage
Hi Team,

    I am working on a POC where i want to expose drools rule engine as a service.Where any new application or end user can plug and play my service to configure their rules rather than doing complete setup in their applications.For this to achieve I am having few questions which needs your help..

1. Can KIE Work Bench alone sufficient to create and execute the rules?If yes, Does KIE workbench provides any rest API to fire the rules?
2. KIE Server container is required mandatorily to execute the rules using rest API?or any other alternate ways?
3. Where i can download docker Image for KIE Workbench with embedded Tomcat rather than Widlfly?
4. Can you point me to the code repo for the war "kie-drools-wb-distribution-wars-6.5.0.Final-tomcat7.war" file...?So that I can customize the UI to make it as a service..
5. Current design I am planning is exposing the customized KIE workbench to the user inorder to configure rules according to their project and initiating the build and deploy to create kjar for the same.Once the kjar is ready using rest api the same will be uploaded into the kie server so that rest apis will be available to the end user so that they can integrate the same into their application.Can you suggest me is it a good design or any other way of handling?
6.  Are their any other way to create kjar with out workbench?I mean creating a jar which is runnable on kie container without kie workbench?


Please help me with the above so that I can kickoff the plan and design for making drools as  a service...

Thanks a lot...
Avinash Konjeti

Michael Anstis

unread,
Mar 29, 2017, 9:57:48 AM3/29/17
to Drools Usage
kie-server provides "kie as a service" (configurable to support rules, processes and/or planning solutions).

kie-server provides a RESTful API to deploy KJARs and execution of content (rules, processes etc).

1. Yes, in 7.x you'd use kie-server for runtime managed from the workbench with RESTful API.
2. Yes, kie-server is mandatory if you want to run rules with a RESTful API "out of the box". No, if you want to write your own service you don't need kie-server (it is a service we provide "out of the box").
3. Hopefully a colleague will reply.. I don't know.
4. https://github.com/kiegroup/kie-wb-distributions/tree/master/kie-drools-wb-parent but this is really a composition of many, many dependencies for the UI elements. If you can be more specific I can provide more specific links.
5. You describe use of Kie Workbench and kie-sever. We find it a good design.
6. Yes, you can use Maven and KIE's kie-maven-plugin to compile KJARs. Although a vanilla JAR with DRL (in src/main/resources), Java (in src/main/java) and kmodule.xml (in src/main/resources/META-INF) will also work.


--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/07cb5946-afde-4951-b72a-92aab7df2072%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages