Variables in Workflows

<< Click to Display Table of Contents >>

Navigation:  Key Points >

Variables in Workflows

 

To make the production processing workflow more efficient and faster, it is important to understand how Variables are used within workflows. In g-Platform, there are two types of variables:

 

Local Variables – Defined within a workflow in g-Navigator.

Global Variables – Defined in the main g-Platform management window, in the Global Properties section.

 

Variables are typically implemented in the Module Properties section using the = and $ symbol for the Local Variables and % symbol for the Global Variabes. The = symbol is placed at the beginning of a parameter, and the variable name is enclosed within $ or % symbols inside the parameter value.

 

All parameters that use Variables are highlighted in purple.

 

It is also worth noting that combining both types of variables provides greater flexibility and enables the creation of more universal and reusable workflows.

 

Numerical Variables support basic arithmetic and mathematical operations:

 

Description

Example Syntax (% for Global, $ for Local)

Addition

=%a% + %b%

Subtraction

=%a% - %b%

Multiplication

=%a% * %b%

Division

=%a% / %b%

Power

=%a% ^ 2

Power function

=pow(%a%, 2)

Square root

=sqrt(%a%)

Absolute value

=abs(%a%)

Round to nearest integer

=round(%a%)

Round down

=floor(%a%)

Round up

=ceil(%a%)

Minimum value

=min(%a%, %b%)

Maximum value

=max(%a%, %b%)

Natural logarithm

=log(%a%)

Base-10 logarithm

=log10(%a%)

Exponential (e⁽ᵃ⁾)

=exp(%a%)

Sine

=sin(%a%)

Cosine

=cos(%a%)

Tangent

=tan(%a%)

Conditional expression

=if(%a%>0,%a%,0)

Limit value to range

=clamp(%a%,0,100)