cancel
Showing results for 
Search instead for 
Did you mean: 

mapping Message ID when more one source message

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

ambrish_mishra
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Two source messages will have two message ID's and Dyncamic configuration dont work in multimapping.