Transformations > Data Masking transformation > Mask rule parameter example
  

Mask rule parameter example

You can create a mask rule parameter to use a single mapping to mask data in multiple sources or to avoid updating a mapping each time you add more columns to the source data that you want to mask.
See the following examples for more information:
Perform the following high-level tasks to run a mapping task with source, target, and mask rule parameters:
  1. 1Create a mapping with parameters.
  2. 2Run the mapping. You can run a mapping directly or from a mapping task.

Create a mapping with parameters

Create a mapping with parameters if you want to assign masking techniques at runtime, or if you want to be able to update the rows to mask without editing the mapping.
  1. 1Log in toInformatica Intelligent Cloud Services and open Data Integration.
  2. 2Click New > Mappings > Mapping to open a new mapping in the mapping designer.
  3. 3Configure the source transformation.
  4. Optionally, use a parameter for the connection. If you use a parameter, and the object names in each source differ or you don't know the object name, ensure that you use a parameter for the object. If the object name is the same in all sources that you plan to use this mapping with, you can choose the source type as single object and then enter the object name.
  5. 4Configure the target transformation.
  6. Optionally, use a parameter for the connection. If the object names in each target differ or you don't know the object name, ensure that you use a parameter for the object. If the object name is the same in all targets that you plan to use this mapping with, you can choose the target type as single object and then enter the object name. The object must exist when the mapping runs. You can't create the target object at runtime.
  7. 5Drag a Data Masking transformation from the transformations palette onto the mapping designer and connect it to the data flow.
  8. 6Select the Data Masking transformation object in the mapping designer. The properties appear on the Properties tab.
  9. 7On the General tab, enter a name and optional description for the transformation object.
  10. 8On the Masking Rules tab, select Add a parameter to configure masking techniques at runtime.
  11. 9Click New Parameter and create a masking parameter. Then select the parameter from the list.
  12. The following image shows a sample masking_rules parameter created and selected:
    The image shows the Masking Rules tab of the Data Masking transformation object in a mapping with a mask rule parameter created and selected.
  13. 10Select a relational dictionary connection or a flat file dictionary connection and storage connection from the lists.
  14. If you don't select values here, you can't add or update the values when you run the mapping.
  15. 11Click Save to save the mapping.

Run the mapping

You can choose to run the mapping directly or to add the mapping to a mapping task.

Run the mapping directly

  1. 1On the mapping page, click Run.
  2. 2Enter values that you want to use for the source, target, and masking techniques in this run.
  3. 3Click Run.
You can monitor the progress and status of the mapping job on the My Jobs tab. You can access and run the mapping again to run it with different values. Wait for the first job to complete before you run the mapping again.

Run a mapping task

  1. 1From the Actions menu on the mapping page, click New Mapping Task.
  2. 2On the Mapping Task page that opens, add a name and description, choose a runtime environment, select the mapping that you created, and click Next.
  3. 3On the Sources tab, perform the following steps:
    1. aSelect the source connection on which you want to run the mapping task.
    2. bIf you used an object type parameter in the source transformation, select the source type Single and select an object. You can then preview the source data on the Data Preview tab.
  4. 4On the Targets tab, perform the following steps:
    1. aSelect the target connection to which you want to load the masked data.
    2. bIf you used an object type parameter in the target transformation, select the object.
    3. cSelect the operation type and other target configuration options, and then click Next.
    4. Note: The object that you specify must already exist. You cannot create the target object at runtime.
  5. 5Optional. On the Input Parameters tab, if you need to change the dictionaries or storage connection that you previously included, select the connections from the list. You can ignore the fields if you don't need to use the connections.
  6. 6Click Add to add a field and then click Configure to select the masking technique that you want to apply to the field. Repeat this for each field that you want to mask and then click Next.
  7. 7Optional. On the Runtime Options tab, choose scheduling and notification options as needed.
  8. If you want to update the parameter values in each run, skip the scheduling options. You can't change parameter values before an automated run.
  9. 8Click Save to save the mapping task.
  10. 9Click Run to run the mapping task. You can monitor the progress and status of the mapping task on the My Jobs tab.
You can run the masking task again with updated parameter values to mask different or new source data. Wait for the masking task to complete before you run it again.