Skip to main content
Conditional Trigger

Start a Process when a precondition is fulfilled

A
Written by Asmo Urpilainen
Updated over 2 years ago

Conditional Triggers enable Processes to execute only when a predefined condition has been fulfilled. A Subprocess is called on a configured interval and if the Subprocess returns a non-empty value the main Process is Executed. Conditional Triggers should be used instead of Schedule Triggers with a short interval that mostly ends with the Process doing nothing.

Please note that one Process can only execute one polling Subprocess at a time. If the polling Subprocess takes longer than the poll interval to execute, it will be allowed to finish before starting another poll. This also means that having multiple conditional triggers in the same Process is not recommended, as they may may run inconsistently due to blocking each other.Β 

Parameters

Poll interval in seconds

How often the precondition Subprocess is executed. By default it is every 60 seconds.

Subprocess

The Subprocess that will be executed every X seconds.

Subprocess parameters

Parameters for the selected Subprocess.Β 

Executing the real Process

If the Subprocess is run successfully and returns something that is not a empty string or null the main Process will be executed. If Subprocess tries to return something else than string, returned value or object will be serialized.
​
The results from the Subprocess can be accessed in the main Process with the reference:

#trigger.data.result

Conditional Subprocess logging

The Subprocess will be run with minimal logging. On default log settings no Process instance will be found for the Subprocess.
​
Errors occurring in the Subprocess will be logged normally.

Did this answer your question?