ruleFlow

This example shows how to use jBPM as a RuleFlow component for JBoss Rules.

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/ruleFlow directory and give it the project name ruleFlow. Go to the ruleFlow project Build Path Source tab add folders ruleFlow/src/jpdl and ruleFlow/src/test. Use the Projects Tab to add jbpm.3. This should result in a clean compilation (no errors).

This example consists of the following files:

To run the example, run the IreClient.java as a Java Application. Try different combinations of bike colors, ages, etc, and notice the results. Hint - a yellow bike with 5 gears will be priced.