cancel
Showing results for 
Search instead for 
Did you mean: 

Collect messages in CPI

anurag_sinha3
Participant
949

Hi,

we have a requirement to collect the incoming messages in CPI .

Can we collect messages in CPI for eg. bunch of 100 or 200 message and then process it further .

But condition is the source messages are not unbounded

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Anurag,

You could try encapsulating the incoming message under a xml packet using [Content modifier]/[Script].

<root>

<count>1</count>

<message>[messageContent]</message>

</root>

then aggregate it and later use filter to get the actual file format.

hope this helps !

thanks and regards,

Praveen T

NickSYYang
Active Participant

Hi Praveen,

Your solution is brilliant and is what I am looking for.

Thanks.

Answers (1)

Answers (1)

Hi Anurag,

You could use Aggregator step for achieving this.

Hope this helps !

thanks and regards,

Praveen T

anurag_sinha3
Participant
0 Kudos

But we dont have any XML condition to define the last record.

we just want to collect the messages coming in CPI in group for eg group of 100/200 message....and then process it sequentially