rule "Check Item.code" when $item: Item( $c: code < 1 || code > 10 ) then System.out.println( "Invalid code " + $c + " in " + $item ); end