Skip to main content

getUUID

A Workflow Engine function that generates a UUID in the 8-4-4-4-12 format (xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx) and stores it in the workflow context as workflowContext.uuid. Subsequent actions can use this value as a unique identifier.

This function is available as a feature of the Add-ons v2.7 download and later.

This function is available for event, alert, and Situation workflows.

Back to Workflow Engine Functions Reference.

Arguments

Workflow Engine function getUUID has no arguments.

Example

The following example demonstrates typical use of Workflow Engine function getUUID.

To make an event’s signature unique in an event workflow, set the following:

  • getUUID

  • appendText:

    • string : ::${workflowContext.uuid)

    • destination: signature

{"string":"::$(workflowContext.uuid)","destination":"signature"}

Given a workflowContext of:

{
    "uuid": "52dfeef2-523c-4d7f-987c-b58912890800"
}

And an event signature of:

{
    ...
    "signature" : "test"
    ...
}

We would obtain the following signature:

{
  ...
  "signature" : "test ::52dfeef2-523c-4d7f-987c-b58912890800"
  ...
}