cancel
Showing results for 
Search instead for 
Did you mean: 

How to output the message id via mapping?

Former Member
0 Kudos

hello

Is there any function can output the message ID via message mapping?

Brand

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

Answers (1)

Answers (1)

Former Member
0 Kudos

hi brand,

1)and this code absolutely works fine...

<code>

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

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

return msgid;

</code>

or

2) to retrieve your MessageID using BPM

1) Go to your BPM. Create a new Containervariable (simple type)

2) Insert a new Container Operation in your BPM.

3) In target: select your container variable (simple type) that u have created in step1.

Operation: Assign

Expression : In the expression editor, choose interface variable (radio button)> then choose context object (radio button)> then the 6th Value in the drop down combo is your MessageID.

Then to access this value in your message mapping directly.

Refer to: /people/michal.krawczyk2/blog/2005/03/04/globalcontainer--in-graphical-mapping-xi to access the contier variables in message mapping.

Note: reward points if solution found helpfull

Regards

Chandrakanth.k