JBoss BRMS 6.1 – Rule Execution server (Part 1)

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:

brms-execution-server - New Page(2)

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
    • container
    • container2
  • click “+” symbol at right most corner on your server
    • container3
  • you’ll get a pop-up screen to create container for your rule project
    • container4
  • 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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s