-
Notifications
You must be signed in to change notification settings - Fork 209
PM4 Expression Language
Processmaker FEEL component uses a specific syntax which is based on the Symphony Expression Language. In this document, you can find all supported syntaxes:
A text is a series of characters, that can be specified in two different ways:
This way to specify a text is to enclose it in single quotes (the character ').
'text'
To specify a literal single quote, escape it with a backslash ().
'I\'ll be back'
To specify a literal backslash, double it (\)
'File path C:\\ProcessMaker'
You could also specify a text enclosing it in double quotes (the character ").
"text"
Numbers integers or decimals can be specified in decimal base (10)
1000
Decimal or floating number
100.01
Negative number:
-10
Sum:
Liabilities + Equity
Subtraction:
Revenues – Expenses
Multiplication:
Sales * Profit
Division:
Costs / Price – VCPU
age in 18..45
Is an ordered list of elements (numbers, texts, booleans, objects, ...) separated by commas (,)
[1, 2, 3, 4]
["engineering", "marketing"]
An object is a composed data type which stores information organized by properties.
Properties of an object can be accessed by using the dot (.)
For example:
account.number
account.type
account.balance
{number:"23423422918", type:"Checking", balance: 102929000.00}
A boolean expresses a truth value (true or false)
For true:
true
For false:
false
And operator:
approved and signed
Or operator:
approved or signed
Negation operator:
not approved
group in ["engineering", "marketing"]
group in allowed_groups
group not in restricted_groups
progress == 100
progress < 100
progress > 50
progress <= 75
progress >= 25
color == "lightblue"
color matches "/light/"
firstname ~ " " ~ lastname