Categories
#Expression #FEEL

Supported FEEL functions

The table below lists the functions supported in FEEL by various versions of the DCR Engine and KMD WorkZone.

If you need a function that is listed, but not available in your version of KMD WorkZone, write to DCR support, where we may be able to find a solution for your problem based on
what you do have available.

name engine version WorkZone version description example
abs 5.8.0 2024.5
append 4.8.0 2024.3 return list with items appended
ceiling 4.10.0 2024.3
concatenate 4.8.0 2024.3 return the concatenation of the argument lists
contains 4.16.0 2024.3 does string contain match? contains("foobar","oba") = true
count 4.8.0 2024.3 return the number of elements in list
date 4.13.2 2024.3
datediff 3.11.0 2020.1 return the duration from date1 to date2
day of week 5.8.0 2024.5 return the day of the week day of week(date(2023,1,11)) = Wednesday
day of year 5.8.0 2024.5 returns the day of the year day of year(date(2023,3,10)) = 69
distinct values 5.8.0 2024.5 returns a list with all distinct values in the list distinct values([1,2,3,4,5,3,2]) = [1,2,3,4,5]
duplicate values 5.8.0 2024.5 returns a list with all duplicate entries in the list duplicate values([1,2,3,4,5,3,2]) = [3,2]
duration 4.13.2 2024.3 interpret string as a duration or fail
ends with 5.8.0 2024.5 checks if a string ends with a certain string ends with("foobar", "ar") = true
even 5.8.0 2024.5 checks if a number is event even(4) = true
exp 4.13.2 2024.3 return e to the power of n
flatten 5.8.0 2024.5 flattens a list flatten([[1,2],[[3]],4]) = [1,2,3,4]
floor 4.10.0 2024.3
from base64 5.21.0 n/a returns the decoded string from a base64 encoded string from base64("aGVsbG8gd29ybGQ=") = "hello world"
index 5.0.0 2024.3 return the k'th element of list
index of 5.7.0 2024.3 return all indices of list where item occurs
insert before 5.8.0 2024.5 insert the item into the list before the index insert before([1,2,3,4], 3, 5) = [1,2,5,3,4]
instance of 4.16.2 2024.3 is x an instance of type? instance of (2+4, number) = true,
instance of (2+4,String) = false,
instance of (2+"4",String) = true
is empty 5.10.15 n/a return true if the list is empty is empty ([]) = true
is empty([1]) = false
is empty([1,3,2]) = false
json 4.12.2 2024.3 follow path through list json("A[0].B", [ ["A", [ ["B", 1] ] ] ]) == 1
json get 5.9.0 2024.5 follow path in json, coerce result to dcr value, and return that value
json get bool 5.0.3 2024.3 return value at the end of path in json as boolean or fail
json get field 5.0.3 2024.3 retrieve field at end of path as string
json get float 5.0.3 2024.3 return value at the end of path in json as float or fail
json get int 5.0.3 2024.3 return value at the end of path in json as integer or fail
json get keys 5.0.3 2024.3 interpret json object as list of keys
json get list 5.0.3 2024.3 interpret json array as list
json get string 5.0.3 2024.3 return value at the end of path in json as string or fail
last day of month 5.8.0 2024.5 return the last day of the month for a give date last day of month(date(2019,3,10) = date(2019,3,31)
list contains 4.8.0 2024.3 does list contain item?
log 4.13.2 2024.3 return natural logarithm of n
lower case 5.8.0 2024.5 convert the string to lower case lower case("This IS ok") = "this is ok"
month duration 5.7.0 2024.3 compute duration in months from date1 to date2
month of year 5.8.0 2024.5 returns the month of the year month of year(date(2019,8,17)) = 8
months duration 5.7.0 2024.3 compute duration in months from date1 to date2
number 3.10.0 2020.1 interpret string as number number("24") = 24
odd 5.8.0 2024.5 checks if a number is odd odd(3) = true
remove 4.15.0 2024.3 remove element at position index from list
replace 5.21.0 n/a
reverse 5.8.0 2024.5 reverse the list reverse([1,2,3,4]) = [4,3,2,1]
round 4.10.0 2024.3
sort 5.7.0 2024.3 sort list acendingly
split 5.8.0 2024.5 Split the string on the delimiter split("fubar", "b") = ["fu";"ar"]
sqrt 4.13.2 2024.3 return the square root of x
starts with 5.8.0 2024.5 checks if a string starts with a certain string starts with("foobar", "fo") = true
string 3.10.0 2020.1 convert x to string string(24) = "24"
string join 5.7.2 2024.5
string length 4.13.2 2024.3 return the length of string string length("foobar") = 6
sublist 5.8.0 2024.5
substring 3.10.0 2020.1
substring after 5.0.1 2024.3 return the part of string succeeding last occurrence of match substring after("this is ok","is") = " ok"
substring before 5.0.1 2024.3 return the part of string preceding first occurrence of match substring before("this is ok","is") = "this "
to base64 5.21.0 n/a encode the string into its base64 representation to base64("hello world") = "aGVsbG8gd29ybGQ="
union 5.0.3 2024.3 concatenate all sub-lists of list, removing duplicates
upper case 5.8.0 2024.5 convert the string to upper case upper case("this IS ok") = "THIS IS OK"
week of year 5.8.0 2024.5 return the week of the year based on date (Gregorian calendar definition of 'week') week of year(date(2019,9,17)) = 38
workday 4.3.0 2020.1 return a working-day duration of k days
xml get bool 5.0.3 2024.3 return value at the end of xpath in xml as bool or fail
xml get float 5.0.3 2024.3 return value at the end of xpath in xml as double or fail
xml get int 5.0.3 2024.3 return value at the end of xpath in xml as integer or fail
xml get list 5.0.3 2024.3 return value at the end of xpath in xml as list of xml (strings) or fail
xml get string 5.0.3 2024.3 return value at the end xpath in xml as string or fail
xml get xml 5.0.3 2024.3 return value at the end of xpath in xml as string or fail
year and month duration 5.7.0 2024.3 compute duration from date1 to date2 in years and months
year and months duration 5.7.0 2024.3 compute duration from date1 to date2 in years and months
year duration 5.7.0 2024.3 compute duration in years from date1 to date2
years and month duration 5.7.0 2024.3 compute duration from date1 to date2 in years and months
years and months duration 5.7.0 2024.3 compute duration from date1 to date2 in years and months
years duration 5.7.0 2024.3 compute duration in years from date1 to date2

Related Release notes

Release 7.6.4

  • Engine now 5.29.0

Related Videos

No related videos found.

Related Examples

Related Articles

No related articles found.