cancel
Showing results for 
Search instead for 
Did you mean: 

Splitter with multiple Gather on Router branches

former_member699577
Discoverer
0 Kudos

Hello Experts,

We are working on the scenario, where we have to split the incoming payload to multiple based on the XPATH content.

The incoming JSON payload contains combined data with 3 countries and i want to send it to individual country end-points. e.g. if the incoming payload contains 10 records, 3 for US, 2 for IN and 5 for UK, the output should be 3 messages with 3 records for US, 2 for IN and 5 for UK.

I am using General Splitter then the router with 3 branches and having a Gather step on each branch. The problem is Gather is collecting all the records. For testing, we removed the Gather step and we could see records splitting as per the country but we want to Gather them individually which doesn't seem happening.

Any limitation of having only 1 Gather per Splitter? Please confirm.

Thanks in advance.

Regards

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member417122
Discoverer

Hi Rajiv,

Splitter will not work correctly with Router . Check this blog from Sriprasad

https://blogs.sap.com/2017/06/01/sap-cloud-platform-integration-content-filter-in-detail/

Either you can use

1. Parallel processing with Content filter

2. After router use Aggregator to collect messages as per country code.

Regards,

Satya

former_member699577
Discoverer
0 Kudos

Thanks a lot Satya. You pointed out to the right blog. We were able to Filter the records now per country using "contains" function as mentioned in the blog.

Regards

Rajeev