It is possible to set an execution condition for each task: function or validation rule. If a function or a validation rule is calculated with the definite result, the task is executed. Task execution conditions can be set on the Condition page/tab in the task setup wizard.
In the web application the page appearance depends on the selected condition type.
Set the parameters:
Function/Function is Executed with the Result. Select the radio button to execute the task taking into account function execution result (true or false) from the specified repository assembly, form or unit:
Assembly, Unit or Form. In the drop-down list select assembly, unit or form with the required function. To search for the object in the list, start typing object name in the search field in the web application or click the Search button and enter object name in the desktop application. To remove the object from the box, click the Remove button.
Function. In the drop-down list select the function, which execution result is necessary to execute a condition.
Result. In the drop-down list select the condition execution result - True or False.
NOTE. The Function field displays only functions with certain signature: Function <name> (<param>: IScheduledTask): Boolean.
Rule/Validation Rule is Executed with Result. Select the radio button to execute the task taking into account validation rule and the number of exceptions from this rule:
Validation rule. In the drop-don list select the repository validation rule. To search for the object in the list, start typing object name in the search field in the web application or click the Search button and enter object name in the desktop application. To remove the object from the box, click the Remove button.
NOTE. Validation rules contained only in the time series database can be used as task execution conditions.
Result: number of exceptions. Specify the result, with which validation rule must be executed to satisfy condition. In the first field select comparison operator in the drop-down list, and in the second field enter a value.
Without Conditions. Default value. The task is executed without conditions. In the desktop application the use of condition is determined by the Execute Task If checkbox.
See also: