Scheduler Job Types
Scheduler Job Types
Overview
Each scheduler job method is stored in the gb_scheduler_types table and is also classified by module and class. Each method is listed below, grouped by module and class. Find out more about a particular method by going to its detailed page.
Global: Queries
This class contains methods that allow you to run queries, or multiple queries grouped into scripts. They are useful if you want to send reports in a simple format via email, or to run regular update queries over your database.
Note: Where the Status is set to 'Active', and the 'Send Mail' check box is checked ON, a mail recipient must be added for the Job Item to be saved or created. In addition, where the status is 'Inactive', and the 'Send Mail' check box is checked ON, the 'Run Now' function (where available) will fail.
Global: System
This class contains system level methods.
Global: System Maintenance
System maintenance jobs are normally scheduled on your behalf by Catch-e staff.
Fleet Management: Glass
This class contains methods to interface with Glass vehicle data via their SFTP site.
Fleet Management: Redbook
This class contains methods to interface with Redbook via their FTP site.
Fleet Management: Approvals
Fleet Management: AutoGuru
Fleet Management: Billings
Fleet Management: Card Services
Fleet Management: Contracts
Fleet Management: Finance
Fleet Management: Onelink
This class contains methods to interface with the Onelink system.
Fleet Management: Payments
Fleet Management: MySalPack
Salary Packaging: Approvals
Salary Packaging: Payments
Accounting: MYOB
This class contains methods to interface with MYOB.
Accounting: JDE
This class contains methods to interface with JDE.
Accounting: Greentree
This class contains methods to interface with Greentree.
Accounting: Xero
This class contains methods to interface with Xero.
Scheduler Setup
Send Mail Checkbox
Use: Set a preferred default for the job type. 'yes' if you expect an email to sent, or 'no' if an email is not useful
Behaviour: If = 'no', this checkbox will be disabled and emails cannot be sent, regardless of how the flag is set
Creating Queries
Refer to the following pages for guidance on creating scheduler queries:
User Defined Queries
Derived Fields
Encrypted Fields
Office(xls) Format
Office(xlsx) Format
Table Details
The scheduler uses 4 tables to run jobs.
gb_scheduler_types
gb_scheduler_types is maintained by Catch-e support and contains the job definitions for web services available to be scheduled. The content is client specific.
gb_scheduler_jobs
gb_scheduler_jobs contains the web services scheduled for execution. These entries are partially derived from the gb_scheduler_types table and are the source of the gb_scheduler_queue table (below). The content includes all jobs ever listed for scheduled execution, but not the schedule itself.
Note: Schedule times can be specified as ranges (for example: 1-20), comma separated (for example: 1, 2, 3, ..., 20) or a combination thereof (for example: 1, 2, 3-19, 20).
gb_scheduler_queue
gb_scheduler_queue is the execution schedule for jobs from gb_scheduler_jobs. The content of this table is maintained by the job scheduler. The job scheduler checks entries in gb_scheduler_jobs for those requiring addition to gb_scheduler_queue before executing required jobs listed in gb_scheduler_queue.
Note: Within a minute of an active gb_scheduler_job record being created, the job scheduler will have created a gb_scheduler_queue entry for this job. Setting the gb_scheduler_job record to inactive will delete pending gb_scheduler_queue entries.
gb_scheduler_job_recipients
gb_scheduler_job_recipients stores the details of people to be emailed when a job successfully completes or fails. There can be many recipients related back to a single gb_scheduler_jobs entry.