0

我想迭代一些 Arraylist 值,所以在有foreach收集的 Mule 3.3 中,我foreach用来迭代 ArrayList。

迭代工作正常,但在迭代之后,我需要当前的有效载荷。我没有获得当前的有效载荷,而是获得了以前的有效载荷,如foreachArrayList。

    <flow name="">
    <component java="ArrayList"/>
    <foreach >
    <component java="getting arrayList value"/>
    </foreach>
    <logger message="DAVID#[payload]" />

在这里,我得到 java="ArrayList" 而不是这个有效载荷“getting arrayList value”

请帮助我通过 foreach 获取当前有效负载。

4

1 回答 1

0

It's very hard to understand your issue.

The doc states:

The MuleEvent sent to the next message processor is the same that arrived to foreach.

Isn't that what you're noticing? What else do you want?

于 2012-07-24T18:17:04.213 回答