cancel
Showing results for 
Search instead for 
Did you mean: 

help required for mapping

Former Member
0 Kudos

Hi experts,

i require to populate the target node based on conditions from the input fields...

I need to check for 5 values for a field and if yes then only target node needs to be created..

Ex: input: master

oouput: group

group node needs to be populated only if master is equal to 100,200,300,400..if not no node...

how to achive this....

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi reddy,

We have an option called <b>"fix values"</b> in mapping under conversion functions,

map the source field to the fix values , in fix values enter the key as 100,500..... and all the corresponding values as Y,

Then in mapping you can make a single condition "IF without Else" and check the output of the FIX values for Y, IF output is equal to Y then pass the sorce field.

this is for simplifying your logic by using single condition in mapping.

Contact me at saravanan.pec@gmail.com for a screenshot of this mapping

Thanks

Saravanan.N

Message was edited by:

saravanan

Former Member
0 Kudos

Thank you very much sarvanan....it worked well!!!!!!!!!!

Answers (2)

Answers (2)

prabhu_s2
Active Contributor
0 Kudos

there are node operator AND, Or etc....u can make use of them aswell

prabhu_s2
Active Contributor
0 Kudos

1. use if..else node condition in graphical mapping

2. also u can make use of udf

Former Member
0 Kudos

Hi Prabhu...

thank u for ur quick reply....

i need to check for 4 values at a time(i dont know how we check for 4 values using if ..else) ...that is why i am unable find the solution...

plz help me in that...

or if u have the UDF and can share with me ...it would be great...

Thanks in advance.

prabhu_s2
Active Contributor
0 Kudos

check with simple udf ......if u have nwds or any java editor u can just put the piece of code for if condition and check it in mapping....