Setting the value of an output element to a simple data type

In the Graphical Data Mapping editor, use the Assign transform to set the value of an output element to a constant.

About this task

You cannot use the value of an input element to set the value of an output element in an Assign transform.

However, you can define supplement connections between input elements and the Assign transform. You can then use these input elements in a conditional expression that defines the condition under which the transform should be applied.

The output element is set to a constant value.


Complete the following steps to set the value of an output element to a constant:

  1. Create an Assign transform for the output element, by using either of the following methods:
    • Click the output element and drag the connector towards the input elements, releasing the connector onto a blank part of the canvas. When you release the connector, an Assign transform is created.
    • Right-click the output element and then select Create Assign.

      The Graphical Data Mapping editor displaying the applied Assign transform

  2. Enter the required constant into the Value field in the Properties panel for the Assign.

    The constant value can be any simple data type value.

    Note: Do not enclose string literals in single or double quotes; enter the required text in the entry field without quotes.

    The following figure shows the Properties view of the Assign transform:

    Properties window: Transform - Assign


If you do not specify a value, an empty element is created.

By default, the following values are set for an output element when you use the Assign transform:

Table 1. Default values set by using the Assign transform
Type Default value
string Empty string
dateTime 2002-01-01T11:00:00
boolean false
decimal 0.0
double 0.0
hexBinary 00
long 0
duration P1Y
time 00:00:00
date 2002-01-01