Defining Execution Conditions
Execution Conditions can be defined at the Data Layer or Step level and are used to conditionalize the execution of the Data 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 Configuring a 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 Data Layer or Step. The image below shows the Execution Condition tab for a Data 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 Data 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 in the Options tab). Refer to the Options tab section in Configuring a 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.