cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Sriprasadsbhat
Active Contributor

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

Former Member
0 Kudos

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

Answers (0)