Hi,
I have seen a strange behavior or I wonder am I missing anything in OSB assing action.
I am developing a simple proxy service in 11.1.1.6 OSB.Following are the steps involved in my code.
- In first assign action, the value is assigned as xs:integer(1) to a varible varTest
- Next, I've added an if condition as below.
if( $varTest != xs:integer(0))
then
assing "success" to $varResult
While testing the PS using the test console, I've got the following error at if condition.
line 1, column 14: {err}FOTY0012: Items not comparable: types are "{http://www.w3.org/2001/XMLSchema}string" and "{http://www.w3.org/2001/XMLSchema}integer"
This error is fixed after changing the if condition as below.
if(xs:integer($varTest) != xs:integer(0))
Ideally varTest should contain value of type integer right?
Is it kind of a bug or am I doing any mistake?
Could you help me out.
Regards,
Vasudev Palivela.