Managing Triggers

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Configuring Jobs >

Managing Triggers

When creating a job, you must specify the conditions (or criteria) that will trigger the job, known as triggers. FlowForce Server monitors any defined triggers and executes the job whenever the trigger condition is met.

 

You can create multiple triggers for the same job, and you can also enable or disable any of the defined triggers. Whenever any of the enabled triggers fire, FlowForce Server executes all steps of the job.

 

If you use triggers in jobs that have parameters, all parameters must have default values; otherwise, the job will not execute.

 

You can create the following types of triggers:

 

Timer trigger
File system trigger
HTTP trigger

 

A timer trigger allows you to schedule jobs to start at a specific time and run for a specific time interval, with flexible recurring options (such as daily, weekly, on specific days of the week or month, and others).

 

A file system trigger allows you to monitor a file or directory for changes such as newly added files or modified files (note that deleted files cannot be monitored). You can flexibly configure the directory polling interval (for example, every 60 seconds), and you can optionally set the start and expiry date of the trigger. You can also use wildcards to filter specific files of the directory.

 

An HTTP trigger allows you monitor a URI (Uniform Resource Identifier) for changes. Specifically, you can poll for changes the Last-Modified and Content-MD5 HTTP header fields. You can flexibly configure the polling interval (for example, every 60 seconds), and you can optionally set the start and expiry date of the trigger.

 

To add a trigger, click the button corresponding to the trigger type.

AddTriggers

Use the following buttons to the right of a trigger to manage it.

delete

Delete trigger.

icon_duplicate

Duplicate trigger.

icon_undo

Undo a previous delete action.

Some trigger fields have the add and delete buttons displayed next to them (for example, the start date of a timer trigger). You can use these buttons to set or clear the value of the trigger field. The value is considered set when it is visible in the page. For example, in the image below, the value of Repeat is not set, while the value of Start is set to "2016-03-29 00:00:00":

trigger_set_value

Note that, for the set trigger values to take effect, the job must be saved as well.

 

See also

Timer Triggers
File System Triggers
HTTP Triggers

© 2019 Altova GmbH