Skip to Content

get "MessageDirection" in Java map?

Dear experts,

I have been following this blog:
https://blogs.sap.com/2013/07/14/write-mapping-message-to-rwb-audit-log-when-ico-is-used-in-pi-730/

It works for me but I have one question related to the "MessageDirection":
in the code provided it is hardcoded for the "key"
key = new MessageKey(messageid, MessageDirection.OUTBOUND);

Can I somehow retrieve the MessageDirection in this Java method?

In adapter modules I can get the MessageDirection from the Message object. But is this possible in that context?
I have the MessageID available and thought I could somehow create a Message object and then get the MessageDirection - but I do not see a way to do this.


Thank you for your help,
Peter

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 25, 2017 at 03:16 PM

    Hi Peter!

    I may be wrong but it seems to me that direction is always set to outbound for ICo, since only the sender queues are used.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded