Skip to navigation

Experimental. For evaluation. Interfaces, configuration, and behavior may change incompatibly.

Shares values across functions within the current workflow context.

Prerequisites

  • None.

Setup

  • Loads automatically; no configuration required.

Globals module allows setting and getting global variables within a workflow context. This is useful for storing state that is shared across multiple functions in a workflow which includes the failure & cancel handlers.

Members

get

globals.get(key)

Get a global variable from the current workflow context. Returns an empty string if the key does not exist.

Parameters
keystringThe key to get the value for.
Returns
valueanyThe value of the key.

set

globals.set(key, value)

Set a global variable in the current workflow context. Returns the value of the key.

Parameters
keystringThe key to set the value for.
valueanyThe value to set.
Returns
valueanyThe value of the key.

unset

globals.unset(key)

Unset a global variable in the current workflow context.

Parameters
keystringThe key to unset the value for.