rulesAssignmentHandler

This example shows how to invoke JBoss Rules from an AssignmentHandler.

To create this example in Eclipse, you should first have created a project for jbpm.3 in your workspace. You should also have installed the latest version of the JBoss Rules IDE plugin, e.g., jbossrules-ide-3.0.5-bin. Next, use the New -> Other New Rule Project and uncheck Use Default Location and browse to the jbpm-jpdl-{version}/examples/rulesAssignmentHandler directory and give it the project name rulesAssignmentHandler. Go to the ruleFlow project Build Path Source tab add folders rulesAssignmentHandler/src/config, rulesAssignmentHandler/src/identity, rulesAssignmentHandler/src/jpdl and rulesAssignmentHandler/src/test. Use the Projects Tab to add jbpm.3. Use the Libraries tab and add hibernat3.jar from jbpm.3 lib directory. This should result in a clean compilation (no errors). If the assignment.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.