Note that there are some explanatory texts on larger screens.

plurals
  1. POComparing multiple rates in BPEL process - WSO2
    primarykey
    data
    text
    <p>We have implemented a BPEL process using Apache ODE / WSO2 BPS (it covers the whole order process so we have long running processes). </p> <p>We are getting prices for some products from six vendors, response formats are already unified and each response contains 5-10 products. Here's some sample responses:</p> <p><strong>Response from Vendor1:</strong></p> <pre><code>&lt;Products Vendor="1stVendor"&gt; &lt;Product&gt; &lt;Brand&gt;Sony&lt;/Brand&gt; &lt;Model&gt;M5&lt;Model&gt; &lt;Price&gt;800.00&lt;Price&gt; &lt;Product&gt; &lt;Product&gt; &lt;Brand&gt;Dell&lt;/Brand&gt; &lt;Model&gt;B6&lt;Model&gt; &lt;Price&gt;900.00&lt;Price&gt; &lt;Product&gt; </code></pre> <p></p> <p><strong>Response from Vendor2:</strong></p> <pre><code>&lt;Products Vendor="2ndVendor"&gt; &lt;Product&gt; &lt;Brand&gt;Sony&lt;/Brand&gt; &lt;Model&gt;M5&lt;Model&gt; &lt;Price&gt;720.00&lt;Price&gt; &lt;Product&gt; &lt;Product&gt; &lt;Brand&gt;Dell&lt;/Brand&gt; &lt;Model&gt;B6&lt;Model&gt; &lt;Price&gt;950.00&lt;Price&gt; &lt;Product&gt; &lt;Product&gt; &lt;Brand&gt;IBM&lt;/Brand&gt; &lt;Model&gt;H9&lt;Model&gt; &lt;Price&gt;940.00&lt;Price&gt; &lt;Product&gt; </code></pre> <p></p> <p>Now we need to compare the prices for each product to find the cheapest price for each product and return the best options as the final response. For the above examples, it should look like this:</p> <p><strong>Final response:</strong></p> <pre><code>&lt;Products&gt; &lt;Product CheapestVendor="2ndVendor"&gt; &lt;Brand&gt;Sony&lt;/Brand&gt; &lt;Model&gt;M5&lt;Model&gt; &lt;Price&gt;720.00&lt;Price&gt; &lt;Product&gt; &lt;Product CheapestVendor="1stVendor"&gt; &lt;Brand&gt;Dell&lt;/Brand&gt; &lt;Model&gt;B6&lt;Model&gt; &lt;Price&gt;900.00&lt;Price&gt; &lt;Product&gt; &lt;Product CheapestVendor="2ndVendor"&gt; &lt;Brand&gt;IBM&lt;/Brand&gt; &lt;Model&gt;H9&lt;Model&gt; &lt;Price&gt;940.00&lt;Price&gt; &lt;Product&gt; </code></pre> <p></p> <p>With regards to the above details:</p> <p>1- What are the best and the fastest ways to achieve this? </p> <p>2- Does it make sense to use a rule engine like Drools or WSO2 BRS to compare these prices? If yes, should we merge all responses into one message and pass to BRS or the messages have to be sent separately. </p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload