IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  How to process nested groups?

    Posted 02/01/10 12:55 PM

    Originally posted by: MartinEvans@


    Hi,

    I'm looking to process email attachments with the MIME adapter. I have the example working fine with 1st level attachments, but I have never had to work with nested groups in WTX, particularly where you don't know how deep the nesting goes. RTF emails that outlook generates, have a alternative body parts nested within an outer part, also, mail that has other mail dragged into it could contain other nested mails and so on...

    I could put something together for a single nesting, but I'm not sure how to put together a functional map that will recursively work it's way down the structure.

    Any advice will be greatly appreciated,

    Martin
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: How to process nested groups?

    Posted 02/01/10 03:12 PM

    Originally posted by: phil2030


    I would guess the easiest way to handle it is to have an executable map that can call itself. So the input is the email with header, body and attachments and then for each attachment you can run the same map again passing just that packaged attachment as input. I haven't played with email using TX for a while, but you might/(probably will) have to partition the input to be either an email (with potentially other emails embedded) or a file attachment of some form. Obviously the first/top level execution will match to the email partition, but any succesive execution depends on the data...
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender