Does CDM Support Field Conversion?

Yes. CDM supports the following field converters:

You can create a field converter on the Map Field page when creating a table/file migration job.
Figure 1 Creating a field converter

Anonymization

This converter is used to hide key information about the character string. For example, if you want to convert 12345678910 to 123****8910, configure the parameters as follows:
  • Set Reserve Start Length to 3.
  • Set Reserve End Length to 4.
  • Set Replace Character to *.

Trim

This converter is used to automatically delete the spaces before and after a string. No parameters need to be configured.

Reverse String

This converter is used to automatically reverse a string. For example, reverse ABC into CBA. No parameters need to be configured.

Replace String

This converter is used to replace a character string. You need to configure the object to be replaced and the new value.

Expression Conversion

This converter uses the JSP expression language (EL) to convert the current field or a row of data. The JSP EL is used to create arithmetic and logical expressions. In an expression, you can use integers, floating point numbers, strings, constants true and false, and null.

During data conversion, if the content to be replaced contains a special character, use a backslash (\) to escape the special character to a common one.