Transformation Designer - defining new functions
To define new JavaScript functions, you must use the Define Function dialog.
To display the Define Function dialog, click the button in the TML Details section of the transformation details to the right of the list of transformations.
Alternatively, where a source data element is associated with a function operation: