NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
4 replies Latest Post - 2012-11-27T14:14:16Z by SudhanshuSawlani
Pinned topic Use a functional map as an input to another map
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
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.
Updated on 2012-11-27T14:14:16Z at 2012-11-27T14:14:16Z by SudhanshuSawlani
thorstenhirsch 1200008PTR87 PostsACCEPTED ANSWER
Re: Use a functional map as an input to another map2012-11-24T12:20:57Z in response to Muk1234I don't understand.
> So basically cust1 maps to enid=1
> 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?
thorstenhirsch 1200008PTR87 Posts
Muk1234 270005QJJK22 PostsACCEPTED ANSWER
Re: Use a functional map as an input to another map2012-11-26T08:28:55Z in response to thorstenhirschThanks @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.
SudhanshuSawlani 270002610P8 PostsACCEPTED ANSWER
Re: Use a functional map as an input to another map2012-11-27T14:14:16Z in response to Muk1234Muk, 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.