UUID generation

Does anybody have a service that can generate
Universally Unique Identifier ?

// pipeline
IDataCursor pipelineCursor = pipeline.getCursor();
IDataUtil.put( pipelineCursor, “uuid”, com.wm.util.UUID.generate() );

The above sample shouldn’t really be used as it relies on an internal utility class which may not be able in the future.

A sample HOWTO has been posted on Advantage that details another approach:

Hi All,


pub.utils:generateUUID java service is now available in WmPublic package in webMethods 8, 9 and above.

1 Like


pub.utils:generateUUID service is available in 8.2 also.

Yes!.. I forgot to update this… :slight_smile: and it is not available in wM 7.x


Anyone knows if it´s possible generate an UUID by the 1 version (throw clock system)?
I think “pub.utils.generateUUID” generate by the 4 version (randomly).