Advertisement
inderwin

Untitled

Apr 2nd, 2024
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.35 KB | None | 0 0
  1. import com.sap.gateway.ip.core.customdev.util.Message;
  2.     import java.util.HashMap;
  3.    
  4.     def Message processData(Message message) {
  5.        if (message != null) {      
  6.            messageLogFactory.getMessageLog(message)?.addAttachmentAsString('Initial payload:', message.getBody(String), 'text/plain')
  7.       }
  8.        return message;
  9. }
  10.    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement