/* 测试规则 */ rule "rule1" when $customer :Customer(); then setOrder($customer,5); System.out.println("rule 1 customer has order size:"+$customer.getOrders().size()); end /* 测试规则 */ rule "rule2" when $customer :Customer(); then setOrder($customer,10); System.out.println("rule 2 customer has order size: