Mule ESB DataMapper:以字段类型为条件但在嵌套结构中的所有字段的聚合

时间:2015-01-16 18:56:15

标签: dictionary mule esb

这不是一个重复的问题。上一个问题询问了如何聚合条件字段类型,但是这个问题询问如何在嵌套循环中执行此操作。

请注意以前一个问题没有

的方式分隔结构的标签

Mule ESB DataMapper:以字段类型为条件但在嵌套结构中的所有字段的聚合。

我有以下结构:

Strcuture A:

<itemlist>
  <catalog>
    <name>First</name>
    <item>
      <id>123</id>
      <price>1</price>
      <quantity>1</quantity>
      <type>AAA</type>
    </item>
    <item>
      <id>124</id>
      <price>2</price>
      <quantity>1</quantity>
      <type>BBB</type>
    </item>
  </catalog>
  <catalog>
    <name>Second</name>
    <item>
      <id>125</id>
      <price>3</price>
      <quantity>1</quantity>
      <type>BBB</type>
    </item>
  </catalog>
<itemlist>

结构B:

<totals>
  <total>
    <totalPrice>3</totalPrice>
  </total>
</totals>

如果我想要所有领域的灵感,但只是 对于具有&#34; BBB&#34;。

的结构

但是,我想要它遍历所有的 恩赐,而不只是一个。我该怎么做,而且 我应该为哪个节点制定规则

由于

0 个答案:

没有答案