Defining Execution Conditions
Execution conditions can be defined at the data layer or step level and are used to conditionalize the execution of the layer or step based on the result of a specified Validation Condition.
Validation Conditions are defined in Validation Steps. In order to set up an Execution Condition, the Graphmart needs to have at least one Validation Step that defines a Condition Variable. Validation Conditions can be used across all Data Layers in the same Graphmart. For guidance on configuring a Validation Step, see Validate the Data (Validation Step).
This topic focuses on configuring an execution condition at the data layer level.
Configuring an Execution Condition
Execution Conditions are configured from the Execution Condition tab that is available when creating or editing a layer or step. The image below shows the Execution Condition tab for a layer.
Enable Layer Based on Boolean Condition
This setting indicates whether to enable this data layer only if the returned value from the Validation Condition is either true or false. You specify true or false in the Conditional Variable If Result field. If the Validation Condition fails, the layer is disabled.
Conditional Variable
This field specifies the variable that you want to base this execution condition on. If the list is empty, that means either there are no Validation Steps in the graphmart or a Validation Step exists but it does not include a Condition Variable (defined on the Options tab). Refer to Validate the Data (Validation Step) for more information.
Conditional Variable If Result
If you enabled the Enable Layer Based on Boolean Condition setting, select true or false from the drop-down list. The data layer will be enabled only if the result of the Validation Step Query matches the value that you specified. If Enable Layer Based on Boolean Condition
is disabled, leave this field blank.