cancel
Showing results for 
Search instead for 
Did you mean: 

Java Mapping Help

Former Member
0 Kudos

hi @ ,

Is it possible thru UDF to perform mapping with a target node but simulatneoulsu access any other node of the target message like I will use the mapping like this

A --UDF --B but in UDF refer to any other target field of the target message say C,if yes then please help with the links or code

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

If B and C are used in the target side(multimapping),You can access any field in that mapping.

Former Member
0 Kudos

sekhar ,

Can u please help with any code ,blog or links to show how to do that ?

Regards

Answers (3)

Answers (3)

former_member214364
Active Contributor
0 Kudos

Hi Priya,

As Maheshwari said,you cant access target node or element inside UDF code.

just i want to access onething why do you want to access target element from UDF? whats your exact requirement?

Chees,

Jag

Former Member
0 Kudos

Hi priya,

yes..even though C is in targate structure u cant refer it in UDF....how ur UDF will know ur target structure....its simple java code.

try doing that... u will get error.

Thanks,

Maheshwari

Former Member
0 Kudos

Maheshwari,

Even i also have that doubt but i guess XPATH can be used .I haven't worked on it so not sure abt hence posted the query .

Is there any other way to do this?

Can u use the Node in UDF to perform chk on the complete elements present and then populate the target field?

Regards

Message was edited by:

Priya

Former Member
0 Kudos

Hi priya,

No... u cant refer to C if ur input to UDF is A.

Thanks,

Maheshwari.

Former Member
0 Kudos

Maheshwari,

C belongs to the target even then also ?

Regards