cancel
Showing results for 
Search instead for 
Did you mean: 

Problem generating output from UDF

Former Member
0 Kudos

Hi,

I am writing very basic UDF in java - The code is

for (int i=0; i<a.length; i++)

{

for(int j=0; j<b.length; j++)

{

if(b[j] == a<i>)

result.addValue(c<i>);

}

}

But when i look at the queue of this function the output is suppressed and no element is created. The values for array a,b, and c are as follows -

a = 000010,000020 b = 000020, 000010,000010,000010,000010,000010,000010,000010

c = 2100,2100

When i try and execute same program in standalone java application with above constant array values i get the desired output. The same code dosent work in XI.

Anything wrong that you see here?

Thanks for you replies

Pavan

Accepted Solutions (0)

Answers (2)

Answers (2)

nikhil_bose
Active Contributor
0 Kudos

hi pavan,

use Advanced UDF to solve your problem

regards

nikhil bos

<i>**reward if helpful

GabrielSagaya
Active Contributor
0 Kudos

Use Advanced UDF since you are using resultlist inorder to have either Queue or context in the output node.......