cancel
Showing results for 
Search instead for 
Did you mean: 

Remove First Suppress Value from Context

Former Member
0 Kudos

Hi,

I am testing my scenario and according to scenario, i need to generate target node as many times as the field is coming in the queue. i have noticed that due to there is first suppress value in queue the target node is not getting generated for any of the value.

Could you suggest on how to remove the first suppress value so that the target node could get generated. Also i have tried remove context, split by value or map with default but nothing worked.

Thank

Sam

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

As per your requirement, Remove context will work which removes the context values to suppress. After that you can use SplitByValue function.

Input field > Collapse context> splitbyvalue (each value) -->output field

I think this will help you..

shweta_walaskar2
Contributor
0 Kudos

Hello Sam,

Create a UDF removeSUPPRESS to remove SUPPRESS(blue) in the queue:

1) Select Context function:

2) Parameters: public void removeSUPRESS(String[] a,ResultList result,Container container){

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

if (! a<i>.equals(ResultList.SUPPRESS)){

result.addValue(a<i>);

}

}

Kindly let us know if this works for you.

Regards,

Shweta

Former Member
0 Kudos

Hi,

Remove Context should work here for your scenario...which will remove the contexts..for the values ...means removes the supress values if any...then u can use the splitByValue if needed...

Check the context..the values are passing to the queues...

HTH

Rajesh