Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
VAMSIKRISHNAKALE
Explorer
0 Kudos
392

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.

VAMSIKRISHNAKALE_0-1738925127552.png

 

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.

VAMSIKRISHNAKALE_1-1738925127555.png

 

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>}

VAMSIKRISHNAKALE_2-1738925127556.png

 

 

And the Output is here:

VAMSIKRISHNAKALE_3-1738925127562.png

 

Labels in this area