Adding a new task

Important: The time at which you create the task affects the first execution of the task.
  • If the current time falls within the start and stop times specified, the tasks execute at the current time. Subsequent executions occur in intervals specified by the frequency value. So, for example, if the current time falls within the start and stop time and the frequency is set for 15 minutes, the first execution of the task starts immediately after the task is scheduled, and the next execution occurs 15 minutes later.
  • However, if the current time does not fall within the start and stop time, the task waits to execute until next start time, either on the current day, or on the next day. For example, if current time is 1:00 a.m., and the next start time is 7:00 p.m. (19:00), then the task would start at 19:00 on the same day.

To add a new task:

  1. Click Add a New Task from the Task Schedule page.
  2. Click Task under What type of task would you like to add? and then click Next.
  3. Enter a name in the Task Name field. For example: MyTask.
  4. Select a category from the Task Group list.
  5. Add a description of the new task in the text field and click Next.
  6. Specify the allowable time frame in which the task can run, such as between 10 o'clock (10:00) in the morning and 6 o'clock (18:00) in the evening, every hour, each day.
    1. Specify the start time of the time interval, using the 24-hour clock format: hh:mm:ss For example: 10:00:00
    2. Specify the stop time of the time interval, using the 24-hour clock format: hh:mm:ss For example: 18:00:00. You can also specify NEVER.
    3. Specify the frequency for how often the task can run during the allowable time interval, in days, hours, and minutes: d Days h Hours m Minutes For example: 0 Days 1 Hours 00 Minutes.
  7. Click Next.
  8. Specify the command statement that the task is to run. For example, if you want to delete miscellaneous tasks, you could enter the following statement:
    delete from ph_task where tk_group='MISC'
  9. Click Next. The confirmation page is displayed.
  10. Verify the entries for each selection:
    • If the entries are correct, click Finish to confirm and create the task.
    • Click Back to return to the previous pages to correct incorrect values.

Copyright© 2018 HCL Technologies Limited