Scheduled tasks in ZCMS

From GruppoZenit
Jump to: navigation, search

By using ZCMS Scheduler, you can schedule tasks such as, “mail sending" to run at a time that is most convenient for you. A User can Schedule a task to run daily, weekly, monthly, or at certain times. The ZCMS scheduler was implemented by using Quartz Job Scheduling API.

Contents

The scheduler Menu in Web Site Section

Customized user interface: consist of a custom user interface (UI) and a menu link to access this user interface. Custom UI menu settings are placed under the CMS Development main menu inside a website.Custom UI link will take the user to a page similar to widget list and can create custom UI using Zcms tags. Menu link will redirect the user to the CMS menu Page. From there the user can select the Custom UI, selected custom UI names will appear under the respective menu groups.

Img1.png

Scheduler List Page

Cr2.png

The scheduler list table contains 3 columns namely, “Scheduled Job”, “Next Execution Time” and “Status”. The ‘Scheduled Job’ column contains the names of scheduled jobs. The ‘Next Execution Time’ column contains the next fire time i.e, next execution time. The ‘Status’ column displays the status of each scheduled jobs.

Scheduling a Job using ZCMS Scheduler

1. Scheduling a job to run at certain time

Step 1

From scheduler list page click "New" button, then the user will navigate to scheduler add/edit page.

Step 2

The schedulers add/edit page contains two tabs “SHORT JOB SCHEDULER” and “CRON SCHEDULER”. From these two tabs select “SHORT JOB SCHEDULER” to schedule a job to run at certain time. The “SHORT JOB SCHEDULER” contains two fields the ‘Job’ and ‘Start Time’. The ‘Job’ drop down field contains the list of job names to schedule. The start time is a calendar that allows the user to select the date and time to schedule a job to run at certain time.

Cr3.png

2.Scheduling a job using Cron Expression

Step 1

From scheduler list page click "New" button, then the user will navigate to scheduler add/edit page.

Step 2

The schedulers add/edit page contains two tabs “SHORT JOB SCHEDULER” and “CRON SCHEDULER”. From these two tabs select “CRON SCHEDULER” to schedule jobs to be executed periodically for example, to send out a notice every morning. The “CRON SCHEDULER” tab contains mainly two fields the job drop down list and six options (Minutely, Hourly, Daily, Weekly, Monthly, and yearly).

Cr4.png

Option 1 (Minutely):- Scheduling a job to execute every minute

Cr5.png

The above figure schedules “Sample Job 1” to execute every 20 minutes.

Option 2 (Hourly) :- Scheduling a job to execute every day at certain time

Cr6.png

The above figure is an example of scheduling a job that execute everyday at 5 O’clock.

Option 3 (Daily) :- Scheduling a job to execute every week day at certain time

Cr7.png

The above figure is an example of scheduling a job that execute every Execute on workdays 10AM.


Option 5 (Monthly) :- Scheduling a job to execute at every month at certain time

Cr8.png

Option 6 (Yearly) :- Scheduling a job to execute at every yearly at certain time

Cr9.png

Personal tools
Namespaces

Variants
Actions
Toolbox