Functions in Language Expressions
Use functions in expressions in the format where the function's name is given first followed by the expression in brackets. Separate arguments by comma. All functions are case sensitive and must be used in the configuration as described in the "Language expression" topic.
toNumber("string expression")
if(activity.PROP_A1 > 10, 15, activity.PROP_A2 + 200)
toLowerCase(activity.PROP_A1) - is correct
tolowercase(activity.PROP_A1) - is incorrect
‘if’ function
The function consists of three attributes separated by comma. The function represents this logic: if attribute 1 is <some value> then set <some value> else set <other value>. Example: if (activity.PROP_A1 > 0,15, activity.PROP_A2+200)
`now` function
DATE - now("yyyy/MM/dd")
DATETIME - now("yyyy/MM/dd hh:mm:ss tt")
TIME - now("HH:mm:ss")
`toNumber` and `toString` functions
toNumber("12345")
toNumber(activity.PROP_A1)
toString(1245)
toString(activity.PROP_A2)
'concat' function
concat("abc", 15,"cde")
concat(activity.PROP_A1,activity_PROP_A2)
`toLowerCase` and `toUpperCase` functions
toLowerCase("ABCD")
toLowerCase(activity.PROP_A1)
toUpperCase("abcd")
toUpperCase(activity.PROP_A1)
'empty' function
empty(activity.PROP_A1)
if(empty(activity.PROP_A1),1000,activity.PROP_A2 +200)
NOT empty(activity.PROP_A1)
Activity type groups
activity.awortype_group = "internal"
activity.aworktype_group IN ('customer', 'maintenance')