.NET application remotely invoke drools workbench 6.1 to execute rule - drools

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

Related

REST endpoint registration and bootstrap(Creating range-index) using U Deploy

I have my code in Git repository. I am using UDeploy to deploy my code into MarkLogic environment. I can able to move all my modules successfully but facing two problems
1. Creating New indexes
2. REST endpoint creation
Please let me know if there is anyway to implement these two
For creating indexes, I have tried to do it using API functions(admin:database-range-element-index()) and I have successful in that part. But is there any way to do it from UDeploy or DevOps.
For register REST endpoint I couldn't able to find anyway to try.
Have you looked at MarkLogic's REST Management APIs - https://docs.marklogic.com/REST/management. In particular, see if https://docs.marklogic.com/REST/POST/manage/v2/databases will help you create indexes via REST management APIs.
The most common way to deploy MarkLogic code & configuration is ml-gradle, a plugin to the widely used gradle tool. ml-gradle uses MarkLogic's Management API, mentioned by Ganesh, and is scriptable.

what is the need & use of apache felix web console bundle in liferay 7.1

I am new in liferay want to perform crud operation using service builder so i want to understand need & use of apache felix web console bundle in liferay 7.1 so that i use it in order to check json/webservice api.
I would say you are not looking at the right tool for the job.
The console enables you to interact with the OSGi framework, a good place to start is not on the console but on the file systems if you are looking into understanding how Liferay uses the framework. The framework is embedded into the web app in order to provide the environment where bundles can live and provide services collectively.
Gogo is an auxiliary tool that enables interaction, you can query if bundles are installed, check the dependencies that you missed and who is providing a certain service or exposing a package.
Most of day-to-day of this kind of information you can also find in the app manager and/or logs.
About testing you api, I assume you are looking for seeing if it was installed and if it was resolved and activated. The app managers can provide the first clue for this, but gogo is an adequate tool as well, you will need to learn its commands and syntax. Do not worry they are trivial, you can find a description on the Apache's project page an on Liferay's dev guide.
Now, if you are looking to test the API for correctives or availability, using gogo will demand custom commands and lots of extra logic other tools provide for you.

Can I test rule using Drools (KIE) Workbench?

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.

How to make a rest call in kie workbench

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.

How to deploy rules from Drools Guvnor

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