Many thanks John,
Your reply has proved to be very helpful for me.
By the way, instead of a Groovy script, one can use directly the following standard java function to generate a random MessageID (GUID/UUID):
${=java.util.UUID.randomUUID()}
Regards,
Alejandro