Skip to Content

Splitting payload based on condition using Splitter in CPI

Hi Experts ,

I have a requirement where I have to split the below payload in CPI .split.png

I need to send different XML's for ET_DATA_HIER ,ET_SALES_HIER,ET_UOM & ET_WAREHOUSE to the target . I currently use the splitter with Xpath pointing to ET_DATA_HIER which result in receiving data only for that segment . Other segments are not coming .

Is there any way I can use the standard Splitter to acheive this ? Can I write conditions to spilt ?

If not could someone guide me as to which is the best way to split payloads in this case .

Any pointors are appreciated.

Thanks ,


split.png (14.8 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 31, 2020 at 02:01 PM

    Hi Nitheesh Cherrikkal,

    You can use Message mapping(Multi mapping) and target side you could map with different Messages

    Alternatively you could use an XSLT or Groovy as well to split that.

    Hope that helps !

    thanks and regrads,

    Praveen T

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.