简体   繁体   中英

Generating a GUID/UUID in KRL

KRL中是否有内置函数用于生成UUID的GUID(或类似的东西)?

I've created a module that wraps a webservice that might hold you over: UUID Module

Use like so:

ruleset a8x165 {
    meta {
        name "UUID Module Example"
        description <<
            Example use of the UUID Module
        >>
        author "Sam Curren"
        logging off
        use module a8x164 alias uuid
    }

    dispatch {}

    global {}

    rule first_rule {
        select when pageview ".*" setting ()
        pre {
            testuuid = uuid:new_uuid();
        }
        notify("Hello World", "This is a UUID: #{testuuid}");
    }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM