Skip to Content
0

HCP HCI Web UI: How to trace iFlow message payload?

Feb 25, 2017 at 05:51 AM

454

avatar image

I was wondering if one of the HCI experts could tell me if there is a way to trace and show the payload of iFlow messages via the Web UI?

I know you can do this in Eclipse, but it would be nice to be able to do it via the Web UI too.

Thanks,
Simon

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sriprasad Shivaram Bhat Feb 25, 2017 at 06:46 AM
3

Hello Simon,

Trace option is not ye available in WEBUI.As an alternative you can use below script to log the payload as attachment wherever you want like before map or after map.

import com.sap.gateway.ip.core.customdev.util.Message;
import java.util.HashMap;

def Message processData(Message message) {
                
                                def body = message.getBody(java.lang.String) as String;
                                def messageLog = messageLogFactory.getMessageLog(message);
                                if(messageLog != null)
                                {                              
                                messageLog.addAttachmentAsString("PayloadBeforeMap, body, "text/xml");
                                }                              
                
                return message;
}

Regards,

Sriprasad Shivaram Bhat

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks Sriprasad! That is what I suspected, thanks for the script, that will help.

0