KieServerAdapter 1.0.5
dotnet add package KieServerAdapter --version 1.0.5
NuGet\Install-Package KieServerAdapter -Version 1.0.5
<PackageReference Include="KieServerAdapter" Version="1.0.5" />
paket add KieServerAdapter --version 1.0.5
#r "nuget: KieServerAdapter, 1.0.5"
// Install KieServerAdapter as a Cake Addin
#addin nuget:?package=KieServerAdapter&version=1.0.5
// Install KieServerAdapter as a Cake Tool
#tool nuget:?package=KieServerAdapter&version=1.0.5
.Net KieServerAdapter for
KieServerAdapter is a restful client for Drools KieServer. You can easily call rules with your .Net project. These are the covered functions.
Drools also open source but it is in Java Stack and Kie Server is talented execution server and has restful feautures please see the full documantation in https://docs.jboss.org/drools/release/latest/drools-docs/html_single/#_kie.ksrestapi
Installation
Install just call this line from your package manager console or see the instractions from https://www.nuget.org/packages/KieServerAdapter/
PM> Install-Package KieServerAdapter
Docker
You can find the Docker images and how to use them for last final version at
For more info about the Drools Docker images see this blog post.
Quick Start
//Your insert object with .Net class
var insertObject = new Human { Sex = "E", Age = 63, FullName = "Recep Tayyip Erdoğan", Country = "TR"};
//Initialize your excecuter
var executer = new KieExecuter { HostUrl = "http://localhost:8082", AuthUserName = "kieserver", AuthPassword = "kieserver1!" };
//Insert object to KieServer session
executer.Insert(insertObject, "com.project.Human");
//executer.StartProcess("project.Flow_Human");
//Fire
executer.FireAllRules();
//This your response
var response = await executer.ExecuteAsync("container");
// If your response has an single result, see the magic in SmartSingleResponse property.
//var response = await executer.ExecuteAsync<Human>("container");
Please see the KieServerAdapter.Test project for more detailed examples.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- Microsoft.AspNet.WebApi.Client (>= 5.2.3)
- Newtonsoft.Json (>= 10.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Added fire-all-rules command