If you do anything to the message I don’t think it will be reflected in what the Xlate sees as the message is already parsed.
So the most useful thing I think one could do is to just search the message for some string or such but changing the message at this point I don’t think will accomplish anything.
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.
Best way to do this is to have a pre-xlate (or elsewhere) UPoC that puts the message content in USERDATA.
Then you can use xpmmetaget on USERDATA to retrieve the original message content.
There’s also a check box in on the route properties that will do this storage for you (Store original message in metadata for downstream processing) — this was added in 6.1 or 6.2.
Also note now your message will be approximately 2 times the size (message plus metadata).
Should you go this route I would suggest you consider a post Xlate Proc to remove the User Data to shrink the message size for Cloverleaf.
I am not sure what you are attempting but I can’t think of too many reasons this would be useful inside an Xlate. Most condition checking, string manipulation, etc. can be accomplished with less impact either natively within the Xlate with no Tcl or in the Xlate with little additional Tcl.
So if you would share what you are doing I would be enlightened to understand a reason to do this.
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.
Author
Replies
Viewing 7 reply threads
The forum ‘Cloverleaf’ is closed to new topics and replies.