Rule Specification Guide > Rule Statement Configuration > Conditions
  

Conditions

A condition is a data operation that a rule statement specifies for an input data value. Every rule statement contains at least one condition.
When a condition validates an input data value, the rule specification performs the action in the rule statement. If a condition cannot validate an input data value, the rule specification does not perform the action.
Configure a condition to perform one of the following types of analysis:
Compare the input data values to a single value.
The rule statement compares the values in the input column to the value that you enter.
Compare the input data values to the values on another input.
The rule statement compares the values in the input column to the values on the same row in another input column that you specify.
Compare the input data values to the current date and time.
The rule statement compares the values in the input column to the current date and time on the Data Integration Service host machine.
Search for null values.
The rule statement searches the input column for null or empty strings.
Compare the input data values to a range of values
The rule statement compares the values in the input column to a range of values that you enter.
Compare the input data values to the values in a reference table.
The rule statement compares the values in the input column to the values in a reference table. The rule statement returns a value from the reference table or a value that you enter.
Compare the input data values to the output from a mapplet.
The rule statement compares the values in the input column to the output from a mapplet that you select from the Model repository. You specify one or more inputs for the mapplet. You can select any input in the rule specification, including the current condition input. You can also specify a constant value as a mapplet input.
Apply a function expression to the input data values.
The rule statement applies a function expression that you select to the values in the input column. The Analyst tool stores the list of expressions.

Function Configuration in Conditions

You can configure the data operation in a condition as a function expression. You can also select a function expression from a list of expressions in the rule specification. Use the function options in the condition to configure or select the expression.
You can use the function options as an alternative to the inline condition options that the rule statement displays in the workspace. You can also use the function options to configure a condition that reads multiple inputs or that reads an asset from the Model repository.
Use the Define Condition dialog box to configure or select a function expression. To open the dialog box, select function as the condition type in the rule statement.
The following image shows the Define Condition dialog box:
The Define Condition dialog box options define the comparison operation for the condition. Select an option type on the left-hand side of the dialog box. Use the editable fields to define the comparison operation.
The dialog box contains the following options:
  1. 1. Input
  2. Use the Input options to compare an input data value to other data values in the following ways:
  3. 2. Rules
  4. Use the Rules options to compare an input data value to the output from a mapplet. Use the options to select the mapplet from the Model repository. The Library workspace identifies the mapplets that you can select as rules.
  5. 3. Reference Table
  6. Use the Reference Table options to compare an input data value with the values in a reference table. Use the options to select the reference table from the Model repository. The Library workspace lists the reference tables that you can select.
  7. 4. Search
  8. Use the Search options to find an input data value in another input column. The rule statement searches all of the values in the column for the current rule statement input value.
  9. 5. Function
  10. Use the Function options to apply a function expression to the input data. Select an expression from the list in the dialog box.
  11. 6. Configurable options for the operation
  12. Use the options to configure the condition.