Conditional Trigger
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 run inconsistently due to blocking each other.
If the Subprocess is run successfully and returns something that is not an empty string or null the main Process will be executed. If Subprocess tries to return something else than a string then the returned value or object will be serialized.
Configuring Conditional Trigger 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: The parameters field are displayed if the Subprocess utilizes them.
Referencing Trigger parameter values
The result from the chosen Subprocess can be referenced or accessed in the main Process with #trigger.data.result
notation.
The next article is Introduction to Combination of Triggers