【问题标题】:Comparing multiple rates in BPEL process - WSO2比较 BPEL 流程中的多个费率 - WSO2
【发布时间】:2012-12-15 05:56:13
【问题描述】:

我们已经使用 Apache ODE / WSO2 BPS 实现了一个 BPEL 流程(它涵盖了整个订单流程,因此我们的流程运行时间很长)。

我们正在从六家供应商处获取一些产品的价格,响应格式已经统一,每个响应包含 5-10 种产品。以下是一些示例响应:

供应商 1 的回应:

<Products Vendor="1stVendor">
<Product>
    <Brand>Sony</Brand>
    <Model>M5<Model> 
    <Price>800.00<Price>
<Product>
<Product>
    <Brand>Dell</Brand>
    <Model>B6<Model> 
    <Price>900.00<Price>
<Product>

供应商 2 的回应:

<Products Vendor="2ndVendor">
<Product>
    <Brand>Sony</Brand>
    <Model>M5<Model> 
    <Price>720.00<Price>
<Product>
<Product>
    <Brand>Dell</Brand>
    <Model>B6<Model> 
    <Price>950.00<Price>
<Product>
<Product>
    <Brand>IBM</Brand>
    <Model>H9<Model> 
    <Price>940.00<Price>
<Product>

现在我们需要比较每种产品的价格,以找到每种产品的最便宜价格,并返回最佳选项作为最终响应。对于上面的例子,它应该是这样的:

最终回复:

<Products>
<Product CheapestVendor="2ndVendor">
    <Brand>Sony</Brand>
    <Model>M5<Model> 
    <Price>720.00<Price>
<Product>
<Product CheapestVendor="1stVendor">
    <Brand>Dell</Brand>
    <Model>B6<Model> 
    <Price>900.00<Price>
<Product>
<Product CheapestVendor="2ndVendor">
    <Brand>IBM</Brand>
    <Model>H9<Model> 
    <Price>940.00<Price>
<Product>

关于以上细节:

1- 实现这一目标的最佳和最快方法是什么?

2- 使用 Drools 或 WSO2 BRS 之类的规则引擎来比较这些价格是否有意义?如果是,我们应该将所有响应合并到一条消息中并传递给 BRS,还是必须单独发送消息。

谢谢。

【问题讨论】:

    标签: wso2 wso2esb bpel apache-ode


    【解决方案1】:

    这里解释了类似的情况http://wso2.com/library/articles/2011/05/integrate-business-rules-bpel/

    谢谢

    提利尼

    【讨论】:

      猜你喜欢
      • 2014-09-06
      • 2013-01-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多