Offset Calendar Events
This type is helpful if you want to use the settings of already existing events but you want to adjust them. For example, you have defined a monthly Calendar event that selects all last days of the month. You need a Calendar Event that makes sure that certain jobs run at month's end on a working day; this means that if the last day of a month is on a weekend or non-working day, you need to adapt it. You use an Offset Calendar Event for this.
In addition, Offset events allow you to define exceptions to the resulting dates and to specify alternative dates in case of collisions. For an example of how to define offset Calendar Events, see Examples of Calendar Events.
There are two sub-types of Offset events:
-
Simple
They reuse an event and simply define a deviation in days, either backwards or forwards.
-
Matching
They reuse an event and define a deviation considering a different event as reference (the target event).
For either sub-type you can define exceptions.
Note: Calendar Events have a validity period that the system administrator can specify in the NOW_MINUS and NOW_PLUS keys (see UC_CLIENT_SETTINGS - Various Client Settings).
To Create an Offset Calendar Event
-
In the Process Assembly perspective, click Add Object and select Calendar.
Define the general settings as described here: Adding Objects
- On the Calendar page the days of the year that lie in the past are grayed out. This is a mere visual help. Any Calendar event that you define here will affect the dates within the validity period as defined in the NOW_MINUS and NOW_PLUS keys in the UC_CLIENT_SETTINGS variable. For more information, see UC_CLIENT_SETTINGS - Various Client Settings.
- Click the Add Event button.
-
From the drop-down menu select Offset. The Edit Offset Event pane is displayed.
In Edit Offset Event you select the existing event you want to manipulate to create a new one. The fields displayed here depend on the type of event you want to create.
In Define Exceptions you indicate alternative dates in case those resulting from this event collide with other important dates.
- In Event Name enter the name of the Offset event you are creating.
-
Select the event Type. The input fields vary depending on your choice here.
-
Simple Offset
-
In Existing Event select the event you want to use as basis and adapt it. Do one of the following:
- Start typing its name and select it.
- Open the dropdown list and select it.
-
Click the eye icon to open the Choose Calendar Event, where you select the Calendar and the Event you want to use.
This is the best choice if you have many Calendars and events and you want to display a preview of the one you choose to make sure that it is the correct one.
- You can postpone or advance the dates of the Existing Event by setting the number in Offset.
-
-
Matching
This subtype is a bit more complex and gives you more flexibility. It allows you to consider two existing events in order to find matching days. These events might not necessarily overlap at first. However, you can postpone or advance dates of the previously selected existing event until matching dates of the target event are reached.
- Select the Existing Event you want to use as basis (see above).
-
In Match to nearest target date you define the direction in which you want to adjust the dates, namely:
-
before or on Existing Event
This will locate matching dates before or on the dates of the Existing Event.
-
after or on Existing event
This will locate matching dates after or on the dates of the Existing Event.
-
- Select the Target Event to which you want to match the selected existing event.
-
Define the Additional Offset. This is the number of days you move the resulting date backwards or forwards (depending on your previous choice) in relation to the target event you have just selected. If you leave 0 here the resulting date is not moved.
Example: You want the Offset Calendar Event to select the second to last day of the month provided it is a working day. You configure the Calendar Event as follows:
- Existing Event: LAST_DAY_IN_MONTH
- Match to nearest target date: before or on LAST_DAY_IN_MONTH
- Target Event: WORKDAYS
- Additional Offset: by 1 day of WORKDAYS
-
-
If necessary, you can also define exceptions to the resulting dates and alternative dates to those exceptions. Basically, what you do here is to define which event must not overlap with the one you are creating:
- Click Edit to open the Edit exception for event dialog.
- Click anywhere on the first row to activate it.
- In If collision with you select the events that will be exceptions to the rule defined by the offset event. Select an event from this dropdown list or click the eye icon to open the Choose Calendar Event.
-
Open the dropdown list in the Then column to display the options you can apply to the exception:
-
Skip
In case of a collision, the resulting date will be skipped.
-
Advance/Postpone by
In case of a collision, the event will be advanced or postponed by the number of days you select in the Additional Offset column in this dialog.
-
Match to target event before/after or on collision event
If you select this option, you must also define a target event in the Match to column.
In case of a collision, the target event will be considered to find matching days before/after the resulting date.
Define the Additional Offset. This is the number of days you move the resulting date backwards or forwards (depending on your previous choice) in relation to the target event you have just selected. If you leave 0 here the resulting date is not moved.
Add as many exceptions as you need. For more information about how to work with the table, see Working with Tables.
-
- Click Apply & Close to preview the results.
- If you are satisfied with the results, click the save button on the toolbar or the Apply & Close button at the bottom right corner of the page to return to the Calendar Events pane.
- Click Save on the Calendar toolbar.
See also: