XPath Functions

<< Click to Display Table of Contents >>

Navigation:  Low-code Process Automation > Studio Cloud - Authoring environment > Bizagi Studio > Process wizard > Business Rules > Bizagi Functions > Data Access through XPath >

XPath Functions

XPath provides a series of functions that help you perform calculations over collections in an easy and intuitive way.

These functions are available through the Expressions functions. These are NOT all the functions available, just ones that help you navigate and work Xpaths.

 

Basic Functions

 

FUNCTION

DESCRIPTION

SYNTAX

And

Compares two Booleans that can be XPath or the result of another XPath function. It returns true if they are both true. Otherwise it returns false.

<and(XPath,XPath)>

Avg

Obtains the average of elements in a collection. The attribute to average must be number or currency.

<avg(XPath)>

Count

Counts the number of elements in a collection.

<count(XPath)>

Empty

Returns True when a collection is EMPTY and False otherwise.

<empty(XPath)>

Equals

Compares two XPath arguments and returns true if they are equivalent. The parameters can be either XPath expressions or XPath functions.

<equals(XPath,XPath)>

Exist

Returns True when the collection has at least one element and False otherwise.

<exists(XPath)>

Greater than

Compares two XPath arguments and returns true if the first one is greater than the second one. It returns false otherwise. The parameters can be either XPath expressions or XPath functions that return integers, decimals, currency and dates.

<greater-than(XPath,XPath)>

Greater than or equals to

Compares two XPath arguments and returns true if the first one is greater than or equal to the second one The parameters can be either XPath expressions or XPath functions that return integers, decimals, currency or dates.

<greater-equals-than(XPath,XPath)>

Is Empty

Returns true if a string-type attribute is null or empty. Returns false otherwise.

<is-empty(XPath)>

Is False

Evaluates an XPath expression or the result of an XPath function. It returns true if the parameter is false. Otherwise it returns false.

<is-false(XPath)>

Is not Empty

Returns true if a string-type attribute is filled. Returns false otherwise.

<is-not-empty(XPath)>

Is not Null

Returns true if any attribute is filled (not null). Returns false otherwise.

<is-not-null(XPath)>

Is Null

Returns true if any attribute is null (not filled). Returns false otherwise.

<is-null(XPath)>

Is True

Evaluates an XPath expression or the result of an XPath function. It returns true if the parameter is true. Otherwise it returns false.

<is-true(XPath)>

Less than

Compares two XPath arguments and returns true if the first one is less than the second one. The parameters can be either XPath expressions or XPath functions that return integers, decimals, currency or dates.

<less-than(XPath,XPath)>

Less than or equals to

Compares two XPath arguments and returns true if the first one is less than or equal to the second one. The parameters can be either XPath expressions or XPath functions that return integers, decimals, currency or dates.

<less-equals-than(XPath,XPath)>

Like

Compares two parameters and returns true if the second one is included in the first one. The parameters can be string XPath or strings. When using fixed strings define them between single quotes (').

When any of the parameters is empty the function will return True.

<like(XPath,XPath)>

Max

Obtains the maximum value within the elements of a collection. The attribute must be number or currency.

<max(XPath)>

Min

Obtains the minimum value within the elements of a collection. The attribute must be number or currency.

<min(XPath)>

Not equals

Compares two XPath arguments and returns true if they are NOT equivalent. The parameters can be either XPath expressions or XPath functions

<not-equals(XPath,XPath)>

Or

Compares two Booleans  that can be XPath expressions or the result of another XPath function. It returns False when both parameters are false. Otherwise it returns True.

<or(XPath,XPath)>

Sum

Adds the elements of a collection. The attribute to add must be number or currency.

<sum(XPath)>


Last Updated 1/6/2022 11:33:51 AM