Adding a Single Coercion
To add a single coercion to an element, follow these steps.
- Procedure
- From the Data Source tab, select the element type of an element, right-click on the element and select Add/Edit Coercion....
- In the Coercion window, click the
icon to add a coercion for the selected element.
- Accept the default option for the Component Type field.
- Select a schema for the
Namespace field by choosing an option from the drop-down menu, or click the browse icon
to view a list of available schemas in the application module.
- Click the
Type field, to select an element type.
Note: Ensure that the Type you select is an extension of the base type.
- Optional. Select the
Cardinality checkbox, and choose one of the following options from the drop-down menu:
Optional (?): Selecting this option sets the cardinality to zero to 1.Exactly one: Selecting this option sets the cardinality to 1.Repeating (*): Selecting this option sets the cardinality to 0 to infinity.At least one (+): Selecting this option sets the cardinality to 1 to infinity.
- Click OK to coerce the element type to be the datatype of the selected schema element.
ResultIn the
Data Source tab, the element of the selected datatype is replaced with the schema you specified. The coerced element can be mapped to any element in the Activity Input panel.
In the image below, the coerced element displays with the
icon in front of the element name, and the type you selected in parenthesis.