This section describes the Boolean functions that are available
in expressions.
booleanConverts
a given value to an equivalent boolean value. This
function is useful for testing for the existence of a node in the
data model.
Syntax boolean(Expression)
ExampleThe
following XPath expression returns true because the stringVar node exists
in the process data model:
boolean(/process_data/@stringVar)
falseReturns false.
This function is useful when you need to compare boolean values
to a value of false, or set the value of a data
item to false.
ReturnsA boolean value
of false.
ExampleThe
following route condition tests whether the /process_data/stringVar node does
not exist in the process data model:
/process_data/@stringVar = false()
The
following Set Value mapping sets the value of the booleanVar node
to false:
/process_data/@booleanVar = false()
notThe
inverse value of a given boolean value.
ParametersA boolean value.
ReturnsA boolean value
of true if the parameter boolean is false, otherwise
false.
trueReturns true.
This function is useful when you must compare boolean values to a
value of true, or set the value of a data item
to true.
ReturnsA boolean value
of true.
ExampleThe
following route condition tests whether the /process_data/stringVar node exists
in the process data model:
/process_data/@stringVar = true()
The
following Set Value mapping sets the value of the booleanVar node
to true:
/process_data/@booleanVar = true()
|
|
|