I am new to Drools so my question could be obvious but I cannot find an answer.
I defined Data Model and Rule, built and deployed to my Drools server. Is any way to test it using Drools Workbench or I need to implement java client application or manually simulated call from web client like Postmen or SoapUI to Drools server? Thank you!
I figured out that I cannot test my rule from Drools Workbench and need to use either web client or application.
Related
I have been trying follow the links and details available to set up a KIE Drools workbench for Drools like https://www.intertech.com/simple-setup-of-drools-kie-workbench-and-kie-server-in-one-wildfly-instance/.
From what I could analyze and read up KIE Drools Workbench will let me configure a rule engine through a front end and that Guvnor used to handle this aspect prior to workbench. These configured rules can be blended into my Spring Boot application to drive my loan application requirement. I hope that this understanding of usage of KIE Drools workbench is correct. Please confirm.
Below are the things I tried.
Set up KIE Workbench in Wildfly
Set up KIE Server in Wildfly
Getting them deployed I had to go through many issues which I was able to resolve like updating the jboss-deployment-structure.xml and executing using standalone-full.xml.
This is the UI I see now.
But for the workbench I am only seeing FORBIDDEN on screen.
Can you please suggest what can be done so that I can have the UI to create my custom rules.
Just thought of updating that I was able to resolve the issue I faced. The only thing to be done is to follow the link I shared word by word :) . The users were created as stated and the exact version of war files were used and I am now able to access the workbench. Now on I will be exploring the usage.
I have wso2 micro-integrator project implemented in hand, where the project has few hard-coded values & conditions in the business logic, so i want to make them as separate and implement those as rules using Drools(BRMS).
Then, how i could apply the Drools created rules on wso2 micro-integrated carbon applications.
Thanks for the help in advance,
I am a newbie to kie workbench, I am using drools 6.3.0 and want to write a code in kie workbench for making a rest call.
With extensions tab, I made a angular page and now I want to make a rest call.
But i am not getting how to use Rest Api in kie workbench.
Can anyone please help me in this.
Simplest way : User default REST task.
Programmatic way : You need to create Java Handler. Use Apache HttpClient to implement programmatic REST call in "executeWorkItem" of your "WorkItemHandler", upload the jar in KIE Workbench. Then configure your "Task" to use this handler.
Is it possible that the drools workbench provide REST/SOAP API for .NET/python applications to execute rules.
thanks,
Kalin
There is a REST API, but it would be of no use to you. The rules don't get executed in Workbench. It's really just a repository for them. The REST API would let you download the rules, but you wouldn't be able to execute them in a .NET application.
Instead you would need to run up a rules service of your own. You could create a minimal Java web application, with REST/SOAP operations.
However, there is also the Drools Camel Server, which can be configured to load rules from your Workbench and expose them through a REST API. See the docs here:
http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html_single/#ch.server
I want to execute Drools rules via REST or SOAP.
I'm already using Drools Guvnor as facts, rules designer/repository. And it works just fine, but I haven't found any clear guidance on how to deploy these rules for execution.
I would be grateful if anyone points to tutorial.
Is it achievable without Eclipse?
If you're looking to execute Drools rules via REST or SOAP, look into Drools Server.
http://www.plugtree.com/drools-server-overview/
In this setup, your rules are actually executed on the remote server.
If you just want to use the built rule package from Guvnor in a standalone Java application, there is plenty of information in the Guvnor documentation that will show you how to use the URL where guvnor exposes your compiled package. See Chapter 9 for Knowledge Agent configuration.
http://docs.jboss.org/drools/release/6.0.0.CR5/drools-guvnor-docs/pdf/drools-wb-docs.pdf