Table of Contents

Search

  1. Preface
  2. Introduction to Rule Specifications
  3. Rule Specification Configuration
  4. Rule Set Configuration
  5. Rule Statement Configuration
  6. Common Types of Rule Statements
  7. Test and Validation Operations

Rule Specification Guide

Rule Specification Guide

Actions

Actions

An action specifies the output from a rule statement. An action generates an output value when the conditions in the rule statement validate an input value.
Configure an action to generate an output in one of the following ways:
Return a value that you enter.
Configure an action to return a data value that you specify.
For example, you might configure an action to return the word VALID when the input data matches a reference data value.
Return a value from an input column.
Configure an action to return a data value from an input in the rule specification. The action reads the data value on the corresponding row of the input that you select.
For example, a business might define a rule that requires all product records to use Quick Response (QR) codes in place of bar codes. You configure an action to replace an input column of bar code values with a corresponding column of QR code values.
Return a value from a reference table.
Configure an action to return a data value from a reference table. The action compares the input data to the values in the reference table that you specify. If the action finds the input data in the reference table, the action returns the reference data value that corresponds to the input data.
For example, you might configure an action to compare first name data to a reference table that identifies the gender of the first name. The action might read the word "JOHN" from the input data and return the word "MALE" from the reference table.
Return a value that you enter when an input data value matches a reference table value.
Configure an action to return a data value from a reference table. The action compares the input data to the values in the reference table that you specify. If the action finds the input data in the reference table, the action returns the string that you entered. if the action does not find the input data in the reference table, the action returns the input value.
For example, you might configure an action to compare employee code data to a reference table that contains the valid employee codes in an organization. You define a function that returns the word "VALID" when an employee code matches a value in the reference table. If the function does not find an employee code in the reference table, the action returns the employee code from the input column.
The action returns a data value for all records that satisfy the condition in the rule statement.
Return the current date and time.
Configure an action to return the system date and time to nanosecond precision from the Data Integration Service host machine. The rule statement returns the date and time values in a date/time data type. You must specify the format for the date and time.
Remove data values from the input data.
Configure an action to remove a data value that you specify.
For example, the input data might include a product name that the business no longer uses. Configure the action to return a version of the input data that omits the product name.
Remove reference data values from the data.
Configure an action to remove reference data values from an input.
The action compares the input data to the values in a reference table that you specify. If the action finds an input data value in the reference table, the action returns a version of the input without the data value.
For example, you might configure an action to compare an input string to a reference table of salutation terms. The action might read the input string "MR JOHN SMITH" and return the string "JOHN SMITH" as the output.
Remove character spaces from the input data.
Configure an action to delete character spaces from the input data. Remove character spaces when the input data includes redundant character spaces.
For example, you might configure an action to remove character spaces from the following telephone number:
212 555 1234
Use a function expression to determine the output value.
Configure an action to apply a function expression to the input data.
For example, you might configure the action to return the character length of the input data.
Merge values from multiple inputs.
Configure an action to merge data from two or more inputs.
For example, you might configure an action to merge a column of first name data and a column of second name data. The action returns a single field that contains the first name and second name.
Change the character case of the input data.
Configure an action to convert the character case of an input that you select.
For example, a rule statement might read a data set that stores data values in sentence case. Configure an action to return the data in uppercase.
Apply a mapplet to the input data.
Configure an action to apply a mapplet to the input data and to return the mapplet output. Select the input from the rule specification, or enter a constant value as the mapplet input. Select the mapplet from the Model repository.
A mapplet might represent a set of operations that the organization approves for use in for business rules. Or, a mapplet might contain transformation logic that you cannot define in the other options in the rule statement.

0 COMMENTS

We’d like to hear from you!