![]() |
Normally, a rule can only be triggered if it is "in effect" (see Rule States) as of the current date and time. By using the As Of Date method, you can trick the rules into triggering themselves prematurely. This is especially useful when you want to test a rule, see what effect a future change in rules or regulations may have on the overall framework, or see what past or future rates and/or discounts might be.
To set an "As Of Date", call the setAsOfDate
method on the TriggerPoint
object,
and pass the date that you want to be used. To use the current date again,
call unsetAsOfDate
or call setAsOfDate
and pass
null for the date.
Related concepts... | |
Business Rule Beans - overview | |
Rule States | |
View PDF file... | |
To view a PDF file containing this article and related articles, click: | |
![]() | |