Using Variables in Condition Expressions

In the conditional expression, there are three types of map variables available to be used within an expression:

  • Runtime variables

  • Token variables

  • Global variables

Runtime Variables

runtime['<argument-name>']

Is a map variable that holds runtime arguments specified for the pipeline containing an instance of the conditional plugin. If the conditional expression specifies a runtime argument that is not present, then deployment or validation of the pipeline would be terminated with an exception.

All arguments should be specified within a quote '

Token Variables

token['<plugin-name>']['input'|'output'|'error']

Is a multi-map variable that contains three metrics for each plugin predecessor to the instance of a conditional plugin in the DAG.

Global Variables

global['pipeline'|'namespace'|'logical_start_time'|'plugin'])

Is a map variable containing general information from the pipeline.

Created in 2020 by Google Inc.