on 06-05-2013 1:53 PM
Hello,
I've a message mapping with two source message and one target message.
Also i've use a UDF to get the message ID. This UDF fails. If i modified the mapping and delete one source message the UDF works OK (only when exist one unique source message).
Why?, How can i do it?
The code of UDF is:
String MessageID;
java.util.Map param = container.getTransformationParameters();
MessageID = (String) param.get (StreamTransformationConstants.MESSAGE_ID);
return MessageID;
Regards,
Silvia
Hi Silvia,
AFAIK, Dynamic configuration parameters and Stream transformation parameters don't work in multi-mapping scenario. If in case you do want to get hold of message id for the 2 messages, I suggest you do another graphical mapping (separate for both) messages types and populate an intermediate structure with the message id and use the value in multi-mapping later.
Hope it helps!
Ambrish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Two source messages will have two message ID's and Dyncamic configuration dont work in multimapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.