Returns proxy level of the record.
Parameters:
Throws:
Returns true if the record is proxy, false otherwise.
Parameters:
Throws:
Merges changes from the proxies to the proxied records. It returns proxied records with applied changes.
Parameters:
Throws:
Merges changes from the proxies to the proxied records. It returns proxied records with applied changes.
Parameters:
Throws:
Merges changes from the proxies to the proxied records. It merges changes from all proxies that can be accessed from the record and has same proxy level. It returns proxied records with applied changes.
Parameters:
Throws:
Merges changes from the proxies to the proxied records. It merges changes from all proxies that can be accessed from the record and has same proxy level. It returns proxied records with applied changes.
Parameters:
Throws:
Merges changes from the proxies to the proxied records. It returns proxied records with applied changes.
Parameters:
Merges changes from the proxies to the proxied records. It returns proxied records with applied changes.
Parameters:
Merges changes from the proxies to the proxied records. It merges changes from all proxies that can be accessed from the record and has same proxy level. It returns proxied records with applied changes.
Parameters:
Merges changes from the proxies to the proxied records. It merges changes from all proxies that can be accessed from the record and has same proxy level. It returns proxied records with applied changes.
Parameters:
Creates a proxy without proxied record. It can be used only for shared records. When merged a shared record is created.
Parameters:
Throws:
Creates change proxies on records from the collection and change proxies for values referenced by named properties. The proxy objects keeps changes that should be executed on the record.
Parameters:
Throws:
Creates change proxies on records from the collection and change proxies for values referenced by named properties. The proxy objects keeps changes that should be executed on the record.
Parameters:
Throws:
Creates a change proxy on the record and change proxies for values referenced by named properties. The proxy objects keep changes that should be executed on the record.
Parameters:
Throws:
Creates a proxy without proxied record. It can be used only for shared records. It creates proxy on the specified level and all proxies between level 1 and the target level.
Parameters:
Throws:
Creates change proxy for all object referenced by the property and sets the proxy values to the property.
Parameters:
Throws:
Returns a collection created by appending the specified elements to the end of the collection parameter. The original order of the added elements is preserved also in the returned collection. If the input collection is a set, the returned type is Set. If the input collection is a list, the returned type is List.
Parameters:
Throws:
Returns a map created as union of keys and their respective values from both of the specified maps. If a key is present in both maps, its value is set to the value of the key specified by the right map.
Parameters:
Throws:
Returns a list created by appending the specified elements (given as a collection) at the end of the list. The original order of the added elements is preserved also in the returned list.
Parameters:
Throws:
Returns a set created by appending the specified elements (given as a collection) at the end of the set. The original order of the added elements is preserved also in the returned set.
Parameters:
Throws:
Returns a collection created by removing all occurrences of the elements from the collection. If the input collection is a set, the returned type is Set. If the input collection is a list, the returned type is List.
Parameters:
Throws:
Returns a list created by removing all occurrences of the elements from the list.
Parameters:
Throws:
Returns a set created by removing the specified elements from the set.
Parameters:
Throws:
Returns a collection created by adding the specified elements at the end of the input collection. If the input collection is a set, the returned type is Set. If the input collection is a list, the returned type is List.
Parameters:
Throws:
Returns a list created by adding the specified elements at the end of the list.
Parameters:
Throws:
Returns a set created by adding the specified elements to the set.
Parameters:
Throws:
Returns a map created by adding the specified key-value pair to the map. If the key already exists in the map, the specified value overwrites the original one.
Parameters:
Throws:
Returns a list created as concatenation of the specified lists. If the first input collection is a set, the returned type is Set. If the first input collection is a list, the returned type is List.
Parameters:
Throws:
Returns a map created as union of keys and their respective values from all specified maps. If more than one map contains the same key, its value is set to the value of the key specified by the most recent map containing that key.
Parameters:
Throws:
Returns a list created as concatenation of the list and collections.
Parameters:
Throws:
Returns a set created by concatenation of the set and collections.
Parameters:
Throws:
Returns a collection created by adding the specified elements to the collection parameter, starting from the position specified by the index. Shifts the element currently at that position (if there is any) and any subsequent elements to the right and increments the indices of the shifted elements with the number of the elements added to the specified collection. The original order of the added elements is preserved also in the returned collection. If the input collection is a set, the returned type is Set. If the input collection is a list, the returned type is List.
Parameters:
Throws:
Returns a list created by adding the specified elements (given as collections) to the list, starting from the position specified by the index. Shifts the element currently at that position (if there is any) and any subsequent elements to the right and increments the indices of the shifted elements with the number of the elements added to the specified list. The original order of the added elements is preserved also in the returned list.
Parameters:
Throws:
Returns a set created by adding the specified elements to the set parameter, starting from the position specified by the index. Shifts the element currently at that position (if there is any) and any subsequent elements to the right and increments the indices of the shifted elements with the number of the different elements added to the specified set. The original order of the added elements is preserved also in the returned set.
Parameters:
Throws:
Returns a collection created by adding the specified elements to the collection, starting from the position specified by the index. Shifts the element currently at that position (if there is any) and its subsequent elements (if any) to the right and increments the indices of the shifted elements with the number of the elements added to the list. If the input collection is a set, the returned type is Set. If the input collection is a list, the returned type is List.
Parameters:
Throws:
Returns a list created by adding the specified elements to the list, starting from the position specified by the index. Shifts the element currently at that position (if there is any) and its subsequent elements (if any) to the right and increments the indices of the shifted elements with the number of the elements added to the list.
Parameters:
Throws:
Returns a set created by adding the specified elements to the set parameter, starting from the position specified by the index. Shifts the element currently at that position (if there is any) and its subsequent elements (if any) to the right and increments the indices of the shifted elements with the number of the different elements added to the set.
Parameters:
Throws:
Returns a collection of values obtained by applying the function to each item of the input collection. If the input collection is a set, the returned type is Set. If the input collection is a list, the returned type is List.
Parameters:
Throws:
Returns a list of values obtained by applying the function to each item of the list.
Parameters:
Throws:
Returns a list of values obtained by applying the function to each key-value pair in the given map.
Parameters:
Throws:
Returns a set of values obtained by applying the function to each item of the set.
Parameters:
Throws:
Returns a collection of values obtained by applying the function to each item of the collection. The function parameter takes 2 values: index of the item and the item itself.
Parameters:
Throws:
Returns a list of values obtained by applying the function to each item of the list. The function parameter takes 2 values: index of the item and the item itself.
Parameters:
Throws:
Returns a set of values obtained by applying the function to each item of the set. The function parameter takes 2 values: index of the item and the item itself.
Parameters:
Throws:
Returns a collection containing only non-null elements from a given collection.
Parameters:
Throws:
Returns a list containing only non-null elements from a given list.
Parameters:
Throws:
Returns a set containing only non-null elements from a given set.
Parameters:
Throws:
Returns true, if the collection contains all specified elements.
Parameters:
Throws:
Returns true, if the collection contains all specified elements.
Parameters:
Throws:
Returns true, if the collection contains any of the specified elements.
Parameters:
Throws:
Returns true, if the map contains all specified keys.
Parameters:
Throws:
Returns true, if the map contains all specified values.
Parameters:
Throws:
Returns the number of elements in the given collection which satisfy the given condition.
Parameters:
Throws:
Returns true, if the condition is true for at least one element in the collection.
Parameters:
Throws:
Returns the index of the first occurrence of the collection element which satisfies the specified condition; returns -1 if the condition is false for all elements of the collection.
Parameters:
Throws:
Returns the index of the first occurrence of the collection element, starting at fromIndex (inclusive), which satisfies the specified condition; returns -1 if the condition is false for all elements of the collection starting at fromIndex. If the fromIndex parameter is null or is less than 0, the finding starts from the beginning of the collection (index 0).
Parameters:
Throws:
Returns the index of the first occurrence of the collection element, starting at the fromIndex (inclusive) and ending at the toIndex (exclusive), which satisfies the specified condition; returns -1 if the condition is false for all elements in the specified range. If the fromIndex parameter is null or is less than 0, the finding starts from the beginning of the collection (index 0). If the toIndex parameter is null or greater or equal to the size of the collection, the finding ends at the end of the collection.
Parameters:
Throws:
Returns the index of the last occurrence of the collection element which satisfies the specified condition; returns -1 if the condition is false for all elements of the collection.
Parameters:
Throws:
Returns the index of the last occurrence of the collection element which satisfies the specified condition, searching backwards starting at index toIndex - 1; returns -1 if no such element is found. If the toIndex parameter is null or greater or equal to the size of the collection, the finding starts at the end of the collection.
Parameters:
Throws:
Returns the index of the last occurrence of the collection element, searching backwards in the range starting at fromIndex (inclusive) and ending at toIndex (exclusive), which satisfies the specified condition; returns -1 if the condition is false for all elements in the specified range. If the fromIndex parameter is null or is less than 0, the search ends at the beginning of the collection (index 0). If the toIndex parameter is null or greater or equal to the size of the collection, the finding starts at the end of the collection.
Parameters:
Throws:
Combines the elements of the collection together using the binary function, from left to right, and starting with the initialValue. The function is applied iteratively on the previously computed interim value and a next element of the collection. In each iteration the function computes the subsequent interim value. The last computed value represents the result of the fold function.
Parameters:
Throws:
Combines the elements of the collection together using the binary function, from left to right, and starting with the initialValue. The function is applied iteratively on the previously computed interim value and a next element of the collection. In each iteration the function computes the subsequent interim value. The last computed value represents the result of the fold function. 0-based index of element is passed to function as the first argument.
Parameters:
Throws:
Returns true, if the condition is true for all elements in the collection.
Parameters:
Throws:
Returns the set of duplicate elements in the given collection.
Parameters:
Throws:
Returns the first item of the collection, or null if the collection is empty.
Parameters:
Throws:
Returns the first element for which the given condition is true. Returns null if the collection is empty or the condition is not true for all elements.
Parameters:
Throws:
Returns the last item of the collection, or null if the collection is empty.
Parameters:
Throws:
Returns the last element for which the given condition is true. Returns null if the collection is empty or the condition is not true for all elements.
Parameters:
Throws:
The function does a "group by" operation, grouping given elements according to a classifier function, and returning the results in a map.
Parameters:
Throws:
Returns true if the collection contains duplicate elements, false otherwise.
Parameters:
Throws:
Returns the index of the first occurrence of the specified element in the collection; returns -1 if the collection does not contain the specified element.
Parameters:
Throws:
Returns true, if the specified collection contains no elements.
Parameters:
Throws:
Returns true, if the specified map contains no elements.
Parameters:
Throws:
Returns true, if the set1 is a subset of the set2.
Parameters:
Throws:
Concatenates all non-empty string representations of the objects within collection, separating them by comma and space (", ").
Parameters:
Throws:
Concatenates all non-empty string representations of the objects within collection, separating them by joinString.
Parameters:
Throws:
Concatenates all string representations of the objects within collection, separating them by joinString. If includeEmpty is true, also null and empty strings are included in the result string.
Parameters:
Throws:
Returns a set of keys contained in the specified map.
Parameters:
Throws:
Returns the keys for all occurrences of the specified value included in the map.
Parameters:
Throws:
Returns the index of the last occurrence of the specified element in the collection; returns -1 if the collection does not contain the specified element.
Parameters:
Throws:
Returns a list containing all elements from all given collections. Null values of collection are treated as empty collections.
Parameters:
Returns a map by combining given keys and computed values. For each key in the given collection of keys, the given closure is executed to obtain a map value.
Parameters:
Throws:
Returns a map by combining collections of keys and values. The number of keys must be equal to the number of values. At least one key and one value must be specified in order to determine the type of the created map. If the keys parameter contains the same key several times, the most recently used key-value pair is included in the resulting map.
Parameters:
Throws:
Returns a map by combining computed keys and computed values. For each element in the given collection, the keyFunction is executed to obtain a map key and valueFunction is executed to obtain a map value.
Parameters:
Throws:
Returns maximal value from collection; or null, if the collection is empty.
Parameters:
Throws:
Returns maximal value from collection; or null, if the collection is empty.
Parameters:
Throws:
Returns maximal value from collection; or null, if the collection is empty.
Parameters:
Throws:
Returns maximal value from collection; or null, if the collection is empty.
Parameters:
Throws:
Returns minimal value from collection; or null, if the collection is empty.
Parameters:
Throws:
Returns minimal value from collection; or null, if the collection is empty.
Parameters:
Throws:
Returns minimal value from collection; or null, if the collection is empty.
Parameters:
Throws:
Returns minimal value from collection; or null, if the collection is empty.
Parameters:
Throws:
Returns true, if the specified collection contains some elements.
Parameters:
Throws:
Returns true, if the specified map contains some elements.
Parameters:
Throws:
Returns a collection created by removing the first occurrences of the specified elements from the collection. If the input collection is a set, the returned type is Set. If the input collection is a list, the returned type is List.
Parameters:
Throws:
Returns a list created by removing the first occurrences of the specified elements from the list.
Parameters:
Throws:
Returns a set created by removing the specified elements from the set.
Parameters:
Throws:
Returns a collection created by removing all occurrences of the elements from the collection. If the input collection is a set, the returned type is Set. If the input collection is a list, the returned type is List.
Parameters:
Throws:
Returns a list created by removing all occurrences of the elements from the list.
Parameters:
Throws:
Returns a set created by removing all elements from the set.
Parameters:
Throws:
Returns a collection created by removing that element of the collection, which is at the position specified by the index. If the input collection is a set, the returned type is Set. If the input collection is a list, the returned type is List.
Parameters:
Throws:
Returns a list created by removing that element of the list, which is at the position specified by the index.
Parameters:
Throws:
Returns a set created by removing that element of the set, which is at the position specified by the index.
Parameters:
Throws:
Returns a map created by removing the specified keys (and their corresponding values) from the map.
Parameters:
Throws:
Returns a map created by removing the specified keys (and their corresponding values) from the map.
Parameters:
Throws:
Returns a portion of the collection representing removing elements from the specified fromIndex (inclusive) to the toIndex (exclusive). If the fromIndex parameter is null or is less than 0, the range starts from the beginning of the collection (index 0). If the toIndex parameter is null or greater or equal to the size of the collection, the range ends at the end of the collection.
Parameters:
Throws:
Returns a portion of the list representing removing elements from the specified fromIndex (inclusive) to the toIndex (exclusive). If the fromIndex parameter is null or is less than 0, the range starts from the beginning of the collection (index 0). If the toIndex parameter is null or greater or equal to the size of the collection, the range ends at the end of the collection.
Parameters:
Throws:
Returns a portion of the set representing removing elements from the specified fromIndex (inclusive) to the toIndex (exclusive). If the fromIndex parameter is null or is less than 0, the range starts from the beginning of the collection (index 0). If the toIndex parameter is null or greater or equal to the size of the collection, the range ends at the end of the collection.
Parameters:
Throws:
Returns a map created by removing all occurrences of the specified values (and their corresponding keys) from the map.
Parameters:
Throws:
Returns a collection created by replacing all occurrences of the element1 with the element2 in the specified collection. If the input collection is a set, the returned type is Set. If the input collection is a list, the returned type is List.
Parameters:
Throws:
Returns a list created by replacing all occurrences of the element1 with the element2 in the specified list.
Parameters:
Throws:
Returns a set created by replacing the element1 with the element2 in the specified set.
Parameters:
Throws:
Returns a map created by replacing all occurrences of the values corresponding to the value1 with the value2 in the specified map.
Parameters:
Throws:
Returns a list of those elements of the collection that are contained in the specified collections. The relative order of the retained elements remains unchanged. If the input collection is a set, the returned type is Set. If the input collection is a list, the returned type is List.
Parameters:
Throws:
Returns a list of those elements of the list that are contained in the specified collections. The relative order of the retained elements remains unchanged.
Parameters:
Throws:
Returns a set created by intersection of the specified sets.
Parameters:
Throws:
Returns a collection created by reversing the order of the elements in the specified collection.
Parameters:
Throws:
Returns a list created by reversing the order of the elements in the specified list.
Parameters:
Throws:
Returns a set created by reversing the order of the elements in the specified set.
Parameters:
Throws:
Returns a colection containing those elements from the input collection for which the condition is true. If the input collection is a set, the returned type is Set. If the input collection is a list, the returned type is List.
Parameters:
Throws:
Returns a collection containing elements of the given type, null element are not included. If the input collection is a set, the returned type is Set. If the input collection is a list, the returned type is List.
Parameters:
Throws:
Returns a list containing those elements from the list for which the condition is true.
Parameters:
Throws:
Returns a list containing elements of the given type, null element are not included.
Parameters:
Throws:
Returns a map containing those elements from the map for which the condition is true.
Parameters:
Throws:
Returns a set containing those elements from the set for which the condition is true.
Parameters:
Throws:
Returns a set containing elements of the given type, null element are not included.
Parameters:
Throws:
Returns a list created by replacing that element of the list, which is at the position given by the index, with the specified element. If the input collection is a set, the returned type is Set. If the input collection is a list, the returned type is List.
Parameters:
Throws:
Returns a list created by replacing that element of the list, which is at the position given by the index, with the specified element.
Parameters:
Throws:
Returns a set created by replacing that element of the set, which is at the position given by the index, with the specified element.
Parameters:
Throws:
Returns the number of elements in the specified collection.
Parameters:
Throws:
Returns the number of elements in the specified map.
Parameters:
Throws:
Returns a collection with items sorted in ascending or descending order.
Parameters:
Throws:
Returns a collection with items sorted in ascending or descending order.
Parameters:
Throws:
Returns a collection with items sorted in ascending or descending order.
Parameters:
Throws:
Returns a collection with items sorted in ascending or descending order.
Parameters:
Throws:
Returns items of the specified collection ordered according to the given comparator. The comparator defines a total ordering function returning a negative integer, zero, or a positive integer if the first parameter is less than, equal to, or greater than the second, respectively. If the input collection is a set, the returned
Parameters:
Throws:
Returns a list with items sorted in ascending or descending order.
Parameters:
Throws:
Returns a list with items sorted in ascending or descending order.
Parameters:
Throws:
Returns a list with items sorted in ascending or descending order.
Parameters:
Throws:
Returns a list with items sorted in ascending or descending order.
Parameters:
Throws:
Returns items of the specified list ordered according to the given comparator. The comparator defines a total ordering function returning a negative integer, zero, or a positive integer if the first parameter is less than, equal to, or greater than the second, respectively.
Parameters:
Throws:
Returns a set with items sorted in ascending or descending order.
Parameters:
Throws:
Returns a set with items sorted in ascending or descending order.
Parameters:
Throws:
Returns a set with items sorted in ascending or descending order.
Parameters:
Throws:
Returns a set with items sorted in ascending or descending order.
Parameters:
Throws:
Returns items of the specified set ordered according to the given comparator. The comparator defines a total ordering function returning a negative integer, zero, or a positive integer if the first parameter is less than, equal to, or greater than the second, respectively.
Parameters:
Throws:
Returns a collection sorted by keys produced by the given key extractor. It is assumed that keys produced by key extractor are comparable, (i.e. strings or decimals or integers or dates). The parameter ascending specifies whether natural or reverse order is used (set ascending to true to have a natural order). The parameter nullsFirst specifies whether null keys are considered smaller or greater in natural order (set nullsFirst to true to have nulls at the beginning of the result collection, if ascending is true).
Parameters:
Throws:
Returns a collection representing such a portion of the collection, which starts from the specified fromIndex (inclusive) to the toIndex (exclusive). If the fromIndex parameter is null or is less than 0, the sub-list starts from the beginning of the list (index 0). If the toIndex parameter is null or equal/greater than the size of the collection, the sub-collection ends at the end of the collection (index given by size(collection)-1).
Parameters:
Throws:
Returns a list representing such a portion of the list, which starts from the specified fromIndex (inclusive) to the toIndex (exclusive). If the fromIndex parameter is null or is less than 0, the sub-list starts from the beginning of the list (index 0). If the toIndex parameter is null or equal/greater than the size of the list, the sub-list ends at the end of the list (index given by size(list)-1).
Parameters:
Throws:
Returns a set representing such a portion of the collection, which starts from the specified fromIndex (inclusive) to the toIndex (exclusive). If the fromIndex parameter is null or is less than 0, the sub-list starts from the beginning of the list (index 0). If the toIndex parameter is null or equal/greater than the size of the collection, the sub-collection ends at the end of the collection (index given by size(set)-1).
Parameters:
Throws:
Returns a sum of decimal or integer numbers in the given collection.
Parameters:
Throws:
Returns a new list which contains the same elements as the original list, with elements at given indexes swapped.
Parameters:
Throws:
Returns a list of values, in an arbitrary order, contained in the specified collection.
Parameters:
Throws:
Returns a set of values contained in the specified list.
Parameters:
Throws:
Returns a list of values contained in the specified map.
Parameters:
Throws:
Creates a binary handle representing a newly created file with the specified fileName, content, description, mime type and charset encoding. If the mime parameter is not specified, the MIME type is determined from the file extension automatically. If the charset is not specified, "UTF-8" is used by default.
Parameters:
Throws:
Returns a binary handle of the specified identifier.
Parameters:
Throws:
Returns a binary handle metadata
Parameters:
Throws:
Creates a file from a module's resource located at the specified path.
Parameters:
Throws:
Creates a binary handle from a module's resource located at the specified path
Parameters:
Throws:
Returns the size of the binary data in bytes.
Parameters:
Converts the specified string to binary.
Parameters:
Converts binary data to a string encoded by given charset. Standard charset strings are defined in java.nio.charset.StandardCharsets. Possible values: US-ASCII, ISO-8859-1, UTF-8, UTF-16BE, UTF-16LE, UTF-16, etc.
Parameters:
Throws:
Transforms the specified enumeration literal to its name represented as a string
Parameters:
Throws:
Returns a list of literals from the specified enumeration
Parameters:
Throws:
Transforms the specified enumeration’s literal name to the corresponding literal value.
Parameters:
Throws:
Transforms the specified enumeration full name to the corresponding value Enumeration full name has the following format: MODULE_NAME::ENUMERATION_NAME.LITERAL_NAME
Parameters:
Throws:
Returns the enumeration literal label.
Parameters:
Throws:
Returns the property label.
Parameters:
Throws:
Returns the type label.
Parameters:
Throws:
Returns a PDF document obtained by filling the values of PDF form template from the FDF document.
Parameters:
Returns a PDF document obtained by filling the values of PDF form template parameters using the FDF merging method. Form parameter names and their values are specified in the parameters map.
Parameters:
Returns a PDF document obtained by populating the XFA template with the specified data. The type of populated record must specify the XML mapping that conforms to the XML schema required by the template.
Parameters:
Returns a PDF document obtained by populating the XFA template with the specified data. The provided XML data must conform to the XML schema required by the template.
Parameters:
Finds a tag by a given name which can be a simple name or full name. Returns null
if the tag is not found. If the simple name is given and it is ambiguous (meaning there are more validation tags with the same name located in different imported modules), an error is thrown.
Parameters:
Throws:
Performs a validation of the given record.
If the record is null, an empty list is returned. If the given property parameter is null, all properties of the record are validated.
Parameters:
Throws:
Performs a validation of the given collection of records.
If the collection is null, an empty list is returned. Null elements in the collection are ignored. If the given property parameter is null, all properties of the records are validated.
Parameters:
Throws:
Finds all occurrences of the regexp in the specified string. All the matched strings are returned as a list of strings. The function returns an empty list if there is no match. The Java regular expression syntax (as defined in the java.util.regex.Pattern class) is used.
Parameters:
Throws:
Returns a string created by formatting the objects given by the arguments parameter with the format specified by the pattern parameter. The pattern parameter uses the syntax defined in the java.util.Formatter Java class restricted to formatting commands applied only for Java data types used to internally represent GO-BPMN expression language data types. The data types are transformed according to the following table:
Boolean -> java.lang.Boolean String -> java.lang.String Date -> java.util.Date Integer -> java.math.BigDecimal Decimal -> java.math.BigDecimal all other data types -> java.lang.String using the function core::toString
The format() function uses a server locale for formatting numbers and dates. Note: The format() function returns incorrect value of time zone offset from GMT for Daylight Saving Time (“$tz” or “$Tz” conversions) on Java 6. It is recommended to use formatDate() function for formatting dates. Java 7 returns correct values of time zone offset.
Parameters:
Throws:
Returns a string created by formatting the objects given by the arguments parameter with the format specified by the pattern parameter. The pattern parameter uses the syntax defined in the java.util.Formatter Java class restricted to formatting commands applied only for Java data types used to internally represent GO-BPMN expression language data types. The data types are transformed according to the following table:
Boolean -> java.lang.Boolean String -> java.lang.String Date -> java.Functions.Date Integer -> java.math.BigDecimal Decimal -> java.math.BigDecimal all other data types -> java.lang.String using the function core::toString
The locale parameter determines a locale used for formatting numbers and dates. If it is null, the server locale is used. Note: The formatWithLocale() function returns incorrect value of time zone offset from GMT for Daylight Saving Time (“$tz” or “$Tz” conversions) on Java 6. It is recommended to use formatDate() function for formatting dates. Java 7 returns correct values of time zone offset.
Parameters:
Throws:
Returns the index of the first occurrence of the specified substring within the string.
Parameters:
Throws:
Returns the index of the first occurrence of the specified substring within the string, starting at the specified index.
Parameters:
Throws:
Returns true if the string is either null, has zero length (contains no characters) or only consists of whitespaces.
Parameters:
Returns true if the string is either null or has zero length (contains no characters).
Parameters:
Returns the index of the rightmost occurrence of the specified substring within the string.
Parameters:
Throws:
Returns the index of the last occurrence of the specified substring within the string, searching backward starting at the specified index.
Parameters:
Throws:
Returns the length of the specified string.
Parameters:
Throws:
Replaces all localizable substrings in the string parameter by the corresponding localized strings from the specified language.
Parameters:
Throws:
Returns true, if the specified string matches the regular expression given by the regexp parameter, otherwise returns false. The Java regular expression syntax (as defined in the java.util.regex.Pattern class) is used.
Parameters:
Throws:
Replaces each substring of the specified string that matches the regular expression given by the regexp parameter with the string specified by the replacement parameter. The Java regular expression syntax (as defined in the java.util.regex.Pattern class) is used.
Parameters:
Throws:
Replaces the first substring of the specified string that matches the regular expression given by the regexp parameter with the string specified by the replacement parameter. The Java regular expression syntax (as defined in the java.util.regex.Pattern class) is used.
Parameters:
Throws:
Splits the specified string around matches of the regular expression given by the regexp parameter. The Java regular expression syntax (as defined in the java.util.regex.Pattern class) is used.
Parameters:
Throws:
Returns a substring of the string starting at the fromIndex position (inclusive) and ending at the toIndex position (exclusive). If the fromIndex is null or is less than 0, the substring starts from the beginning of the string (index 0). If the toIndex is null or equal/higher than the length of the string, the substring ends at the end of the string (index given by length(string)-1). Throws a runtime exception if fromIndex > toIndex.
Parameters:
Throws:
If possible, converts the specified string to a decimal. If not possible, the function throws a runtime exception.
Parameters:
Throws:
If possible, converts the specified string to an integer. If not possible, the function throws a runtime exception.
Parameters:
Throws:
If possible, converts the specified string in the specified radix to an integer. If not possible, the function throws a runtime exception. Radix must be between 2 and 36 (inclusive).
Parameters:
Throws:
Converts all characters of the specified string to lower case.
Parameters:
Throws:
Converts the specified object to a string.
Parameters:
Converts all characters of the specified string to upper case.
Parameters:
Throws:
Returns a copy of the specified string, while omitting the leading and trailing whitespaces.
Parameters:
Throws:
Converts internal data structures passed to the object parameter to XML document. The object parameter must be an instance of a record type, otherwise an exception is thrown. The function returns a string which represents the output XML document.
Parameters:
Throws:
Parses XML document to internal data structures. The xml parameter represents the XML document to parse and the resultType parameter determines the type of the returned data. The referred type must be record type, otherwise an exception is thrown.
Parameters:
Throws:
(Re)activates inactive or finished goals. If a goal from the collection is active, the goal status remains unchanged.
Parameters:
Throws:
Deactivates not finished goals. If a goal from the collection is finished or the goal’s process is finished, the goal status remains unchanged.
Parameters:
Throws:
Returns a set of all sub-goals, i.e. the goals that the given goal is decomposed into, directly or indirectly.
Parameters:
Returns a set of direct sub-goals, i.e. the goals that the given goal is decomposed into.
Parameters:
Returns true, if the goal or the plan referenced by the goalPlan parameter is in the specified state or any of its sub-states. If the goal or plan parameter is specified correctly, but the state parameter contains an incorrect string representation of a state or is null, the function returns false.
Parameters:
Throws:
Returns the key type of the given map type. Deprecated. Use getKeyType(Type<Map<K,V>>) instead.
Parameters:
Throws:
Returns the item type of the given collection type.
Parameters:
Throws:
Returns the value type of the given map type. Deprecated. Use getValueType(Type<Map<K,V>>) instead.
Parameters:
Throws:
Returns the key type of the given map type.
Parameters:
Throws:
Returns the referenced type of the given reference type.
Parameters:
Throws:
Returns the value type of the given map type.
Parameters:
Throws:
If possible, parses the specified string to a type. If the given string does not represent a valid type, the function throws an error.
Parameters:
Throws:
Returns an absolute value of the number.
Parameters:
Throws:
Returns an absolute value of the number.
Parameters:
Throws:
Returns the maximal number from a list of decimals.
Parameters:
Throws:
Returns the maximal number from a list of integers.
Parameters:
Throws:
Returns the minimal number from a list of decimals.
Parameters:
Throws:
Returns the minimal number from a list of integers.
Parameters:
Throws:
Returns a pseudorandom, uniformly distributed integer between 0 (inclusive) and the specified upperBound (exclusive).
Parameters:
Throws:
Returns rounding of the specified number towards positive infinity.
Parameters:
Throws:
Returns rounding of the specified number towards zero.
Parameters:
Throws:
Returns rounding of the specified number towards negative infinity.
Parameters:
Throws:
Returns rounding of the specified number towards the "nearest neighbor"; if both neighbors are equidistant, rounds down.
Parameters:
Throws:
Returns rounding of the specified number towards the "nearest neighbor"; if both neighbors are equidistant, rounds towards the even neighbor.
Parameters:
Throws:
Returns rounding of the specified number towards the "nearest neighbor"; if both neighbors are equidistant, rounds up.
Parameters:
Throws:
Returns rounding of the specified number away from zero.
Parameters:
Throws:
Returns the scale of the specified number.
Parameters:
Throws:
Returns a decimal with the specified scale, and the unscaled value of which is determined by multiplying or dividing the unscaled value of the number by the appropriate power of ten to maintain its overall value. If the scale is reduced by the operation, the unscaled value must be divided and the specified roundingMode is applied to the division. Formally, it can be expressed as roundingMode(number * (10 ** scale)) / (10** scale).
Parameters:
Throws:
Creates and starts a new instance of the given model having the specified initialization properties. If the properties is null, an empty map is created in the instantiated model. If the synchronous parameter is set to true, the model interpretation phase is performed synchronously and execution of the containing expression waits until its finish. If the synchronous parameter is set to false, the model interpretation phase is performed asynchronously and execution of the containing expression does not wait until its finish. For usage this function in actions of documents, it is recommended to set the synchronous parameter to true, and for usage in processes it is recommended to set the parameter value to false.
Returns the created model instance.
Parameters:
Throws:
Creates and starts a new model instance of the given model with a given process entity (must be a shared record). The string representation of primary key of the shared record is put into initialization properties, allowing additional properties specified in the properties parameter. If the synchronous parameter is set to true, the model interpretation phase is performed synchronously and execution of the containing expression waits until its finish. If the synchronous parameter is set to false, the model interpretation phase is performed asynchronously and execution of the containing expression does not wait until its finish. For usage this function in actions of documents, it is recommended to set the synchronous parameter to true, and for usage in processes it is recommended to set the parameter value to false.
Returns the created model instance.
Parameters:
Throws:
Returns a set of model instances satisfying the specified filtering criteria. If the corresponding fields of a model instance match the patterns specified as function parameters, the model instance is included in the resulting set. All strings in parameters, including the properties parameter, are specified as wildcard strings patterns. A wildcard string can contain the following wildcards: "*" matching none or several arbitrary characters, and "?" matching exactly one arbitrary character. Any other character in patterns matches itself. Value of the isRunning parameter must match exactly. null specified as the pattern value matches any value of the model instance field (which is equivalent to the "*" pattern). All the specified properties must occur also in the selected model instances.
Parameters:
Returns a set of all uploaded models satisfying the specified filtering criteria. If the corresponding fields of a model match the patterns specified as function parameters, the model is included in the resulting set. All strings in parameters are specified as wildcard strings patterns. A wildcard string can contain the following wildcards: "*" matching none or several arbitrary characters, and "?" matching exactly one arbitrary character. Any other character in patterns matches itself. ‘null’ specified as the pattern value matches any value of the model field (which is equivalent to the "*" pattern). Setting the latestOnly parameter to true causes including only the most recently uploaded models with given name and version, if there are several models with the same name and version on the server. If the latestOnly parameter is set to false, all models satisfying the filtering criteria are returned; the returned set can contain several models of the same name and version.
Parameters:
Returns a set of process instances generated by this model instance up to this point and satisfying the specified filtering criteria. The criteria specified by the filter parameter are given as a Boolean closure with one formal parameter of the type ProcessInstance. If the Boolean expression returns true for a process instance, the process instance is included in the resulting set. If filter is null, all process instances are returned.
Parameters:
Throws:
Returns a set of process instances generated by the specified model instance up to this point and satisfying the specified filtering criteria. The criteria specified by the filter parameter are given as a Boolean closure with one formal parameter of the type ProcessInstance. If the Boolean expression returns true for a process instance, the process instance is included in the resulting set. If filter is null, all process instances are returned.
WARNING: Execution of this function can be relatively slow if accessing a model instance which is not currently loaded in memory.
Parameters:
Throws:
Returns a model with the specified name. If there are several models with the same name (and any version), the most recently uploaded model is returned. Unloaded models are ignored.
Parameters:
Throws:
Returns a model with the specified name and version. If there are several models with the same name and version on the server, the most recently uploaded model is returned.
Parameters:
Throws:
Returns a model instance with the specified id.
Parameters:
Throws:
Returns a map of initialization properties of the specified model instance.
Parameters:
Throws:
Returns the associated process entity. Process entity information (a string representation of its primary key) is stored in the model instance properties. Expected type must be specified and must be a shared record type and must match the the type of the record which was used to create the model instance, see function createModelInstance(Boolean synchronous, Model model, Record processEntity, Map<String,String> properties). (If the types do not match, the behavior is unspecified.)
Parameters:
Throws:
Notify provided model instance.
Parameters:
Throws:
Params:
Sends a signal object to the specified recipients. If the synchronous parameter is set to true, the signal is sent synchronously and execution of the containing expression waits until the signal is received by recipients. If the synchronous parameter is set to false, the signal is sent asynchronously and execution of the containing expression does not wait until the signal is received by recipients.
Parameters:
Throws:
Returns a value of the initialization property of the given name of the model instance that executed this function. Returns null if there is no property with a given name or if executed from document.
Parameters:
Throws:
Throws an escalation with the specified code and payload. This function should be called only from an expression enclosed in a process that can handle the escalation. Otherwise, calling of this function has no effect.
Parameters:
Throws:
Binary operator which returns a duration obtained by multiplying each field of the duration by the specified number and rounding the value down.
Parameters:
Binary operator which returns a duration obtained by multiplying each field of the duration by the specified number and rounding the value down.
Parameters:
Unary operator which returns the specified duration.
Parameters:
Binary operator which returns a date obtained by adding the duration to the date.
Parameters:
Binary operator which returns a date obtained by adding the date to the duration.
Parameters:
Binary operator which returns a duration obtained by adding the values of the corresponding fields of duration1 and duration2.
Parameters:
Unary operator which returns a duration obtained by negating of each field of the specified duration.
Parameters:
Binary operator which returns a date obtained by subtracting the duration from the date.
Parameters:
Binary operator which returns a duration obtained by subtracting date2 from date1. The resulting duration is in the "normal form"; i.e., it has the highest possible values (taken in absolute values) in highly ranked fields. If date2 > date1, the resulting duration is negative, i.e., all its fields are negative.
Parameters:
Binary operator which returns a duration obtained by subtracting each field of duration2 from the corresponding field of duration1.
Parameters:
Create a date object and initializes it to represent the specified number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT.
Parameters:
Throws:
Creates a date from the specified string. The format of the input string is a subset of formats given by ISO 86011. It is possible to specify date with the format <date>, or time with the format ‘T’<time>, or to combine dates with times with the format <date>’T’<time>. The following formats of dates are allowed: yyyy, yyyy-MM, yyyy-MM-dd, yyyy-DDD, yyyy-Www, and yyyy-Www-e; where yyyy stands for year (0000-9999), MM stands for month in year (01-12), dd stands for day in month (01-31), DDD stands for day in year (001-365), Www stands for week number prefixed by the letter ‘W’ (W01-W53), and e stands for day in week (1-7). The following formats of times are allowed: HH, HH:mm, and HH:mm:ss; where HH stands for hour in day (00-23), mm stands for minute in hour (00-59), and ss stands for second in minute (00-59). The following formats of time zones are allowed: <time>’Z’, <time>±HH, <time>±HH:mm, and <time>±HH:mm:ss; where ‘Z’ is used for UTC. Decimal fractions, separated either by comma or by dot, may also be added to hours, minutes or seconds.
Parameters:
Throws:
Creates a date from the specified string, which adheres to the format given by the pattern parameter. The pattern string uses the format defined in the java.text.SimpleDateFormat Java class.
Parameters:
Throws:
Creates a date from the specified string, which adheres to the format given by the pattern parameter. The pattern string uses the format defined in the java.text.SimpleDateFormat Java class. The function takes an optional locale parameter.
Parameters:
Throws:
Creates a date from the values given by the following parameters: year, month (month of year), and dayOfMonth. The created date is given as a sum of all parameter values; i.e., the number of years is added up with the number of months, and then with the number of days of a month. There are no limitations on parameter values.
Parameters:
Throws:
Creates a date from the values given by the following parameters: year, month (month of year), dayOfMonth, hour (hour of day), minute (minute of hour), second (second of minute), and millis (millisecond of second). The created date is given as a sum of all parameter values; i.e., the number of years is added up with the number of months, then with the number of days of a month, then with the number of hours, etc. There are no limitations on parameter values.
Parameters:
Throws:
Returns a duration with the specified number of days.
Parameters:
Throws:
Returns a string created by formatting the date to the specified pattern. The formatted date can also be transformed to a time zone given by the timeZone parameter. The pattern and timeZone parameters use the syntax defined in the Joda class org.joda.time.format.DateTimeFormat. The syntax is described in the date(string, pattern) function in more details.
Parameters:
Throws:
Returns a string created by formatting the date to the specified pattern. The formatted date can also be transformed to a time zone given by the timeZone parameter. The pattern and timeZone parameters use the syntax defined in the Joda class org.joda.time.format.DateTimeFormat. The syntax is described in the date(string, pattern) function in more details. The function takes an optional locale parameter.
Parameters:
Throws:
Returns the day of the month of the specified date.
Parameters:
Throws:
Returns the day of the week of the specified date.
Parameters:
Throws:
Returns the day of the year of the specified date.
Parameters:
Throws:
Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this date object.
Parameters:
Throws:
Returns the hour of the day of the specified date.
Parameters:
Throws:
Returns the millisecond of the second of the specified date.
Parameters:
Throws:
Returns the minute of the hour of the specified date.
Parameters:
Throws:
Returns the month of the year of the specified date.
Parameters:
Throws:
Returns the second of a minute of the specified date.
Parameters:
Throws:
Returns the week of the year of the specified date.
Parameters:
Throws:
Returns the year of the specified date.
Parameters:
Throws:
Returns a duration with the specified number of hours.
Parameters:
Throws:
Returns the number of days between two dates, date2 - date1. If date1 > date2, the resulting number is negative.
Parameters:
Throws:
Returns the number of hours between two dates, date2 - date1. If date1 > date2, the resulting number is negative.
Parameters:
Throws:
Returns the number of milliseconds between two dates, date2 - date1. If date1 > date2, the resulting number is negative.
Parameters:
Throws:
Returns the number of minutes between two dates, date2 - date1. If date1 > date2, the resulting number is negative.
Parameters:
Throws:
Returns the number of months between two dates, date2 - date1. If date1 > date2, the resulting number is negative.
Parameters:
Throws:
Returns the number of seconds between two dates, date2 - date1. If date1 > date2, the resulting number is negative.
Parameters:
Throws:
Returns the number of weeks between two dates, date2 - date1. If date1 > date2, the resulting number is negative.
Parameters:
Throws:
Returns a number of years between two dates, date2 - date1. If date1 > date2, the resulting number is negative.
Parameters:
Throws:
Returns the maximal date from a list of dates.
Parameters:
Throws:
Returns a duration with the specified number of milliseconds.
Parameters:
Throws:
Returns the minimal date from a list of dates.
Parameters:
Throws:
Returns a duration with the specified number of minutes.
Parameters:
Throws:
Returns a duration with the specified number of months.
Parameters:
Throws:
Returns a duration with the specified number of seconds.
Parameters:
Throws:
Returns a copy of the specified date with the fields given by year, month, and dayOfMonth parameters updated.
Parameters:
Throws:
Returns a copy of the specified date with the dayOfMonth field updated.
Parameters:
Throws:
Returns a copy of the specified date with the dayOfWeek field updated.
Parameters:
Throws:
Returns a copy of the specified date with the dayOfYear field updated.
Parameters:
Throws:
Returns a copy of the specified date with the hour (meaning an hour of a day) field updated.
Parameters:
Throws:
Returns a copy of the date with the specified millis (meaning a millisecond of a second) field updated.
Parameters:
Throws:
Returns a copy of the date with the specified minute (meaning a minute of an hour) field updated.
Parameters:
Throws:
Returns a copy of the specified date with the month field updated.
Parameters:
Throws:
Returns a copy of the date with the specified second (meaning a second of a minute) field updated.
Parameters:
Throws:
Returns a copy of the specified date with the fields given by the hour (meaning an hour of a day), minute (meaning a minute of an hour), second (meaning a second of a minute), and millis (meaning a millisecond of a second) parameters updated.
Parameters:
Throws:
Returns a copy of the specified date with the week (meaning a week of a year) field updated.
Parameters:
Throws:
Returns a copy of the specified date with the year field updated.
Parameters:
Throws:
Returns a duration with the specified number of weeks.
Parameters:
Throws:
Returns a duration with the specified number of years.
Parameters:
Throws:
Creates and returns new instance of record type T. If the properties are specified, the instance is initialized with the specified values of properties.
Parameters:
Throws:
Deletes the specified records and all related data links navigable from the deleted records. Works for shared and for non-shared records. Values of deleted records become null in all slots (variables, function or task call parameters, etc.) referring to those records.
Parameters:
Throws:
Deletes the specified records and all related data links navigable from the deleted records. Works for shared and for non-shared records. Values of deleted records become null in all slots (variables, function or task call parameters, etc.) referring to those records. If the record is referred to from a collection or a key in a map, it is removed.
Parameters:
Throws:
Returns all properties of the given record type.
Parameters:
Throws:
Returns the property of the given record type with a given name, or null if the type does not have such a property.
Parameters:
Throws:
Returns the property metadata.
Parameters:
Throws:
Returns the property name.
Parameters:
Throws:
Returns the property names.
Parameters:
Throws:
Returns the property path record type. It is the record type where the given property path starts.
Parameters:
Throws:
Returns the property path type (the type of the last property).
Parameters:
Throws:
Returns the value of the given property path of the given record object.
Parameters:
Throws:
Returns the property record type. It is the record type where the given property is declared.
Parameters:
Throws:
Returns the reference to the object defined by the last property parameter. The path to the object is resolved as a chain of associations starting in the reference parameter through the property parameters in specified order.
Parameters:
Throws:
Returns the property type.
Parameters:
Throws:
Returns the value of the given property of the given record object.
Parameters:
Throws:
Sets the value of the given property path of the given record object.
Parameters:
Throws:
Sets the value of the given property of the given record object. Returns null.
Parameters:
Throws:
If the type of the given object is compatible with the specified objectType, the function returns the object casted to the objectType. If not possible, the function throws a runtime exception.
Parameters:
Throws:
Creates and returns a shallow copy of a collection or of a user-defined record, or returns the object itself if it is of another type.
Parameters:
Throws an error with the specified code.
Parameters:
Throws:
Throws an error with the specified code and an optional message.
Parameters:
Throws:
Returns the type of specified object.
Parameters:
Returns true, if the given object is assignment-compatible with (is kind of) the specified objectType.
Parameters:
Throws:
Returns true, if the type specified by the sub-type parameter is a subtype of the type specified by the supertype parameter.
Parameters:
Throws:
Returns true, if the type specified by the sub-type parameter is a subtype of the type specified by the supertype parameter.
Parameters:
Throws:
Returns the type of specified object.
Parameters:
Converts internal data structures passed as the object parameter to JSON representation. The object parameter must be an instance of a Record, List, Set or Map type otherwise an exception is thrown. Furthermore, the data structure represented by the object parameter can consist only of the following types: String, Boolean, Binary, Decimal, Integer, Date, Set, List, Map, Record, Enumeration. The function returns a string which represents the data in JSON format.
Parameters:
Throws:
Parses JSON string to a map. The json parameter represents the JSON string to parse.
Parameters:
Throws:
Converts map to JSON representation. The string keys of the map represent the keys of JSON object. The values of the map must be instances of String, Boolean, Binary, Decimal, Integer, Date, Record, Enumeration, Null, Set and List of the previously mentioned types, or Map<String, Object>. Otherwise an exception is thrown. Nested JSON objects are represented either by values of type Map<String, Object> or record instances. The function returns a string which represents the data in JSON format.
Parameters:
Throws:
Parses JSON string to internal data structures. The json parameter represents the JSON string to parse and the resultType parameter determines the type of the returned data. The referred type must be a Record, List, Set or Map type, otherwise an exception is thrown. Furthermore the data structure represented by the resultType can consist only from these supported types: String, Boolean, Binary, Decimal, Integer, Date, Set, List, Map, Record, Enumeration.
Parameters:
Throws:
Synchronous http call.
Parameters:
Synchronous call of a webservice. It provides same functionality as the generated webservice task but can be used in expressions. It uses same data objects that are generated for webservice task and the same metadata.
Parameters:
Returns the audited record in the revision.
findByRevision(getBookByTitle("Death in Venice"), 7)
Parameters:
Throws:
Returns the current custom revision entity. If the persist parameter is set to true
, the revision entity is created even if no audited record was changed in the transaction.
Parameters:
Throws:
Returns a list of revision identifiers in which the shared record was modified during the period defined by the from and to parameters. If either of the parameters is null, the period is unbounded from start or end respectively.
Parameters:
Throws:
Returns the count of all shared records of the given type.
Parameters:
Throws:
Returns all shared records of the given type.
Parameters:
Throws:
Returns a shared record of the specified type and identified by the given primary key id. Composed primary key id is represented as a map of type Map<String, Object> or of type Map<Property, Object>. The keys of the map identify the properties of the primary key id and values represent the value of the properties. If the key is of type string then it contains the simple property name. If there is no record with the given id, the function returns null.
Parameters:
Throws:
Returns a shared record of the specified type and identified by the given primary key id. Composed primary key id is represented as a map of type Map<String, Object> or of type Map<Property, Object>. The keys of the map identify the properties of the primary key id and values represent the value of the properties. If the key is of type string then it contains the simple property name. If there is no record with the given id, the function returns null.
Parameters:
Throws:
Logs a message to the console at the debug logging level. If logging is not enabled for the debug level, the message closure is not even evaluated. The function returns a string that was logged, or null if the message was not logged.
Parameters:
Throws:
Logs a message to the console at the specified logging level. If logging is not enabled at the specified level, the message closure is not even evaluated. The function returns a string that was logged, or null if the message was not logged.
Parameters:
Throws:
Execute provided SQL file. It skips empty lines and lines starting with – or ;
Parameters:
Returns an application data object with the specified key. At the moment, the "locale" string and the "user" Person are supported by the LSPS Process Application.
Parameters:
Throws:
Logs a specified message to the application log at the specified log level. Unspecified level value logs at the "Info" level (value 200).
Parameters:
Throws:
Splits a fully specified element name to names of its components which are separated by the namespace separator (::). For instance, splitPathname("module::'role 1'") results in ["module", "role 1"].
Parameters:
Throws: