| Recipes by Topic | Recipes by Author | Request enhancement | Report a bug | Fix documentation |
![]() |
Abhinav Verma |
---|
Use this recipe to
- Simulate reading of Write Variable in Content Modifer
- Simulate the Datastore Select Operation.
Download the integration flow sample
Sample input payload to start the simulation, click on the start simulation to open the dialog to enter the input payload.
<Products>
<Product>
<CurrencyCode>EUR</CurrencyCode>
<Price>799.000</Price>
<ProductId>HT-7010</ProductId>
<Name>Silverberry</Name>
</Product>
<Product>
<CurrencyCode>EUR</CurrencyCode>
<Price>44.900</Price>
<ProductId>HT-2025</ProductId>
<Name>CD/DVD case: 264 capacity</Name>
</Product>
<Product>
<CurrencyCode>EUR</CurrencyCode>
<Price>1230.000</Price>
<ProductId>HT-1137</ProductId>
<Name>Flat X-large II</Name>
</Product>
<Product>
<CurrencyCode>EUR</CurrencyCode>
<Price>900.000</Price>
<ProductId>HT-1601</ProductId>
<Name>Family PC Pro</Name>
</Product>
<Product>
<CurrencyCode>EUR</CurrencyCode>
<Price>34.000</Price>
<ProductId>HT-1106</ProductId>
<Name>Smart Firewall</Name>
</Product>
</Products>
Add the Write variable after the Content Modifier1 and define the variable name "Timestamp". This variable can be read via the simulation feature.
Add the following properties in Content Modifier2
- "Update_Timestamp"
- "Payload".
Sample response from the Select Datastore flowstep.
<Products>
<Product>
<CurrencyCode>EUR</CurrencyCode>
<Price>799.000</Price>
<ProductId>HT-7010</ProductId>
<Name>Silverberry</Name>
</Product>
</Products>
On the Content Modifier2, click on add Simulation Response. Click on add Variable and write the Variable name i.e "Timestamp"and input the following value.
Timestamp 2020-04-27 12:11:00
The Simulation can be run once all input values are populated. On successful run of the simulation, the simulated value of Write Variable in Content Modifier2 can be read as a property in Trace Envelope.
To view the payload updated after simulation of the Datastore Select operation click of the message body of Trace Envelope of Content Modifer2.