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() );
pipelineCursor.destroy();

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:
http://advantage.webMethods.com/article/?id=1611983294

Hi All,

FYI

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

1 Like

Mahesh,

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

Hi!

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).

Thanks!