User Community Service Desk Downloads
If you can't find the product or version you're looking for, visit support.ataccama.com/downloads

Autocorrects

Depending on specific types of autocorrects needed, you can use expressions or plans.

  • Expression Provider: We recommend using this provider for simple transformations (for example, to capitalize first letters in names).

  • Plan Provider: Generates a plan with Integration Input and Output steps, where you define the autocorrect behavior.

    Plans can return multiple values so more than one value can be suggested in the application along with the one that is being edited. We recommend using plan providers for complex transformations (for example, multiple variants for a company name: capitalized or uppercase).

To configure autocorrects, you need to:

  1. Define autocorrects.

  2. Configure plans if used.

  3. Map autocorrects to specific entities and columns.

Define autocorrect

You can define autocorrects in GUI Configuration on the Enrichments and Autocorrects tab.

Enrichments and Autocorrects tab

To define an autocorrect:

  1. Under GUI Configuration > Enrichments and Autocorrects > Autocorrects, select Add to add a row. Alternatively, double-click the asterisk (*).

    Adding new row in Autocorrects section
  2. Choose the autocorrect provider type.

    Choosing provider type
  3. A new row is now added. Double-click the number of the row and specify the following parameters depending on the provider type:

    • For a plan provider:

      Plan Autocorrect Provider window
      • Name: Unique name of the autocorrect.

      • Column Type: Autocorrect output data type. Possible values are FLOAT, INTEGER, LONG, STRING.

    • For an expression provider:

      Expression Autocorrect Provider window
      • Name: Unique name of the autocorrect.

      • Column Type: Autocorrect output data type. Possible values are FLOAT, INTEGER, LONG, STRING.

      • Expression: ONE expression that evaluates the autocorrect. Input is the value that will be autocorrected. In some expressions, input is not required, for example, today().

  4. Select OK to confirm. Repeat steps 1-3 for all autocorrect providers needed.

  5. Once the list is complete, confirm by selecting OK on the Enrichment and Autocorrects tab.

  6. Right-click GUI Configuration and select Generate. This updates the nme-enrichments.gen.xml file with the new configuration and generates the plans if defined.

Configure autocorrect plan

If you defined a plan provider for an autocorrect, you now need to configure an autocorrect plan.

To do so:

  1. Under Files > engine > enrichments > autocorrect, double-click the name of the plan you defined in the previous step.

    Selecting the autocorrects plan in ONE Desktop
  2. Complete the plan by adding steps as needed. For example, a completed capitalize_or_upper plan might look as follows:

    Autocorrect plan example

Map autocorrect to columns

To map the defined autocorrect to a specific column:

  1. In the Logical model, select the entity.

  2. On the GUI Settings tab, select Enrichments and Autocorrects composite element.

    GUI Settings tab
  3. In the tab that opens, under Autocorrects, select Add to add a new row. Alternatively, double-click the asterisk (*).

    Adding new role on Autocorrects tab
  4. Double-click Autocorrect and provide the autocorrect name. Double-click a Model Column field and provide the name of the column that the autocorrect is intended for.

    Alternatively, double-click the number of the row and provide the information in the window that opens.

    Press Ctrl+Space or start typing to see the list of defined autocorrects and columns.
    Defining autocorrect settings

    Make sure that:

    • The data type specified for the autocorrect matches the data type of the model column.

    • Each model column has only one autocorrect assigned.

  5. Confirm your choice by selecting OK.

Was this page useful?