The Expression Editor allows you to create a rule-based expression or calculation. The expression returns a value that can be a string, a number, a date, or a Boolean value depending on the expression you create. The returned value will be used as the input in the field where the expression is called by the Process Engine.
As a best practice, use calculation data items (instead of the Expression Editor) for expressions that change more than once during your process. You can then also reuse the calculation data item if you want to use the same expression multiple times in a process.
Note: |
Using a calculation data item for expressions will save you time in the future, if you need to modify the expression, then you only have to modify the expression in the data item and not the expressions in every field that uses the same expression. Unlike Expression Editor expressions, calculation data item expressions are validated while publishing. You will only notice an issue with an Expression Editor expression when you test the process and it returns an error. |
To use the Expression Editor, complete the following steps:
-
In the relevant field, click the drop-down arrow. A drop-down list of available editors is displayed.
-
Select Expression Editor. The Expression Editor icon is displayed next to the drop-down arrow.
-
Click the
Expression Editor icon. The
Expression Editor window is displayed.
Note: |
You can enter an expression in the field without opening the Expression Editor window if you know the expression to type. |
-
Type the appropriate expression.
-
Click OK. The expression is displayed in the field. The result of this expression will be used by the field.