22.2. Banking Example: Rule in Example1.drl

rule "Rule 01"   
    when
        eval( 1==1 )
    then
        System.out.println( "Rule 01 Works" );
end
Output:
Loading file: Example1.drl
Rule 01 Works
  • This rule has a single eval condition that will always be true, so that this rule will match and fire after it has been started.
  • The output shows the rule matches and executes the single print statement.