This example shows how to invoke JBoss Rules from an AssignmentHandler.
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/rulesAssignmentHandler directory and give it the project name rulesAssignmentHandler. Right click on the project and select Convert to Drools Project. Go to the rulesAssignmentHandler project Build Path Source tab add folders rulesActionHandler/src/main/rules and rulesActionHandler/src/main/identity. 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 RulesAssignmentTest.java as a JUnit test.