?? businessrule.drl
字號:
#created on: 2009-5-10
package test
#list any import classes here.
import test.StockOff;
dialect "java"
#declare any global variables here
rule "Stock Price Lower Enough"
#股票價(jià)格低于100,則應(yīng)該購買
when
#conditions
$s:StockOff(stockPrice < 100)
then
#actions
$s.setCommendPurchase(StockOff.Yes);
printStock($s);
end
function void printStock(StockOff stock) {
/* code goes here*/
System.out.println("名稱:"+stock.getStockName()+
"價(jià)格:"+stock.getStockPrice()+
"購買:"+stock.getCommendPurchase());
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -