Transformation scripts

Transformation scripts

Compose Enterprise is going through a design update. The illustrations on this page might be of the old design, but the information is up to date. Thank you for your patience during this update!

Norsk

When mapping variables anywhere throughout the Compose Builders, you will often have the possibility of transforming the value of the variable with a transformation script. Take for instance the Variables menu available for several workflow activities involving mapping of variables (e.g.: Text Generation, PDF Generation (templated) etc.). When values from the workflow have been connected to the variables, a Transform value property appears.

Clicking the Edit button opens a coding window where you can transform the original value before it is ultimately used. You can find transformation script windows for request-/response variables in the Generic Service Builder, for Condition variables, and many other places in Compose. Following are the properties available to a transformation script.

Property

Description

value

Original value. What this value represents depends on the validation of the variable.

Util

Provides utility functions.

Refer to the Properties of Objects available in script contexts documentation for an overview of the methods available.