Set one workflow variable

Set one workflow variable

The advanced set meta data workflow component, Set one workflow variable, sets/defines a workflow variable. This can be used later in the workflow and also in a template in the designer.

 

The variable can be referenced in XPath expressions with a preceding $-sign.

If you want to create or update multiple workflow variables, then you should consider the Set multiple workflow variables component instead.

Please notice the limitation regarding workflow variables and booleans.

 

The component has these parameters:

 

  1. Variable name
    The name of the workflow variable, that you want to either create or assign a new value to. The variable name is to be inserted without the dollar sign. You can click the magnifying glass if you want to refer to a predefined variable. You should normally stick with the usage above where the variable name is written as a fixed text, but it is actually possible to state the variable name as an XPath expression like below (if you click the T-icon on the right): 

    In the example above the Xpath expression selects the variable named, hello and insert the value abc into that variable.
  2.  Variable value
    The value to assign to the workflow variable. This can either be a constant like above or an XPath expression. You need to click the T icon to the right in order to enter an XPath expression.