on 01-22-2019 11:02 PM
Hello Arnab,
Above option is not available in Simulate option of Message Mapping since we dont have any explicit option to set the trace level.
Regards,
Sriprasad Shivaram Bhat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arnab,
Currently groovy scripts support the field and payload based, but the UDF in mapping doesnt support. As an alternative, if you want to know the value of certain field then create header with Xpath in content modifier then read it in the Groovy Script that will be visible in the MPL.
def headers= displayMaps("##Headers:", message.getHeaders())
def properties = displayMaps("##Properties:", message.getProperties())
def messageLog = messageLogFactory.getMessageLog(message);
messageLog.setStringProperty("NametoSeeInMPL", value)
Thanks and Regards,
Vijay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No , this is not what I am looking for . I wish to set up a debugger at the groovy script level itself . The above are payload based , what I am looking at is field based !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You can configure it in the Monitoring view:
Also, you could save the Message content as attachments of the process (not good performance, so use it only in dev/test):
def Message saveMessageContent(Message message) {
def displayMaps = { String mapName, Map map ->
StringBuilder sb = new StringBuilder()
sb.append(mapName).append("\n")
map.each { key, value -> sb.append(key).append(" = ").append(value).append("\n") }
return sb.toString()
}
def headers = displayMaps("##Headers:", message.getHeaders())
def properties = displayMaps("##Properties:", message.getProperties())
def body = message.getBody() as String; // java.lang.String
def messageLog = messageLogFactory.getMessageLog(message);
if(messageLog != null){
messageLog.addAttachmentAsString("MessageBody", body, "text/plain");
messageLog.addAttachmentAsString("MessageHeaders", headers, "text/plain");
messageLog.addAttachmentAsString("MessageProperties", properties, "text/plain");
}
return message;
}
Best regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.