Configure the Filter Inputs section in the Properties view of the ForEach transform to define the conditional expression that determines whether the transform is applied in a message map.
The ForEach transform can only have one primary input connection. Additional connections to the ForEach transform must be of type Supplement.
Complete the following steps to define a conditional expression on a ForEach transform:
The input element is evaluated against the condition. If the condition evaluates to true, the transform is applied to the input element.
The XML schema for the mandatory element is the following:
<element name="BusinessUnit" type="string" nillable="true"></element>
The XML schema for the repeating element is the following:
<xsd:element form="qualified" name="Address" type="mqsistr:Address" maxOccurs="unbounded" minOccurs="0" />
The XPath expression that you define is the following:
$BusinessUnit != ''
Deploy and test the message map. For more information, see Troubleshooting a message map.