cancel
Showing results for 
Search instead for 
Did you mean: 

get/set message interface name in adapter module

0 Kudos

Hello,

From an adapter module, I'd like to get or even set the Message Interface name of the message that is handed over to the function "process" of the adapter module.

I've got two context's, sessioncontext and modulecontext. With both contexts, you can get values from that context. I'm not sure which context has the message interface name of the message currently being processed, and I'm also not sure what that value is called (moduleContext.getContextData("name");).

The reason for this is that sometimes you'd like to do something different depending on the type of message being processed.

If anyone knows how to do this, I'd be glad to hear.

Thanks in advance for any advice!

Greetings, Walter.

Accepted Solutions (0)

Answers (1)

Answers (1)

DG
Active Contributor
0 Kudos

Hi Walter,

It is fairly easy to get the interface name. When you have extracted the XIMessage there is a parameter, which allows you get the Action, where you can get the interface name.

I have tried to change the interface name. You need to create a new message an copy the content from the old message over to this. This is a little tricky and I'm not able to get any code samples for you.

/daniel