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.  Use a functional map as an input to another map

    Posted 11/21/12 02:40 AM

    Originally posted by: Muk1234


    Hi,Can anyone help me on this please. I have a functional map which generates an output field "enid" whose value may be 1,2,3 and so on depending on those many inputs. For e.g if there are 3 custids like cust1,cust2,cust3 THEN the map generates three enids as 1,2 and 3. custid field is a String whereas enid is a number. So basically cust1 maps to enid=1,cust2 maps to enid=2 and so on. In the next functional map say fmap2, i want to use this mapping because the input for this map would be any of the custid say cust2 and this should output enid=2 which was generated by the above map. Would appreciate any help on this.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: Use a functional map as an input to another map

    Posted 11/24/12 07:21 AM

    Originally posted by: thorstenhirsch


    I don't understand.

    > So basically cust1 maps to enid=1
    http://...
    > In the next functional map http://... the input for this map would be any of the custid say cust2 and this should output enid=2

    So both functional maps should map a custid to an enid? Why don't you use the same functional map then?
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 3.  Re: Use a functional map as an input to another map

    Posted 11/24/12 07:22 AM

    Originally posted by: thorstenhirsch


    Please ignore the http links in my previous posting. Those should have been just some dots like "...".
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 4.  Re: Use a functional map as an input to another map

    Posted 11/26/12 03:29 AM

    Originally posted by: Muk1234


    Thanks @thorstenhirsch for replying. My question was "can we use a functional map as an input to the other functional map". May be I wasnt clear enough. So to elaborate,Can we use the output of one functional map as an input to another functional map? And I got the ans. Its Yes. All we need to do is copy the output field and paste it in our rule where we have to use it. Anyways Thanks a lot for replying.
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 5.  Re: Use a functional map as an input to another map

    Posted 11/27/12 09:14 AM

    Originally posted by: SudhanshuSawlani


    Muk, this can be one way.

    However, you can also use a functional map within a functional map. The inner functional map executes first and its output can be an argument to the outer functional map.

    Ex: F_Map1(A,B,F_Map2(a,b))
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender