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.  WTX Java Adapter Issue

    Posted 01/21/09 01:35 PM

    Originally posted by: SystemAdmin


    We need to implement a map which receives an XML as an Input and several Java Beans will be created from that input.

    We were able to import the classes to WTX and also we were able to do a map from the fields of that XML creating the objects succesfully.

    Our problem on one hand is that we are using an EIMS (XML) structure and we need to loop through 2 or 3 sections inside, and on the other hand we have objects that include collections or simple objects on them.

    We tried to create Functional Maps to make the structure on the XML loop but as Functional Maps can only have 1 Output Card, it is impossible to create more than 1 objects inside of them. Also F_Maps can not return java objects.

    I attach you all the files related to the project (Map, Trees, classes and XML file (Input)). You will find 2 Maps:

    • EIMSTransform_First_Version.mms: This is a version we have with the objects imported and working fine, but EIMS xml is not looping and only creates 1 instance of each class.

    -EIMSTransform: What we are trying to do now, working with F_Maps and trying to create the objects instances inside. But not working.
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 2.  Re: WTX Java Adapter Issue

    Posted 01/21/09 01:59 PM

    Originally posted by: janhess


    The Item containing your functional map only has 1 occurrence so it will only process once. also the data you are passing only occurs once though it contains objects that have multiple occurrences. To be able to loop, you need an output that occurs multiple tines ( and input)
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 3.  Re: WTX Java Adapter Issue

    Posted 01/21/09 02:27 PM

    Originally posted by: SystemAdmin


    My executable Map receives the complete XML file, and to the functional map I would send ProductDisposition (Which is a multiple ocurrences group) so sending ProductDisposition to an F_Map that should start the loop through allthe ProductDispositions instances in the XML, but I would not be able to create all the objects in that F_Map because F_Maps only allow one output.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 4.  Re: WTX Java Adapter Issue

    Posted 01/21/09 02:40 PM

    Originally posted by: janhess


    Your functional map rule needs to be in an object that occurs S to be able to loop. You can't expect multiple inputs to go to a single output unless you are using the seriestotext function
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 5.  Re: WTX Java Adapter Issue

    Posted 01/21/09 02:52 PM

    Originally posted by: SystemAdmin


    I have no problem with looping. Once I am looping how do I create more than 1 object inside a Functional Map?
    Because Functional Maps only allow 1 output and I need 1 output for each object class I want to create.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 6.  Re: WTX Java Adapter Issue

    Posted 01/21/09 03:23 PM

    Originally posted by: janhess


    You need the functional map rule in a group object containing the multiple occurrences you want to map to.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 7.  Re: WTX Java Adapter Issue

    Posted 01/22/09 08:02 AM
      |   view attached

    Originally posted by: SystemAdmin


    I created a small smample trying to apply what you say, but I receive this build error:

    M114 ERROR:
    Map: EIMSTransformMap Output: Objects:JavaOutput
    Output argument of rule does not match output type:
    =F_CreateObjects(ProductDisposition Element:Global:EIMS)

    I think this error is because F_Maps do not return objects. Am I correct?
    I attach the new map sample and tree.

    If at least I could have a sample of an object created in a Functional map to see how it really works.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender

    Attachment(s)



  • 8.  Re: WTX Java Adapter Issue

    Posted 01/26/09 09:04 AM

    Originally posted by: janhess


    I don't understand what you're trying to loop round as none of your inputs occur more than once. Also the F_CreateSalesGroup has not been generated from the F_CreateObjects functional map.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender