Skip to main content

Defining Custom Transformations

Defining Custom Transformations

A custom transformation is a subclass of Ens.DataTransformOpens in a new tab that specifies:

  • The name of the input (source) message class

  • The name of the output (target) message class

  • A series of operations that assign values to the properties of the output object

Each assignment operation consists of a call to the Ens.DataTransformOpens in a new tab class method Transform(). The argument is a simple expression that is evaluated to provide the value for one of the properties in the output class. The expression can contain:

  • Literal values

  • Any property in the general-purpose execution context variable called context

  • Properties on the source object

  • Functions and operators from the expression language

  • Calls to methods provided by InterSystems IRIS®

  • Calls to user-provided methods

FeedbackOpens in a new tab