Variables

You can map variables and use variables in expressions. Variables store values that the flow can use at run time in addition to stream data. See below for an introduction to the different kinds of variables in the Flow Service. See the following pages for specifics.

See below to find where to define each variable type or to start from the scenarios you use variables in:

Getting, Setting, and Creating Variables

Start with the following list to find where to create variables:

In the following sections, you can find standard procedures to get and set variables:

Note

Note the following conditions for a variable name to be valid:

  • You can't use the following characters:

    !\"#$%&'()=~^|\\@`+*;:{}[],.<>/?\t 
  • You can't use a number as the first character.

  • There isn't a limit to the length of the name.

  • Variable names are case sensitive.

  • You can use single-byte spaces and non-ASCII characters.

You can dynamically get and set variables using a Mapper component or expressions.

Mapping Values

You can use a Mapper component to get and set different types of variables:

Referencing Variables in Expressions

You can use variables to build expressions. You can use expressions to set component properties and define conditional expressions for conditional layers in the Mapper.

You can use autocomplete to avoid errors: Type "$" and select an object. Type "." and select an attribute. You can query the following objects to reference variables.

Variable Variable reference
Flow variable $flow.<Flow variable name>
External variable set $exvar.<External variable set name>.<variable name>
System variable $system.<System variable name>
Stream variable $stream.<Stream variable name>

Or, use a getter to reference a non-ASCII variable name:

$flow.get("var1")

See the user's guide for procedures:

Automatically Updating References

After you change a variable name, the Flow Designer automatically updates the references in the following places:

The Flow Designer won't automatically update the references in the following cases:

To the top of this page