on 05-15-2007 6:36 PM
Hi,
pls help to complete the UDF in the below blog
/people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
I think for loop has to be completed ..........
<u><b>In Comment on this weblog section</b></u>
<u><b>Two user Defined Fns are required:</b></u>
1.selectnodeifA
2.selectNodeifB
The first fn passes a node if the name is A and second fn passes if the name is B(with respect to blog fields).
Both the functions have two arguments Name, Node and fns are taken in Queue.
<u><b>First fn</b></u>
<u><b>selectnodeifA</b></u>
//write your code here
for(int i=0;i <b>----->(Pls help me out to complete this for loop)</b>
{
if(Name<i>.equals("A"))
result.addValue(Node<i>);
}
<u><b>Second fn</b></u>
selectnodeifB
//write your code here
//write your code here
for(int i=0;i <b>----->(Pls help me out to complete this for loop)</b>{
if(Name<i>.equals("B"))
result.addValue(Node<i>);
}
In addition to that,
In the same blog
He has given Mapping details
(bpm_in_MT/Details/Name,bpm_in_MT/Details/Age)selectnodeifAsplitbyvaluebpm_outMT/info/Age.
He has not created Age field in bpm_in_MT but how is he mapping in the above way ?
Thanks.
ss
Thanks,
ss
Message was edited by:
s s
Message was edited by:
s s
Message was edited by:
s s
<b>Hi Ram,</b>
Have you u checked how many arguments u have uesd in that UDF, can you check your MessageMapping properly.
Cheers,
Ashok.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
for(int i=0;i<Name.length;i++)
{
if(Name.equals("A"))
result.addValue(Node);
}
for(int i=0;i<Name.length;i++){
if(Name.equals("B"))
result.addValue(Node);
}
Cheers!
Samarjit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Samarjit Dey ,
After Mapping when I checked , It gives me the following error
Check Result for Object bpm_MAP Source code has syntax error: C:/usr/sap/SXI/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Map0e513010a24011db89f5001676478b29/source/com/sap/xi/tf/_bpm_MAP_.java:102: cannot resolve symbol symbol : variable Name location: class com.sap.xi.tf._bpm_MAP_ for(int i=0;i<Name.length;i++) ^
C:/usr/sap/SXI/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Map0e513010a24011db89f5001676478b29/source/com/sap/xi/tf/_bpm_MAP_.java:104: cannot resolve symbol symbol : variable Name location: class com.sap.xi.tf._bpm_MAP_ if(Name.equals("A")) ^
C:/usr/sap/SXI/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Map0e513010a24011db89f5001676478b29/source/com/sap/xi/tf/_bpm_MAP_.java:105: cannot resolve symbol symbol : variable Node location: class com.sap.xi.tf._bpm_MAP_ result.addValue(Node); ^
C:/usr/sap/SXI/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Map0e513010a24011db89f5001676478b29/source/com/sap/xi/tf/_bpm_MAP_.java:105: cannot resolve symbol symbol : variable result location: class com.sap.xi.tf._bpm_MAP_ result.addValue(Node); ^
C:/usr/sap/SXI/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Map0e513010a24011db89f5001676478b29/source/com/sap/xi/tf/_bpm_MAP_.java:111: cannot resolve symbol symbol : variable Name location: class com.sap.xi.tf._bpm_MAP_ for(int i=0;i<Name.length;i++){ ^
C:/usr/sap/SXI/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Map0e513010a24011db89f5001676478b29/source/com/sap/xi/tf/_bpm_MAP_.java:112: cannot resolve symbol symbol : variable Name location: class com.sap.xi.tf._bpm_MAP_ if(Name.equals("B")) ^
C:/usr/sap/SXI/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Map0e513010a24011db89f5001676478b29/source/com/sap/xi/tf/_bpm_MAP_.java:113: cannot resolve symbol symbol : variable Node location: class com.sap.xi.tf._bpm_MAP_ result.addValue(Node); ^
C:/usr/sap/SXI/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Map0e513010a24011db89f5001676478b29/source/com/sap/xi/tf/_bpm_MAP_.java:113: cannot resolve symbol symbol : variable result location: class com.sap.xi.tf._bpm_MAP_ result.addValue(Node); ^ 8 errors
<b><u>can you pls help me to solve this as well:</u></b>
In the same blog
He has given Mapping details
(bpm_in_MT/Details/Name,bpm_in_MT/Details/Age)selectnodeifAsplitbyvaluebpm_outMT/info/Age.
He has not created Age field in bpm_in_MT but how is he mapping in the above way ?
Thanks,
ss
Message was edited by:
s s
Waiting for replies....................
Message was edited by:
s s
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.