Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Integer value in a variable of assing action is no more integer - OSB

966654Sep 14 2013 — edited Sep 16 2013

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.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 14 2013
Added on Sep 14 2013
3 comments
808 views