A collection of XPath functions are available in the BPEL Mapper's menu bar. These functions are based on the XPath 1.0 specification.
Each function has zero or more arguments. Each function returns a single result.
The menu bar contains the following drop-down menus: Datetime, Operator, Boolean, String , Nodes, and Number.
The Datetime menu contains the following functions:
Duration Literal enables you to enter a duration literal. Use the format specified in the XML Schema specification.
Current Time provides the current time.
Current Date provides the current date.
Current Date and Time provides the current date and time.
The Operator menu contains the following functions:
Greater Than
Greater or Equal
Less Than
Less or Equal
Addition
Subtraction
Multiplication
Div or division operator returns the quotient for a given dividend and divisor.
Mod or modulus operator returns the remainder for a given dividend and divisor.
Negative
Not Equal
EQUAL
The Boolean menu contains the following functions:
True returns true.
False returns false.
AND uses the following logic: If both arguments are true, then the function returns true. If either argument is false, then the function returns false.
OR uses the following logic: If either argument is true, then the function returns true. If both arguments are false, then the function returns false.
Not uses the following logic: If the argument is false, then the function returns true. If the argument is true, then the function returns false.
Lang returns true or false depending on whether the language of the context node is the same as or is a sublanguage of the language specified in the argument.
Boolean converts the argument to a boolean. For detailed information about the logic, see the XPath 1.0 specification.
The String menu contains the following functions:
Contains uses the following logic: If the first argument string contains the second argument string, then the function returns true. Otherwise, the function returns false.
Normalize Space returns the argument string with whitespace normalized by stripping leading and trailing whitespace and by replacing sequences of whitespace characters with a single space.
String converts an object to a string.
Starts With uses the following logic: If the first argument string starts with the second argument string, then the function returns true. Otherwise, the function returns false.
String Length returns the number of characters in the string.
Substring returns the substring of the first argument starting at the position specified in the second argument with the length specified in the third argument. The position of the first character is 1, the position of the second character is 2, and so on. The third argument is optional. If the third argument is not specified, then the function returns the substring starting at the position specified in the second argument and continuing to the end of the string.
Substring Before returns the substring of the first argument string that precedes the first occurrence of the second argument string in the first argument string. If the first argument string does not contain the second argument string, then the function returns an empty string.
Substring After returns the substring of the first argument string that follows the first occurrence of the second argument string in the first argument string. If the first argument string does not contain the second argument string, then the function returns an empty string.
Translate returns the first argument string with occurrences of characters in the second argument string replaced by the character at the corresponding position in the third argument string.
Concat returns the concatenation of the arguments.
String Literal enables you to enter a string literal.
The Nodes menu contains the following functions:
Local Name returns the local part of the expanded name of the node in the argument node-set that is first in document order. (An expanded name consists of a local part and a namespace URI.)
Name returns the qualified name that represents the expanded name of the node in the argument node-set that is first in document order. (An expanded name consists of a local part and a namespace URI.)
Namespace URI returns the namespace URI of the expanded name of the node in the argument node-set that is first in document order. (An expanded name consists of a local part and a namespace URI.)
Position returns the context position.
Last returns the context size.
Count returns the number of nodes in the argument node-set.
The Number menu contains the following functions:
Number converts the argument to a number. For detailed information about the logic, see the XPath 1.0 specification.
Number Literal enables you to enter a number literal.
Round returns the number that is closest to the argument and that is an integer.
Sum returns the sum, for each node in the argument node-set, of the result of converting the string values of the node to a number.
Floor returns the largest number that is not greater than the argument and that is an integer.
Ceiling returns the smallest number that is not less than the argument and that is an integer.