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.  Type Tree Issues - Combining multiple trees into 1

    Posted 02/15/10 07:48 AM

    Originally posted by: SystemAdmin


    Hi,

    I have two maps that pass 5 files from one to the other, with the second watching a directory for the last file written from the first map.
    This works ok, but I suspect writing and reading 5 files for each transaction is slowing it up and I would like to combined the files into 1, saving file io and reducing file counts in watching directories.

    The issue I have is each of the 5 files is a different type of data, 2 xml and 3 txt files and I knocked together a quick type tree and from map 1 packaged all 5 bits of data into 1 file.
    In the receiving map I then moved all the 5 input cards as output cards and I then wanted to "unpackage" the 5 components from the new input card into the individual output cards before processing them.
    However the receiving map is whinging about "Output argument of rules does not match output type".

    So I am after some advice to deal with this.

    The options that I see are either
    1. Trick the output card to accept the portion of the input card, as a blob of data, and trust me it does match the type tree, but I don't know hoe to do that.
    or
    2. Build a new combined type tree and "inherit" the 5 component trees, but with enough detail just to allow the mapping to to the 5 output cards to take place and again I am hoping there is a way of merging trees together?

    The underlying reason for doing, this is that after I get the map to pass a single file between them, I hope then to pass that data using MQ, hopefully for a further performance improvement, but before I can do that, I need to get the data all together into a single message.

    Any advice would be greatly appreciated.

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


  • 2.  Re: Type Tree Issues - Combining multiple trees into 1

    Posted 02/24/10 06:02 AM

    Originally posted by: TimUK


    I suspect your input and output cards reference different .mtt files, even though the formats are the same.

    If you know for sure that the formats you are mapping are the same then you can map object to object wrapped in the REFORMAT() function and that'll solve the problem. Beware, depending on your patch level there have been issues with reformat() before, but generally it works.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 3.  Re: Type Tree Issues - Combining multiple trees into 1

    Posted 02/25/10 09:03 AM

    Originally posted by: SystemAdmin


    Hi Tim, yeah thats right I have different .mtt for the input and output. Originally I was five files between the maps each using its own .mtt. Now I have created a new .mtt which basically has 5 blobs, each representing, one of the original 5 bits of data.

    I will try that command, not used it before.. thanks for the direction.
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender