You can use a Java™ method to set the conditional expression that determines whether a transform is applied in a message map.
To define the conditional expression, you can define an XPath expression or a call to a static method on an imported Java class. You can also create a compound (nested) expression that includes XPath, Java and extension functions such as iib:getUserDefinedProperty("propertyname").
Complete the following steps to set a conditional expression in a transform:
If the Java method returns true, the transform is applied to the input element.
Deploy and test the message map. For more information, see Troubleshooting a message map.