Defining Schedule Objects

The steps for defining Schedules (JSCH) are the same as for any other Automation Engine object. This section describes the settings that are specific to Schedule objects. For general information about the purpose of a Schedule object, see Schedules (JSCH).

A Schedule definition is made up of the following pages:

See also Example: Scheduling Tasks with Time and Calendar Conditions.

To Define a Schedule Object

  1. Add a Schedule object and define the following parameters on its Attributes page.

    • Period duration, which determines the periodicity with which the tasks added to the Schedule are executed

    • Turnaround time, which determines the time at which the tasks start generating

  2. Add tasks to the Schedule and define their specific time parameters on this page

The Schedule page is divided in two panels. On the upper one, you assemble the tasks and set the time definitions that govern their execution. On the lower pane, you assign Calendars and modify some of the properties of the tasks that you have added. Click the Properties button on the upper right corner of the window to display or hide the lower pane.

To Add Tasks and Define their Properties

  1. Click the Add Row button to activate the row and click again the folder icon on the right.

  2. The Select Object dialog is displayed, where you select the task that you want to include.

  3. Click OK to insert it in the table.
  4. Activate the task.

    The Active checkbox is selected by default. If you deactivate it, the task remains as part of the Schedule object but it is not executed with it. Its status is ENDED_INACTIVE.

  5. Define the time at which the task should be executed.

    Click the Start Time cell to activate it and to be able to modify the time. The default value is the time that you have defined in the Period Turnaround Timefield on the Schedule Attributes page.

    You can specify here a different start time for every task in the Schedule.

    Important! The task start time must always be after the Schedule period turnaround time.

  6. In Start Offset (days), define how many days should pass between the beginning of a period turnaround and the activation of the task.

    The logical date determines the period start. For more information, see Logical Date and Real Date.

  7. Define or modify Calendar conditions for the task. A tick in the Calendar Conditions set column indicates that a Calendar Event has already been assigned to the task.

    The period duration and the task start offset can cause tasks to be executed on dates that you must avoid. For example, these dates could be non-working days. Or maybe you want the task to be executed only in some of the days that result from those settings. To solve these situations, you assign Calendars to the tasks.

    Also, when you add tasks to the Schedule, they might already have Calendar conditions. You can remove them, attach a different one or add an extra Calendar Event here. These changes apply to the task only when it is executed from within this Schedule.

    1. To make the properties panel visible, right-click the task and select Properties.

    2. On the Calendar tab, activate the Set Calendar Conditions checkbox.

    3. Specify when you want the task to be executed taking the Calendar definitions into account.

    4. To select the Calendar Events that determine the dates on which the conditions apply, open the Task Calendar Conditions combo box. You have the following options:

      • Start entering the name of the Calendar Event. The autocomplete function helps you find it.

      • Start typing the name of the Calendar in which the Calendar Event is defined.

      • Scroll through the list to find it.

    Notes: If a task is not executed due to the defined Calendar conditions, its status is ENDED_INACTIVE.

    For more information about Calendars, see Calendars (CALE). For more information on Calendar Events, see Calendar Events.

  8. On the Runtime page of executable objects, you define the parameters to calculate the maximum and minimum runtimes of tasks. If there are deviations, you specify what should happen. You can ignore these definitions when the task is executed from within the Schedule. A tick in the Runtime Settings overriden column indicates that this is the case.

    You can still monitor the runtime of the task when it is executed from within the Schedule. This function allows you to react quickly to runtimes that exceed the maximum runtime. When the execution has ended, you can also monitor whether it was processed within the minimum runtime. If not, you can react accordingly.

    On the Runtime tab, activate the Activate Runtime Settings checkbox to display the options.

    1. If the properties panel is not visible, click the Properties button on the upper right corner of this page.

    2. Switch to the Runtime tab.

    3. Activate the Activate Runtime Settings checkbox.

    For more information about how to set the runtime options, see Runtime Page.

  9. Define what should happen with the task depending on its status after execution. A tick in the Result Check column indicates that these parameters have been defined.

    1. On the Result tab, activate the Result Check checkbox.

    2. In the OK Status drop-down list, select the status that you expect this task to have when the execution is finished.

    3. In the ELSE section, define what should happen if the task ends with a different status.

      • Activate Repeat task if it ends with another status and specify how often and the frequency with which the execution should be repeated.

      • Activate Execute another object if the task ends with another status and select the alternative object. Define also when it should be executed.

  10. If Object Variables have been assigned to the task, they are displayed in the Variables tab. If you want the object variables to behave differently when the object is executed from within this Schedule, you can override their values here. For more information, see Variables Page.

    Important! Tasks can inherit the Variables that are defined in the Schedule. For more information, see Inheriting Object and PromptSet Variables.

  11. If PromptSets have been assigned to the task, they are displayed on the Prompt Sets tab. You can populate the fields with the values to be used when the Schedule object executes the task. If you do so, no user input is required at runtime.

    Important! Tasks can inherit the PromptSets defined in the Schedule.

  12. Add as many tasks as you need.

  13. Save your changes.

Next Steps

  1. After you have defined the Schedule object, you must execute it manually for the first time to activate it. From that moment onward, the Schedule runs automatically. For more information, see Activating Schedule Objects.

  2. While the schedule is running, you can follow its progress through its Last Monitor page. For more information, see Monitoring Schedules.

  3. You can modify Schedule objects and their tasks also at runtime, provided your user profile has been granted the necessary rights and privileges. These changes apply to that specific execution. See Modifying Tasks in an Active Schedule.

  4. Depending on the status of the schedule and of its tasks, different functions are available. See Working with Tasks.