The expression editor supports a variety of math, string, form expressions, and logical functions.
The Expression Editor is a powerful tool that allows you to edit various expressions in form controls or workflow actions.
Overview of expression elements
Yeeflow has different elements of the expression editor based on various scenarios. You may use the expression editor when you are intending to:
Various views-based scenarios
Create a rule or condition on a control
Execute a calculation control
Conduct a flow condition
Set a task title and assignee
Overview of Expression Elements
Yeeflow offers four expression elements that you can use in the Expression Editor.
Values
Expressions
Functions
Operators
In the original toolbar illustration, 123 enters a number, A enters text, Ω inserts a reference, and F selects a function. The toolbar also shows arithmetic operators, parentheses, and/or, comparisons, and true/false/[empty]. Availability depends on the configuration context; the tables and scenario notes below distinguish those contexts.
① Values
Use Values to enter a number with 123 or text with A. The editor also provides true, false, and [empty] for logical values and empty-value checks, such as rules for a Boolean Switch control.
Values | Description |
true | Return the logical value TRUE(YES), or determine if a value is TRUE(YES). |
false | Return the logical value FALSE(NO), or determine if a value is FALSE(NO). |
[empty] | Return the value as a null or determine if a value is null. |
② Expressions
You use Expressions to conduct logical rules and processing based on associated values or information. Yeeflow offers most of related expressions in workflow and applications and there are some different items based on both of them.
Workflow Related
Item | Form Designer | Workflow Task (differ based on Action Palette) | Flow Condition |
Workflow Variables (list all form controls) | ⭐ | ⭐ | ⭐ |
Instance Context | ⭐ | ⭐ | ⭐ |
Static Variables (application and task status) | ⭐ | - | - |
Task Context | - | ⭐ | ⭐ |
Current Task Context | - | ⭐ (task palette only) | - |
Constants (Task Outcomes) | - | ⭐ | ⭐ |
(system data) | ⭐ | ⭐ | - |
(system data) | ⭐ | ⭐ | ⭐ |
(system data) | ⭐ | ⭐ |
⭐ |
Application(Data List) Related
Please note: List workflow includes all workflow items as mentioned above.
Item | Calculated | List Form | Workflow Task & Flow Condition |
List Fields | ⭐ | ⭐ | ⭐ |
List Context | ⭐ | ⭐ | ⭐ |
Temp Variables | - | ⭐ | - |
(system data) | ⭐ | ⭐ | ⭐ |
③ Functions
A function uses arguments to calculate a result. An expression can use multiple predefined functions, including functions nested inside other functions.
You use Functions to create expressions that convert values. Yeeflow offers five types of functions by now.
④ Operators
Use Operators for arithmetic, comparisons, and logical combinations. For example, * calculates a product, >= compares values, and and combines conditions. Check the input types and the result required by the setting that uses the expression.
Various views-based scenarios
The available elements and editor layout depend on the setting you are configuring.
Ⅰ. Create a rule or condition on a control
You will be directed to expression editor when you're intending to create a rule/condition for a field control:
Dynamic Display Rules
A dynamic display rule determines how a control behaves when its conditions are met. Use the available expression elements to define its Rules.
The original Dynamic Display Rules example uses Workflow variables: Total Cost >= 1000 with the Show action. Check values below, equal to, and above 1000 when testing the rule.
Custom Validation
Custom Validation displays an error message under a bound field when its conditions are true. Use the available expression elements to define its Rules.
The original validation example compares Workflow variables: Total Cost > Workflow variables: Budget and displays The total cost is over budget! when the condition is met.
Actions
When you set actions that should be taken on events that meet your designated rule criteria. You will have full elements to define its Conditions and Values.
The original Actions illustration shows a Set Variable step with Execution Condition set to Workflow variables: Total Cost >= 1000. Continue next step when condition is not met is off and Single Value is selected. The Variable and Value fields are still blank. Set the intended variable and value before saving the step.
Ⅱ. Execute a calculation control
A calculation can be a simple value of some number or text words or a logic display value that you use expression elements to conduct operations.
When you add a calculation, you will have full elements to define a form variable, and you will have limited elements to define a list field.
Ⅲ. Conduct a flow condition
You can add some condition(s) on the flow direction. Then you will be directed to Condition Editor.
The Expression Editor in this section is different. It consists of three parts:
① Expressions only of Expression Editor
② A property or value type for the selected expression
③ Operators available for that property or value type
Original help-center Condition Editor choices, with Number selected. The full illustration compares Workflow variables: Budget as Number, using >= and 1000. Its comparison menu also offers ==, !=, >, <, and <=.
Please Note: Yeeflow does not offer predefined Functions in flow conditions.
Ⅳ. Set a task title and assignee
Yeeflow offers you a custom Task Title that is associated with Expression. It allows you to add any available expression as a part of your task title.
The original Task Title illustration combines the text Expense Approval (amount: , the Workflow variables: Total Cost reference, and ). Enter plain text on a single line, as the original Task Title setting indicates.
Yeeflow also provides an Expression option for selecting task assignees.
Select an available reference that returns the required assignee or assignees.
The original assignee example uses User → Expression and selects Instance Context → Applicant → Line Manager. The editor provides Insert and OK; the assignee dialog provides Add and Save. Confirm the chosen reference and check that it resolves to the intended person in a test workflow.
Please Note: Yeeflow does not offer the predefined Functions in task assignments.


