Click or drag to resize

Aloe.EnterpriseOne.Model.Systems.Bpm.ExpressionCompiler.Operators Namespace

 
Classes
  ClassDescription
Public classAddDaysOperator
Represents ADDDAYS operator, which adds the specified number of days to a date. Format: ADDDAYS(date, num_days) Result: date.AddDays(num_days)
Public classAddOperator
Represents ADD operator, which adds its arguments. Format: ADD(param1, param2) Result: param1 + param2
Public classAndOperator
Represents AND operator, which performs boolean AND over its parameters.

Format: AND(condition1[, condition2[, condition3]])

Result: condition1 [&& condition2 [&& condition3]]

Public classCastOperator
Represents CAST operator, which casts a parameter to a type.

Format: CAST(param, type)

Result: (type)param

Public classCeilingOperator
Represents CEILING operator, which returns the smallest integral value that is greater than or equal to the specified decimal number

Format: CEILING(d)

Result: Math.Ceiling(d)

Public classConcatOperator
Represents CONCAT operator, which concatenates strings. Format: CONCAT(str1, str2) Result: string.Concat(str1, str2)
Public classConvertOperator
Represents CONVERT operator, which converts its input to the specified type.

Format: CONVERT(param, new_type)

Result: Convert.ChangeType(param, new_type)

Public classCountOperator
Represents the COUNT operator, which returns the number of items in a list

Format: COUNT(LIST)

Result: integral number of items

Public classDivideOperator
Represents the DIVIDE operator, which divides a its parameters.

Format: DIVIDE(param1, param2)

Result: param1 / param2

Public classEqualOperator
Represents the EQUAL operator, which is equality comparison.

Format: EQUAL(param1, param2)

Result: param1 == param2

Public classFilterOperator
Represents FILTER operator, which filters a list according to a condition.

Format: FILTER(list, condition)

Result: list.Where(x => condition(x))

Public classFirstOperator
Represents the FIRST operator, which returns the first element from a list.

Format: FIRST(list)

Result: list.FirstOrDefault()

Public classFloorOperator
Represents FLOOR operator, which returns the smallest integer less than or equal to the specified decimal number.

Format: FLOOR(num)

Result: Math.Floor(num)

Public classFormatStringOperator
Represents the FORMATSTRING operator, which formats the supplied input variable with the specified format.

Format: FORMATSTRING(input_var, format_string)

Result: string.Format($"\{0:{format_string}\}", input_var)

Public classGetObjValueOperator
Represents the GETOBJVALUE operator, which returns the value of a data attribute of an object.

Format: GETOBJVALUE(obj, attrib)

Result: obj[attrib]

Public classGetValueOperator
Represents the GETVALUE operator, which returns the value of its first parameter.

Format: GETVALUE(param)

Result: param

Public classGteOperator
Represents the GTE operator, which is greater than or equal comparison.

Format: GTE(param1, param2)

Result: param1 >= param2

Public classGtOperator
Represents the GT operator, which is greater than comparison.

Format: GT(param1, param2)

Result: param1 > param2

Public classIifOperator
Represents IIF operator, which performs functional if-then-else.

Format: IIF(condition, if_true, if_false)

Result: condition ? if_true : if_false

Public classIncnumOperator
Represents the INCNUM operator, which increments is first parameter, a string

Format: INCNUM('AA01')

Result: 'AA02'

Public classInOperator
Represents the IN operator, which returns whether an object is in a list.

Format: IN(list, obj)

Result: list.In(obj)

Public classLeftOperator
Represents the LEFT operator, which returns the specified number of left-most characters from the supplied string.

Format: LEFT(str, num_chars)

Result: str.Substring(0, Math.Min(num_chars, str.Length))

Public classLenOperator
Represents the LEN operator, which returns the length of a string.

Format: LEN(str)

Result: str.Length

Public classLikeOperator
Represents the LIKE operator, which matches an input against a pattern, using LIKE semantics.

Format: LIKE(input, pattern)

Result: input.LIKE(pattern)

Public classListOperator

Represents the LIST operator,

Returns a list with the string values of the specified attribute of the list of objects.

The values in the created list are separated by a separator.If there is no indicated separator, then the list is separated with ", " (comma + space) by default.

Format: LIST(list, attribute, separator (optional))

(attributeValue1, attributeValue2, ...)

Public classLteOperator
Represents the LTE operator, which is less than or equal comparison.

Format: LTE(param1, param2)

Result: param1 <= param2

Public classLtOperator
Represents the LT operator, which is less than comparison.

Format: LT(param1, param2)

Result: param1 < param2

Public classMultiplyOperator
Represents the MULTIPLY operator, which multiplies a its parameters.

Format: MULTIPLY(param1, param2)

Result: param1 * param2

Public classNotOperator
Represents the NOT operator, which performs a boolean negation.

Format: NOT(param1)

Result: !param1

Public classOrOperator
Represents OR operator, which performs boolean OR over its parameters.

Format: OR(condition1, condition2)

Result: condition1 || condition2

Public classPosOperator
Represents the POS operator, which returns the position of a term within a string.

Format: POS(str, term)

Result: str.IndexOf(term)

Public classRegexOperator
Represents the REGEX operator, which matches an input against a pattern, using REGEX semantics.

Format: REGEX(input, pattern)

Result: Regex.IsMatch(input, pattern)

Public classReplaceOperator
Represents the REPLACE operator, which replaces all occurrences of a term within a string with another term.

Format: REPLACE(str, term, new_term)

Result: str.Replace(term, new_term)

Public classRightOperator
Represents the RIGHT operator, which returns the specified number of right-most characters from the supplied string.

Format: RIGHT(str, num_chars)

Result: str.Substring(str.Length - Math.Min(num_chars, str.Length))

Public classRoundOperator
Represents ROUND operator, which rounds a decimal value to the nearest integral value.

Format: ROUND(number, precision = 0)

Result: Math.Round(number, precision)

Public classSelectOperator
Represents the SELECT operator, which retrieves data from the database.

Format: SELECT(repository, clauses)

Result: Transaction.Query<repository>().clauses.Take(MaxQueryRows)

Public classSortOperator
Represents the SORT operator, which sorts its input sequence.

Format: SORT(list, attribute, sort_order: ASC|DESC)

Result: list.OrderBy[Descending](x => x[attribute])

Public classSubstringOperator
Represents the SUBSTRING operator, which returns a sub-string of a string.

Format: SUBSTRING(str, start, length)

Result: str.Substring(start, length)

Public classSumOperator
Represents the SUM operator, which computes the sum of values in a sequence.

Format: SUM(list, attribute)

Result: list.Sum(e => e[attribute])

Public classTodayOperator
Represents the TODAY operator, which returns the current date.

Format: TODAY

Result: DateTime.Today

Public classToLowerOperator
Represents the TOLOWER operator, which returns a lowercase version of the input string.

Format: TOLOWER(str)

Result: str.ToLowerInvariant()

Public classTopOperator
Represents the TOP operator, which returns the specified number of elements from the start of a sequence.

Format: TOP(count, list)

Result: list.Take(count)

Public classToUpperOperator
Represents the TOUPPER operator, which returns an upper-case version of the input string.

Format: TOUPPER(str)

Result: str.ToUpperInvariant()

Public classWhereOperator
Represents the WHERE operator, which is a clause, filtering a sequence.

Format: WHERE(condition1[, condition2[, condition3]])

Result: context.Where(e => conditon1(e))[.Where(f => conditon2(f))[.Where(g => condition3(g))]]