cancel
Showing results for 
Search instead for 
Did you mean: 

How to read MessageID from BPM.

Former Member
0 Kudos

Dear All.

We got a requirement to read XI messageID dynamically and mapped it to one of the field at target side. Up on checking the SDN i found the below code to load messageID to a field.

java.util.Map map = container.getTransformationParameters();

String MSGID = (String)map.get(StreamTransformationConstants.MESSAGE_ID);

return MSGID;

In simple message mapping the code is working absolutly fine but the output am getting value"NULL" when i used the same message mapping in a BPM. is there any changes required in coding or is there any other way to follow to get MessageID.

Please suggest!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

if you want the message id to generated in the bpm step you can use container step and can get the message id assigned to the local variable..via context object..

but afraid how to pass to the target mapping field..

Rajesh