rulesActionHandler

This example shows how to invoke JBoss Drools from an ActionHandler.

To create this example in Eclipse, you need to have installed the latest version of the JBoss Drool IDE plugin that supports the 3.3 / Europa release of Eclipse, e.g., drools-4.1.0-eclipse. Next, use the New -> Other -> Process Project and uncheck Use Default Location and browse to the jbpm-jpdl-{version}/examples/rulesActionHandler directory and give it the project name rulesActionHandler. Right click on the project and select Convert to Drools Project. Go to the rulesActionHandler project Build Path Source tab add folder rulesActionHandler/src/main/rules. This should result in a clean compilation (no errors). If the shipping.drl file stills show compilation errors, do a Project -> Clean.

This example consists of the following files:

To run the example, run the RulesActionTest.java as a JUnit test.