API handler

The API handler activity allows you to create a custom instance of the masking items handler.

These can be used in scenarios such as masking records from text files.

Table of contents
Usage
Example
Properties

Usage

To use the API handler masking activity, it must be placed inside a masking iterator activity which has to be placed inside a masking engine. The Handler has to be set as a lambda expression that results in a custom instance of the desired masking items handler. For example, to create an instance of the custom handler for masking customers from a delimited file you would use the following:

api => api.Delimited().GetHandler<customer>("Original_File.csv", "Result_File.csv")

Note that the masking iterator must also be configured to work with the same record type as the custom handler.

Example

An example of how to properly use the API handler activity can be found in the example for masking CSV files.

API handler example Figure 1: Masking customers in a CSV file using the API handler activity

Properties

Property group Property name Description Example
Misc DisplayName Display name of the activity in the workflow. API handler
Handler Lambda expression that results in an instance of the desired custom handler. api => api.Delimited().GetHandler<customer>("Original_File.csv", "Result_File.csv")
Result Contains the masking definition object. It's a part of the masking infrastructure and should be ignored. -