Formulas include two types of variables that you must specify when you run a formula instance:
- Element Instance Variable: A variable that is replaced by a specific element when you run a formula instance.
- Value Variable: A variable that is replaced by a configurable value when you run a formula instance.
Formula variables are limited to the formula and cannot have the same name. However, you can name variables in different formulas with the same name like "originInstance" or "destinationInstance."
Formula Variable Scope
Formula variables contribute to the formula context and you refer to them by their Formula Step Variable Name. This name is always config.variableName
. So, if you create an Formula Instance Variable called originInstance
, you refer to it as ${config.originInstance}
. A Value Variable called objectName
is referred to as ${config.objectName}
.