If you have the EDI Module: Core Component you can use wm.b2b.edi.util:ctlNumber as a sequence number generator. From the docs: “Creates a nine-digit number, based on a two-digit day, two-digit hours, two-digit minutes, and a random three-digit system count (100-999).”
If this isn’t sufficient, or you don’t have the EDI Module, writing a simple Java service to do this would be fairly trivial
#webMethods#webMethods-General#Integration-Server-and-ESB