We have been waiting for Rule execution server so long; finally we got execution server built in with BRMS 6.1 release. Rule execution server is an out-off the box feature built-in with BRMS, which provides unified platform to execute business rule in seamless manner. You don’t need to worry about writing your own code to execute rule. Just build your rule project from business central and deploy your compiled rule project as a execution container to the standalone EAP server.
Containers are self-contained environments provisioned to hold instances of compiled rule packages and deployed rule instances. The Rule execution operations are exposed as a REST API, so that any application can consume deployed rule seamlessly with out writing cumbersome code.
The BRMS Execution Server is distributed as a web application archive (WAR) with the name of “kie-execution-server.war” as part of BRMS Suite 6.1 release. It can be deployed along with BRMS Suite or separate to EAP instance, up to your preference.
|In order access execution server operation, you need to have a role “kie-server”, make sure that you have “kie-server” role|
|Deploy – “kie-execution-server.war” to EAP deployment folder|
|Add role – “kie-server” to application-roles.properties|
|Start the server, you should able to access through http://localhost:8080/kie-execution-server/|
Execution server Architecture:
Steps to create rule project:
- create new git repository and project from business-central
- create a model or import existing model
- Create simple rule using the model that you have created
- Build and deploy
Steps to create execution server:
- Click “Rule deployment” from business-central
- clilck “Register” to register your server and key in the following server information
- endpoint usl – http://localhost:8080/kie-execution-server/
- name of the server – “myServer”
- user id- your business-centerl login name
- password – your business-centerl login name
- click “connect”. Now your server should be created
- click “+” symbol at right most corner on your server
- you’ll get a pop-up screen to create container for your rule project
- enter your project maven artifact groupid , artifactId and version. also you search search business central , if you don’t know the artificates.
- container created for your rule project and exposed as a REST service that can be consumed from your application