on 05-06-2010 9:51 AM
Hi all,
I have a queue as follows:
[123] - intital Context
[sollinger Str]
[123] - CC
[Solinger Str]
[123] - Final context
An image of the queue looks as follows:
[http://i42.tinypic.com/hsj052.jpg]
Iam getting this queue in a userdefined function. I want to get or copy all the values from this queue to a new array as follows without any contexts.
That is, I want to have a queue as follows from the above queue.
[123]
[sollinger Str]
[123]
[Solinger Str]
[123]
How could that be done...
Thanks
P
use removeContexts before your UDF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi stefan you again
Remove context gives me a queue as follows:
123 - Initial Context
sollinger str
sollinger str
123 - Final Context
That wont work because Iam miising the middle value 123.
I want to have all VALUES without any intial or CC from this queue so that I could add my contexts as I want.....
if thats not possible,i will tell u my real problem
Edited by: pazzuzu on May 6, 2010 11:03 AM
Iam Trying to do a mapping as follows:
E1EDPA1 -STRAS TO target E1EDPA1 -STRAS.
Check the image link below:
http://i44.tinypic.com/2bek5f.jpg
"checkPar" is my user defined function.
Now I have put the queues for "PARVW" on the left and "if" queue on the right.
For Partners "AP" AND "LF" there is no "STRAS" field(Iam putting constant there).so my output queue of "If" should look as follows
so that it matches the values of the "PARVW" queue.
PARvW -Queue
SUPPRESS
AP
YG
LF
CC
YG
LF
FinalContext
If Output- -Queue
Initial Context
123
sollinger...
123
CC
Sollinger...
123
FinalContext
Edited by: pazzuzu on May 6, 2010 11:25 AM
Edited by: pazzuzu on May 6, 2010 11:27 AM
Did it....
The following is my input queues for "checkPar".
http://i40.tinypic.com/2iruhrp.jpg
My UDF execution type is set as "All Values Of Context".
so what Iam thinking is,In the "RemoveContext" queue ,in my UDF I will put a CC SO that it looks as follows:
Then it matches the "PARVW"queue in context and numbers.
12
sollinger...
12
CC
sollinger...
12
The question from my side is, as the execution type of my UDF is "All Values Of Context".After i Insert this CC in my 2nd queue will it it processed as 2 queues.
I am not sure what is inside your UDF code and why you have created.
BTW, For your currect problem you have to use the function FormatByExample to set the context changes as per your need. Try to search on SDN and find any blog which describs about this function.
Try this..
outut of checkPAR ----------
FormatByExample ---- STRAS
PARVW (set the context)-----
Hi guys...thanks 1 more thing
If My inbound queue "a" is as follows:
SUPRESS
AP
YG
LF
contextChange
YG
LF
Final Context
In my Queue "b" which is as follows
SUPRESS
123
sollinger...
123
Sollinger...
123
FinalContext
My requirement is in my "b" queue , I want to put a CC as follows by using a standard node function if possible
SUPRESS
123
sollinger...
123
contextChange
Sollinger...
123
FinalContext
IF THAT dont work Inside my UDF I want to put thE CC for the b queue.
How will the loop behave then?
What will be passed to my input queue "a" and "b" when execute "all values on context" is set.
"a" has a context and "b" doent have one.
My UDF
public static void Test(String[] a,
String[] b,
ResultList result,
Container container){
//Contains no context change
String b[] = {ResultList.SUPPRESS,"12","sollinger","12","sollinger","12",
ResultList.CC};
I make the following steps
copy to an arraylist. add a context change in between.
copy back to string b.
}
> If My inbound queue "a" is as follows:
>
> SUPRESS
> AP
> YG
> LF
> contextChange
> YG
> LF
> Final Context
>
>
> In my Queue "b" which is as follows
>
>
> SUPRESS
> 123
> sollinger...
> 123
> Sollinger...
> 123
> FinalContext
>
>
> My requirement is in my "b" queue , I want to put a CC as follows by using a standard node function if possible
>
> SUPRESS
> 123
> sollinger...
> 123
> contextChange
> Sollinger...
> 123
> FinalContext
I have alreday give the solution for this in my previous reply. Once again here it is..
b----
formatByExample ---- target node.
a----
[http://i42.tinypic.com/hsj052.jpg]
From the above queue as mentioned in the link, If you use ReoveContext then you will get output as shown below:
[sollinger Str]
[sollinger Str]
You cannot get the suppress values in a queue, you have to change your UDF code and in order to get [123] as value in your queue.
[123]
[sollinger Str]
[123]
[sollinger Str]
[123]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.