Why does the Boolean function have to be converted to string before one can compare it to true or false ?

Why does the Boolean function have to be converted to string before one can compare it to true or false ?

book

Article ID: KB0085303

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
For Booleans in BW they are  treated as strings.
XPath treats all values from your data (i.e. from variables) as strings regardless of what the schema says it is.

As see the attached sample in that in order for the Boolean to work correctly you have to cast it as a string in the Transition formula

$Decision=string(true())

A string is converted to a boolean with the following formula:

'string.length()&gt0' not, as you might guess, by 'string="true"'.

Please see for further information
http://www.w3.org/TR/xpath.

Issue/Introduction

Why does the Boolean function have to be converted to string before one can compare it to true or false ?