on 10-28-2015 11:17 AM
Hello Deva,
The code for retrieving message ID is correct. How do you test the mapping and observe no message ID has been returned by your UDF? Message ID value is assigned at runtime, so you have two options how you can check that your UDF works well:
1. Execute the scenario by sending a message (message ID will be generated and assigned at runtime) and then checking mapping output;
2. In test message mapping in ESR, provide a dummy message ID in header parameters section (by default, it is empty). This can be done on the tab "Test" of the message mapping, by navigating to the tab "Parameters" in the bottom, then filling respective header parameter for message ID:
Regards,
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deva,
Try to add a trace statement... right after execute your scenario one more time and check what your are getting...
import com.sap.aii.mapping.api.AbstractTrace;
trace = (AbstractTrace)map.get(StreamTransformationConstants.MAPPING_TRACE);
trace.addInfo("My MessageID = " + MessageID);
Regards,
Diego
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Deva,
Code seems to be fine.
Are you sure in run time value is not picked?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.