Drools6.1 Workbench on JBoss AS7.1.1


Objective

In this post we are going to install JBoss AS 7.1.1 and Drools 6.1 Workbench.

In subsequent posts we will create and deploy rules, decision tables, and workflows with human interaction.

Download JBoss AS 7.1.1

Start JBoss AS 7.1.1

JBoss AS 7.1.1 will not run on Java8, so you will need to set your path to your Java 1.7 installation.

Running on a Mac, Java installations are installed in /Library/Java/JavaVirtualMachines, so for myself to work with JBoss AS 7.1.1 I do the following:

  • Open a cmd shell
  • export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home
  • export PATH=$PATH:$JAVA_HOME/bin
  • cd /Applications/Development/Servers/jboss-as-7.1.1.Final/bin

Add a JBoss Management User

  • ./add-user.sh
  • a – Management User
  • ManagementRealm (default)
  • username: admin
  • password: any password
  • yes

001-asuser

Start JBoss AS

  • ./standalone.sh

Open a Browser

http://localhost:8080

 
002-browser
Deploy Drools Workbench

Download Drools Workbench

Install Drools Workbench

  • Open the browser at: http://localhost:8080/
  • Click on Administration Console
  • login with the username/password you configured earlier
003-adminconsole
  • Click Manage Deployments in the left panel
  • Click Add Content in the Deployments pane
004-managedeployments
  • Click Choose File
  • Navigate to the kie-drools-wb-distribution-6.1.0.Final you downloaded
  • Navigate to binaries
  • select: kie-drools-wb-distribution-wars-6.1.0.Final-jboss-as7.0.war
  • click Open
  • click Next
  • click Save
005-enablewar
  • Click Enable
  • Click Confirm

With the Workbench enabled navigate to:

http://localhost:8080/kie-drools-wb-distribution-wars-6.1.0.Final-jboss-as7.0

006-kiebench

Add a JBoss Application User

With the server still running

  • open a cmd shell
  • ./add-user.sh
  • b – Application User
  • ApplicationRealm (default)
  • username: any username
  • password: any password
  • role: admin
  • yes

Login to the Drools Workbench

Go back to the browser and login with the new Application user you have just created.

007-loggedin

Close the What’s New window

008-loggedin

Next

In subsequent posts we will create and deploy rules, decision tables, and workflows with human interaction.

Advertisement

3 comments

  1. Hi, good post. Can you please do a follow-up post on the following?–> In subsequent posts we will create and deploy rules, decision tables, and workflows with human interaction.

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 )

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