2017-07-07 28 views
1

我面臨的問題作出裁定之前到期不考慮時間,日期是工作的罰款爲什麼Jboss的口水規則定時

rule "My Rule" 
    no-loop true 
    dialect "mvel" 
    date-effective "05-JUN-2017 05:00" #after midnight 
    date-expires "07-JUL-2017 05:00" #before 23:59.59 on 6th July 

when 
    eval (true) 
then 
    log.debug("My rule executed"); 
end 
+0

你對屬性'drools.dateformat'的設置是什麼? – laune

+0

@laune我沒有指定它必須是默認的 – Arvind

回答

1

我們可以在代碼中找到:

DEFAULT_FORMAT_MASK = "dd-MMM-yyyy"; 

這是默認的,如果drools.dateformat屬性未設置。使用根據java.text.SimpleDateFormat的規格有效的字符串值來設置屬性。

+0

我已經添加屬性文件drools.dateformat = dd-MMM-yyyy HH:mm但這並沒有工作 – Arvind