GETVARIABLE

The GETVARIABLE function retrieves the value associated with a flow variable.

This function retrieves the value of a flow variable defined for a process flow. It returns the value of the variable. If the variable cannot be found, the function returns the optional default value to the caller, or an empty value if a default value is not specified. The value associated with a special (reserved or internal) flow variable can be retrieved with this function for further transformation purposes.

Syntax:
GETVARIABLE ( single-text-expression [, single-text-expression] )
Meaning:
GETVARIABLE ( variable_name [, default_value] )
Returns:
A single-text-item.

Examples

  • flowlib->GETVARIABLE( "interest.rate", "10" )

    Retrieves the value of the flow variable interest.rate, or returns the default value of 10 to the caller if the variable could not be found.

  • flowlib->GETVARIABLE( "_FLOWINSTANCE_" )

    Special flow variables start and end with underscore. Returns the value of the special (reserved or internal) flow variable, _FLOWINSTANCE_ to the map.