
Content Modifier: A content modifier is a tool used in integration processes to modify the content of a message as it passes through the system. It allows you to add, change, or remove parts of the message, such as headers, properties, and the message body itself. This is particularly useful in scenarios where you need to adapt the message format or content to meet the requirements of different systems or services involved in the integration.
In a content modifier, we have three parts: the Exchange Property, the Message Header, and the Message Body.
Exchange Property: These are temporary and exist only for the lifetime of the message transaction. They are used within the iFlow.
Message Header: Headers travel along with the message to the receiver and are used globally.
Message Body: In the message body, we add Apache Camel expressions or files. These files can be either XML or CSV.
Here in exchange property, we are using source type is XPath.The Name PID is picks the PersonalID details from the source value (here we give Xpath of the xml). when we use Xpath in source type it picks only one field from xml which we define in property or header.
In the second Content Modifier, the message body part we are using expressions to call header&property from the xml which are define in first content modifier. To call header: ${header.<HeaderName>}
To call property: ${property.<propertyName>}
And the Output is here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |