on 2023 Mar 10 2:37 PM
Hi Florian,
you can at least read the ID from the message history to dynamically set the MPL name. A little bit ugly, but for me it works.
def messageHistories = message.getProperty(Exchange.MESSAGE_HISTORY).join(',')
def lastCallActivity = messageHistories.substring(messageHistories.lastIndexOf("CallActivity"), messageHistories.length());
def activity = lastCallActivity.substring(0, lastCallActivity.indexOf("]"));
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I created a influence request. Please feel free to submit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any update on this.
Hi 7a519509aed84a2c9e6f627841825b5a,
i would like to use the name of the current step for the name of the attachment. During development we often use this to log the content of a response after request-reply. If we have further steps we cannot identify which attachment/log belongs to which call Then we first need to look into the log.
Otherwise we would need to edit the script for each log or add a content modifier to set the name via property.
def Message plain_text(Message message) {
messageLogFactory.getMessageLog(message)?.addAttachmentAsString(message.getCurrentStepName(), message.getBody(String), 'text/plain')
return message
}
Thanks for your help
Regards Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's an interesting question, Florian. I've had three ideas so far, but unfortunately none of them worked 😄 I haven't given up, though.
User | Count |
---|---|
69 | |
11 | |
10 | |
10 | |
9 | |
7 | |
7 | |
7 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.