[Index]

schedules:day-before


A schedule that returns the day before when it's parent schedule is due.

This is designed to be used with the schedules:broken's alternative property to move processing to the day before the holiday.


Property Summary

refinement Provide a refinement to this schedule.

Example Summary

Example 1 A schedule for the last day of the month, or the previous working day if the last day falls on a non working day.

Property Detail

refinement

Configured ByELEMENT
AccessREAD_WRITE
RequiredNo.

Provide a refinement to this schedule.


Examples

Example 1

A schedule for the last day of the month, or the previous working day if the last day falls on a non working day.

<schedules:broken xmlns:schedules="http://rgordon.co.uk/oddjob/schedules">
    <schedule>
        <schedules:monthly onDay="LAST">
                <refinement>
                    <schedules:time at="17:00"/>
                </refinement>
        </schedules:monthly>
    </schedule>
    <breaks>
        <schedules:list>
            <schedules>
                <schedules:weekly from="SATURDAY" to="SUNDAY"/>
                <value value="${holidays}"/>
            </schedules>
        </schedules:list>        
    </breaks>
    <alternative>
        <schedules:day-before>
            <refinement>
                <schedules:time at="21:00"/>
            </refinement>
        </schedules:day-before>
    </alternative>
</schedules:broken>
Note that the refinement schedules for a different time when the day before is used. This reflects the situation where data is often available later before a weekend or holiday.


(c) R Gordon Ltd 2005 - Present