RBIsample2.java
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.