Skip to content

Latest commit

 

History

History
 
 

SimulateResponseFromWriteVariableAndDataStores

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Simulate Response from Datastore Select Operation and Write Variable

| Recipes by Topic | Recipes by Author | Request enhancement | Report a bug | Fix documentation |

Abhinav Verma Abhinav Verma

Use this recipe to

  • Simulate reading of Write Variable in Content Modifer
  • Simulate the Datastore Select Operation.

Download the integration flow sample

Recipe

Step Screenshots Why?
Open integration flow in read mode Simulation is available in the read-mode of integration flow.
Switch on simulation mode simulationmode Enables the simulation tool bar to run simulation or clear simulation.
Define start point startpoint Click on the connector line where you need to define the start of your simulation. In our scenario, it will be after start timer event.
Define end point endpoint Click on the connector where you need to define the end of your simulation. Here, it will be before End Message.
Provide an input inputDialog To start simulation, message input is required. Click start point to open the simulation input dialog.Enter the input payload in the body.
Simulate response from Datastore Select Operation selectresponse1 Click Add Simulation Response speed button would appear to enter the response Datastore Select Operation.
Read the value of Write Variable in Content Modifier To simulate the value of Write Variable in the Exchange Property of Content Modifier.
Run Simulation runsimulation It is used to run the simulation once the start and end point have been defined.
Clear Simulation clearsimulation It is used to remove all the simulation elements like start point, end point, message processing output for all the previously defined.

References

Sample integration flow

iflowimage

Input Payload

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>

Input payload

Add the Write variable after the Content Modifier1 and define the variable name "Timestamp". This variable can be read via the simulation feature.

Define Write Variable

Add the following properties in Content Modifier2

  • "Update_Timestamp"
  • "Payload".

Content Modifier2 Property Details

Response payload from Select DataStore

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>

Click Add Simulation Response

Simulate the value of Write Variable

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

Click Add Simulation Response

Run Simulation

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.

Write Variable simulated

Response payload