To control date alias instances resulting from a date alias instance offset relationship such that the date alias instance cannot fall on certain specified days |
||
Subsystem |
||
Structure |
Two Blocks |
Date Alias Instance Offset Date Alias Instance Offset Constraint |
|
This form is accessed via navigation buttons in the Maintain Date Alias Instances forms (CALF0511 and CALF0512). In those forms, a date alias instance is able to be defined in terms of an offset from another date alias instance. The date of the second instance is calculated as the first date plus or minus the offset. This form is used (optionally) to ensure that the calculation of the second date results in that date falling on 'acceptable' days. For example, the second date can be constrained to fall outside Institution holidays or only on a weekday or only on a Wednesday (or any valid combination of any of the constraints). This feature is particularly valuable when calendars are 'rolled over'. Date alias instances determined by offsets in the 'new' calendars will have their dates set according to the constraints rolled with them. With constraints defined, when an instance of the first date alias is created, the date of the second is calculated as the first date plus the offset. If this falls either on a day specified by a constraint as unacceptable or doesn't fall on a day specified as the required day, the date is moved forward or backward until the constraint is satisfied. For example, if the calculated date of the second date alias instance falls on a Saturday, and the constraint WEEKDAY,MUST (i.e. date alias instance must fall between Monday and Friday inclusive) has been specified for the date alias instance, the instance is moved forward to Monday (resolution days set to +1 or +2) in order to satisfy the constraint. Monday's date forms the date alias instance. In each case a number of resolution days must be specified. If the calculated date falls on a day which conflicts with the recorded constraints, the System moves the calculated date forward or backward that number of days. For example, if resolution days is set to 2, and the constraint MONDAY, MUST NOT is set, and the date calculated from the offset falls on a Monday, the date is moved forward two days to Wednesday. If the resolution days was set to minus (-)2, the date is moved back to Saturday. |
System date offset constraint type defines the day or days used in the constraint. E.g. MONDAY, WEEKDAY, HOLIDAY. Condition is the operator which acts on the constraint type. The available conditions are MUST and MUST NOT. E.g. MUST (be a) MONDAY, MUST (be a) WEEKDAY, MUST NOT (be a) HOLIDAY.Resolution days is the number of days which a calculated date should be moved forward in order to resolve a constraint. E.g. 3 moves a calculated date forward from Monday to Thursday (provided no other constraint prevents this). |
Notes/Rules:
|