Results 1 to 4 of 4

Thread: Help with Transformation/Splitter

  1. #1
    Join Date
    Jun 2010
    Posts
    15

    Default Help with Transformation/Splitter

    As of Message Transformation (transform xml format to text msg), I may have multiple msg's. How to integrate Transformation with Splitter?

    Please help...

  2. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    Well, you can of course create a TransformingSplitter, but you can still look at this as two different concerns and see it as two steps in the flow:
    1st step: Split the message on several messages
    2nd step: Transform each and every message

  3. #3
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    A common way to do this is with our <xpath-splitter> and <xpath-transformer> back-to-back as Oleg mentioned. You could add them to a <chain> if you prefer, but the splitting and transforming are separate responsibilities.

  4. #4
    Join Date
    Jun 2010
    Posts
    15

    Default

    Thank you for your reply...

    The problem is , I will know if message needs to be split when I transform xml file to text/SWIFT format msg.

    question:
    In transformation logic, can I add the new msg to the vector and store this vector in original msg header, and process this vector in custom splliter bean???

    thank you for your help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •