Drools5规则引擎学习研究

时间:2016-05-02 13:52:12
【文件属性】:

文件名称:Drools5规则引擎学习研究

文件大小:249KB

文件格式:DOCX

更新时间:2016-05-02 13:52:12

java drools 规则

/* 测试规则 */ 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:"+$customer.getOrders().size()); end


网友评论