Skip to Content
0
Former Member
Apr 15, 2009 at 10:52 AM

Multiple input arguments in User defined funcions

17 Views

Hi Experts,

I have a file to proxy sceanrio.Have to do one to one mapping of all the corresponding fields except 3 fields. for eg

1) - <Services>

<DisplayValue>Tax>Business Tax</DisplayValue>

</Services>

Sender Receiver

===== ========

Tax Functions

under the services tag the "Tax" is one of the sender's field .I need to map this "Tag" to the receiver field called as "function".My question is: can we do wz some user defined functions or we have to use java functions.If we use Java,what way we can implement in PI 7.1 because,i guess we can not use the multiple input arguments.

2) similarly,

- <LineOfBusiness>

<DisplayValue>Consumer Markets>Retail</DisplayValue>

</LineOfBusiness>

Sender Receiver

===== ========

Retail Sector

Retail is one of the sender field.it should be mapped wz another field "Sector" at receiver side.how to pick up the retail field and map it to the receiver side.Is there any user define function for this or we have to write java code if we have to go for Java,how it will be implemented in PI 7.1

3) similarly,

- <GeographicLocation>

<DisplayValue>Americas>North America>Null>United States & Virgin Isl.>United States,US,USA,United States of America</DisplayValue>

</GeographicLocation>

Sender Receiver

===== ========

Americas Region

North America Sub region

Null Area

UnitedStates,US,USA,United States of America Territory

As u all can see,the above corresponding sender fields should be mapped to Receiver fields.It all has coem under one line in XML.How to pick it up and map 1 to 1 at the receiver side bcoz receiver wants it as a separate fields.Is there any user define function for this or we have to write java code if we have to go for Java,how it will be implemented in PI 7.1

Experts,please help me out as this is a live scenario.

Thanks in Advance

Veeru