This blog will explain how to make use of Content Enricher, Content Modifier in SAP HCI within the Integration Process.
Content Enricher: This will help to call the enal resource to append the Original message with the message.
Content Modifier: This will help to modify the messages as per the final receiver format.
Business case: Here need to fetch the records from Successfactors system from “one entity” if the hrIdentifier value exist in the “some other entity”.
Note: For security reasons I did not mention the Entity names.
Here I have considered the simple use case where SOAP UI as sender and Success Factors as receivers(One for Content Enricher and another for actual receiver).
ℹ Step 1: Create a iFlow as shown below with one sender and with Content Enricher and the receiver (the one which we need to call with in the integration process.)
The next step is to define the Xpath from the response message. To get the response I have fired the service from the SOAPUI and highlighted the Required xpath from the response message below.
ℹ Step 2: Need to form a Content Modifier to modify the source payload with the Response message from the Content Enricher.
In the Content Modifier we need to define the Header and Body as shown below.
ℹ Step 3: The final step is to configure the actual receiver to the Integration Process.
Make sure that the corresponding name spaces were defined in the Name Space Mapping.(Module Configuration—->Properties—->Runtime Configuration).
Testing from SOAPUI:
In this use case as per the response message from the Content Enricher, the Content modifier will pass the same to actual Receiver. The actual receiver will be responded accordingly.