cancel
Showing results for 
Search instead for 
Did you mean: 

save context data in UDF (array)

former_member440449
Participant
0 Kudos

Hi Gurus,

is there any way in which I can save context data into an Array so then I can compare context value and select which one should I use?

For example, I have:

field1

node1

>>field2

So field2 is under node1, and node1 is in the same level as field1.

If I want to save field1 data and field2 data into 2 different arrays, and then use condition:

if field2 = "ABC", then map field1

without loosing it context, is this possible? How should it be?

Thanks!

Regards.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member440449
Participant
0 Kudos

Thanks all for reply.

I want to do this but with UDF since it is impossible to do it with the node functions.

Anyone knows how the java code is for my initial question?

maciej_jarecki
Contributor
0 Kudos

HI

Take

field1 -> removecontext -> equal -> ifwithoutelse -> splitbyvalue -> target element

|-> field1->

field2 - |

This grah should help You

Regards

Maciej

Former Member
0 Kudos

You have to change the context of field2 to the context of field1.

But u have to make sure field2 is repeating only once under node1.