The example Java source files in examples/rulebase_api show how to use the Rulebase-related classes of the Configuration Object API.
This sample extends RBIsample1.java to show how to use a compound test in a rulebase.
In this example, the rulebase created in RBIsample1.java is save to a file. After reading the rulebase from the file,
RBIsample2.java replaces the test with a compound test. The compound test checks if the current color is either blue or red. If this condition is satisfied, it performs an action that changes the color to green.