Mule ESB DataMapper: Aggregation des Feldes abhängig vom Feldtyp
Mule ESB DataMapper: Aggregation des Feldes abhängig vom Feldtyp
Ich habe die folgenden Strukturen:
Strcuture A:
<itemlist>
<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>
<item>
<id>125</id>
<price>3</price>
<quantity>1</quantity>
<type>BBB</type>
</item>
<itemlist>
Struktur B:
<totals>
<total>
<totalPrice>3</totalPrice>
</total>
</totals>
Wenn ich eine Summe des gesamten Feldes will, aber nur für Strukturen mit einem "BBB".
Kann ich das in Mule ESB machen und wenn ja, wie würde ich das machen?
Vielen Dan