Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 25, 2017 at 06:46 AM

    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

    Add comment
    10|10000 characters needed characters exceeded