Set the date a rule comes into effect

To apply one set of rules before a particular date, and another set of rules after that date, you can use the Temporal Before and Temporal On Or After functions.

 

For example, you could have the following simple rule to determine the age requirements for a pension:

 

the person satisfies the age requirement if

both

TemporalBefore(2007-01-01) and

the person's age in years >= 55

or

both

TemporalOnOrAfter(2007-01-01) and

the person's age in years >= 65

 

You can also use these functions in tabular rules, for example, to determine a person's standard daily rate of benefit:

 

the standard daily rate of benefit

5 TemporalBefore(2006-07-01)
6

TemporalOnOrAfter(2006-07-01) and

the person is not married

7

TemporalOnOrAfter(2006-07-01) and

the person is married

0 otherwise