Skip to content
The demo from the JBossWorld 2012 Keynote (Work in Progress!)
JavaScript Java
Find file



1 - Build the admin and leaderboard applications
  mvn clean install -Padmin
  mvn clean install -Pleaderboard
2 - Build the main application
  mvn clean install
  (add -DskipTests to build without running tests)
  (add -Drequirejs to optimise client application)


There are three deployable artifacts created by the build
 - distribution/target/drools-guvnor.war
   Guvnor application
 - distribution/target/designer.war
   Process Designer application
 - distribution/target/jbwdemo-application.ear
   REST services, jBPM integration, mobile client application

During the keynote demo we deployed the Guvnor and Designer applications on one server with the REST services etc. being deployed on a second server, however all artifacts can be deployed on the same server.

Configuring Guvnor Server

1 - Add drools-guvnor domain into standalone/configuration/standalone.xml

        <security-domain name="drools-guvnor" cache-type="default">
                <login-module code="UsersRoles" flag="required">
                    <module-option name="usersProperties" value="${jboss.server.config.dir}/"/>
                    <module-option name="rolesProperties" value="${jboss.server.config.dir}/"/>

2 - Create standalone/configuration/

3 - Create standalone/configuration/

Configuring REST Server
If you are using the default h2 ExampleDS then make sure that you enable MVCC as follows

You may also have to increase the deployment timeout on the deployment scanner, in order to give the consoles time to deploy.  This can be done by locating the 'deployment-scanner' element and specifying the timeout as follows
    <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" deployment-timeout="180"/>

Initialising Guvnor Repository

After deploying the Guvnor/designer applications, and configuring the Guvnor server, log in to the Guvnor console (<host>:<port>/drools-guvnor, user admin, password admin) and import the repository using the contents of process/

Accessing the Client Application

- buyer application
- approver application (password is letmein)
- VP application (password is letmein)
- To switch between roles, you must first logout. Once logged out, you will not be able to return to the previous role so a new role will be created when you log in again

Running Robots

Execute the following from within the robots directory
  mvn exec:java -Dexec.mainClass=org.jboss.jbw2012.keynote.robots.RobotsClient


Some of the functionality in this demo has still to be completed.  The current version represents the code as it stood on the day of the JBossWorld 2012 Keynote Demo.
Something went wrong with that request. Please try again.