cancel
Showing results for 
Search instead for 
Did you mean: 

UDF: how to find out the context in in-queue has been changed? (java)

Former Member
0 Kudos

Hi,

does anybody know?

Is there som function for this? Because I have a inbound queue with 2 separate contexts, let's say:

A

B

C->changes context

X

Y

Z-?changes context

Let's say I need to return first values in each context. how to do that in UDF?

Thank you,

Olian

Edited by: Olian Saludew on Aug 12, 2008 7:11 PM

Accepted Solutions (1)

Accepted Solutions (1)

VijayKonam
Active Contributor
0 Kudos

Compare it with ResultList.CC

VJ

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Create the Advanced UDF as below

While creating the UDF select the Cache parameter as Context

Then just use below code.

here a---> Source field

result.addValue(a[0]);

This will always take only 1st value of queue.

Thanks

swarup