Choosing a transform to set the value of a simple type output element
You can use different transforms, such as the Assign transform, the Create transform, the Move transform, or the xs:type transform, to set the value of an output element.
Procedure
Complete the questionnaire to identify the transform that you can use to set the value of an output element:
Results
Number of input elements that are required to set the value of the output element | Transforms to set a string data type, or a hexBinary data type | Transforms to set other simple data types | |
---|---|---|---|
Set the output element with a fixed value | 0 | Assign | Assign |
Initialize the output element | 0 | Create | not valid option |
Set the output element as nil | 0 | Create Condition: The
output element must be defined as |
Create Condition:
The output element must be defined as |
Set the output element as nil by using a nil input element | 1 | Move Condition:
The input element must be defined as |
Move Condition:
The input element must be defined as |
Set the output element with a default value | 0 | Create Condition: The output element must have a default value set in the schema. |
Create Condition: The output element must have a default value set in the schema. |
Set the output value from a database table column | 1..N | Select transform to obtain the database input value and Move transform to set the value | Select transform to obtain the database input value and Move transform to set the value |
Copy the value of the input element to the output element (both elements have the same data type) | 1 | Move | Move |
Copy the value of the input element to the output element (elements have different data types) | 1 | xs:type | xs:type |
Calculate the value by using the values of multiple input elements | 1..N | Concat, Normalize, Append, Substring, fn:string-join, Custom XPath, Custom Java, Custom ESQL | XPath fn: functions, Custom XPath, Custom Java, Custom ESQL |
What to do next
Learn about the transforms. For more information, see Transform types in the Graphical Data Mapping editor.