Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Introduction to rule specifications
  3. Rule specification configuration
  4. Rule set configuration
  5. Rule statement configuration
  6. REST APIs for rule specifications
  7. Rule specification configuration in advanced mode
  8. Business rules and rule statements
  9. Validation and testing

Rule specification assets

Rule specification assets

Standardizing custom data values in advanced mode

Standardizing custom data values in advanced mode

To standardize data values, you can write rule logic that searches for instances of one or more values that you specify and replaces the values with a single new value.
For example, your organization might decide to standardize a list of department names to a common format. The organization decides to replace the terms
Information Technology
and
Information Tech
with the term
IT
in a column of department name data.
  1. Open a rule specification in advanced mode.
  2. Verify that the rule specification contains the inputs and outputs that you require.
    If the rule specification does not contain an input and an output that you can use, create an input and output. Configure the input and output properties to represent the type of column that contains the business data.
  3. In the rule editor, type an output name.
  4. Add an
    =
    operator value to associate the output with the function that you'll add.
  5. Define a function that replaces the string values that you specify with a new value.
    To define the function, use the STANDARDIZE command with a
    replaceCustomString
    function, add the input name, and enter the string values that the rule specification will search for and replace.
    Specify the list of custom string values within square brackets.
    The rule editor can suggest available function names based on the text that you type.
  6. Enter the delimiter that the rule specification will use to recognize discrete values in the input field.
    Specify the delimiters within square brackets. If you do not specify a delimiter, the rule specification uses a character space as the delimiter.
  7. Enter the scope for the search operation.
    You can set the following options:
    • Anywhere
      . Replaces any instance of the value that occurs in the input field.
    • Start
      . Replaces any instance of the value that is not preceded by another value in the input field.
    • End
      . Replaces any instance of the value that is not followed by another value in the input field.
  8. Enter the replacement value.
The following example shows rule logic that represents the standardize operation:
Output = STANDARDIZE("replaceCustomString",Input,["Information Technology","Information Tech"],[","," "],"Anywhere","IT")

0 COMMENTS

We’d like to hear from you!