Schedule Trigger

Introduction

The PayGate schedule trigger runs a workflow when the date and time in the schedule is satisfied. You can use the schedule trigger to create simple or complex workflows that trigger once or repeat at regular intervals.

For example you can use a schedule trigger to: - Run a workflow at a set time each day - Run a workflow at multiple times during the day

In the following image, the trigger has been set up to fire at both 8:00am and 5:30pm

Scheduler Trigger

Below of the schedule is a ‘View’ button. Use this button to calculate the next ten times that the current schedule will fire. Note this button ignores and suppression filters such as quiet time, you might have set.

Settings

Enabled

Determines whether the trigger is enabled or not. A trigger that is not enabled (i.e. disabled) will never execute any bound workflows.

Suppress on BACS non-working days

If enabled a trigger will not run any bound workflows if the trigger event occurs on a BACS non-processing day. Bacs non processing days are weekends and UK (English) bank holidays.

Quiet time

You may set a trigger for, say, every hour but you might not want it to run 24 hours. You may only want the trigger to execute workflows during, say, business hours. Setting a Quiet Time can help with this. By setting a start and end time, you can suppress a trigger from executing workflows during those times. For example, setting a start time of 19:00 and an end time of 0700, you can disable the cron trigger from 7pm to 7am. The cron trigger will function normally outside of those hours (7am to 7pm).

CRON Quiet Time

Bound Workflows

Bound workflows are the Paygate workflows that the trigger will execute when it fires. It is best practice to have one bound workflow per trigger but a maximum of three bound workflow can be used.

Add bind a workflow tot he trigger, click the + button. A picker will appear show all workflows for you organisation. Select a workflow from the list and click select. You will now see the selected workflow in the list of bound workflows:

Bound Workflows

By default the workflow is enabled - note the blue tick on the left hand side. You can enable or disable the individual workflows in the bound workflows list. When a workflow is disabled, it will not execute even when the trigger fires.

The ‘Edit’ link is a shortcut to editing the bound workflow in the Workflow Designer.

The trash icon will remove (unbind) the workflow from the bound workflows list. The workflow itself will not be affected by unbinding.

View Logs

The View Logs button is a shortcut the the logs page. This page shows all workflow executions for this particular trigger. You can drill down into the individual logs by clicking any of the rows in the table.

Clone Trigger

Cloning a trigger will create a new trigger based on the original. Most of the original configuration is moved to the cloned trigger with a few exceptions:

Before cloning, save the original trigger to ensure all the configuration is cloned.

On clicking Clone Trigger a popup will appear suggesting a name for the trigger. This can be amended as required but each trigger must have a unique name.

Clicking Yes! will clone the trigger and take you to the Trigger table. The newly cloned trigger is now independent of the original and can be edited or cloned again.

Notes

Limitations in PayGate cron expressions At the moment, W (nearest weekday), L (last day of month/week), and # (the nth weekday of the month) are not supported by PayGate.