You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Rafal Rusin (JIRA)" <ji...@apache.org> on 2009/06/15 12:01:07 UTC
[jira] Created: (ODE-623) Using boolean global variable inside
xquery doesn't work
Using boolean global variable inside xquery doesn't work
--------------------------------------------------------
Key: ODE-623
URL: https://issues.apache.org/jira/browse/ODE-623
Project: ODE
Issue Type: Bug
Components: BPEL Runtime
Affects Versions: 1.3.2
Reporter: Rafal Rusin
I declared variable:
<variable name="boolVar" type="xsd:boolean"/>
Then I used xquery expression, like this:
<from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
if ($boolVar) then "trueValue" else "falseValue"
</from>
And I got:
[junit] Invocation#/home/joker/git/top/odetop-apache/APACHE_ODE_1.X/bpel-test/target/test-classes/bpel/2.0/TestXQueryExpression/test.properties#1: Unexpected final message exchange status; got FAULT: {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure | An exception occured while evaluating "{OXPath10Expression null}": Error while executing an XQuery expression: net.sf.saxon.trans.XPathException: No value supplied for required parameter $boolVar, expected RESPONSE
I did similar for string global var and it worked fine with expression like this:
<from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
if (xsd:boolean($stringVar)) then "trueValue" else "falseValue"
</from>
Attached is a test case for this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ODE-623) Using boolean global variable inside
xquery doesn't work
Posted by "Rafal Rusin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rafal Rusin updated ODE-623:
----------------------------
Attachment: xquery-boolean-test.diff
ODE test case
> Using boolean global variable inside xquery doesn't work
> --------------------------------------------------------
>
> Key: ODE-623
> URL: https://issues.apache.org/jira/browse/ODE-623
> Project: ODE
> Issue Type: Bug
> Components: BPEL Runtime
> Affects Versions: 1.3.2
> Reporter: Rafal Rusin
> Attachments: xquery-boolean-test.diff
>
>
> I declared variable:
> <variable name="boolVar" type="xsd:boolean"/>
> Then I used xquery expression, like this:
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> if ($boolVar) then "trueValue" else "falseValue"
> </from>
> And I got:
> [junit] Invocation#/home/joker/git/top/odetop-apache/APACHE_ODE_1.X/bpel-test/target/test-classes/bpel/2.0/TestXQueryExpression/test.properties#1: Unexpected final message exchange status; got FAULT: {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure | An exception occured while evaluating "{OXPath10Expression null}": Error while executing an XQuery expression: net.sf.saxon.trans.XPathException: No value supplied for required parameter $boolVar, expected RESPONSE
> I did similar for string global var and it worked fine with expression like this:
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> if (xsd:boolean($stringVar)) then "trueValue" else "falseValue"
> </from>
> Attached is a test case for this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ODE-623) Using boolean global variable inside
xquery doesn't work
Posted by "Karthick Sankarachary (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12719843#action_12719843 ]
Karthick Sankarachary commented on ODE-623:
-------------------------------------------
Prior to binding variables with their values with the XQuery engine, we have to ascertain the XQuery types of those values. Used to be that we didn't handle booleans (and a few other primitive types) properly, but that has now been taken care of. For more details, please have a look see at revision 785015.
> Using boolean global variable inside xquery doesn't work
> --------------------------------------------------------
>
> Key: ODE-623
> URL: https://issues.apache.org/jira/browse/ODE-623
> Project: ODE
> Issue Type: Bug
> Components: BPEL Runtime
> Affects Versions: 1.3.2
> Reporter: Rafal Rusin
> Assignee: Karthick Sankarachary
> Fix For: 1.3.3
>
> Attachments: xquery-boolean-test.diff
>
>
> I declared variable:
> <variable name="boolVar" type="xsd:boolean"/>
> Then I used xquery expression, like this:
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> if ($boolVar) then "trueValue" else "falseValue"
> </from>
> And I got:
> [junit] Invocation#/home/joker/git/top/odetop-apache/APACHE_ODE_1.X/bpel-test/target/test-classes/bpel/2.0/TestXQueryExpression/test.properties#1: Unexpected final message exchange status; got FAULT: {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure | An exception occured while evaluating "{OXPath10Expression null}": Error while executing an XQuery expression: net.sf.saxon.trans.XPathException: No value supplied for required parameter $boolVar, expected RESPONSE
> I did similar for string global var and it worked fine with expression like this:
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> if (xsd:boolean($stringVar)) then "trueValue" else "falseValue"
> </from>
> Attached is a test case for this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (ODE-623) Using boolean global variable inside
xquery doesn't work
Posted by "Karthick Sankarachary (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karthick Sankarachary resolved ODE-623.
---------------------------------------
Resolution: Fixed
Fix Version/s: 1.3.3
> Using boolean global variable inside xquery doesn't work
> --------------------------------------------------------
>
> Key: ODE-623
> URL: https://issues.apache.org/jira/browse/ODE-623
> Project: ODE
> Issue Type: Bug
> Components: BPEL Runtime
> Affects Versions: 1.3.2
> Reporter: Rafal Rusin
> Assignee: Karthick Sankarachary
> Fix For: 1.3.3
>
> Attachments: xquery-boolean-test.diff
>
>
> I declared variable:
> <variable name="boolVar" type="xsd:boolean"/>
> Then I used xquery expression, like this:
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> if ($boolVar) then "trueValue" else "falseValue"
> </from>
> And I got:
> [junit] Invocation#/home/joker/git/top/odetop-apache/APACHE_ODE_1.X/bpel-test/target/test-classes/bpel/2.0/TestXQueryExpression/test.properties#1: Unexpected final message exchange status; got FAULT: {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure | An exception occured while evaluating "{OXPath10Expression null}": Error while executing an XQuery expression: net.sf.saxon.trans.XPathException: No value supplied for required parameter $boolVar, expected RESPONSE
> I did similar for string global var and it worked fine with expression like this:
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> if (xsd:boolean($stringVar)) then "trueValue" else "falseValue"
> </from>
> Attached is a test case for this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (ODE-623) Using boolean global variable inside
xquery doesn't work
Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Boisvert reassigned ODE-623:
---------------------------------
Assignee: Karthick Sankarachary
> Using boolean global variable inside xquery doesn't work
> --------------------------------------------------------
>
> Key: ODE-623
> URL: https://issues.apache.org/jira/browse/ODE-623
> Project: ODE
> Issue Type: Bug
> Components: BPEL Runtime
> Affects Versions: 1.3.2
> Reporter: Rafal Rusin
> Assignee: Karthick Sankarachary
> Attachments: xquery-boolean-test.diff
>
>
> I declared variable:
> <variable name="boolVar" type="xsd:boolean"/>
> Then I used xquery expression, like this:
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> if ($boolVar) then "trueValue" else "falseValue"
> </from>
> And I got:
> [junit] Invocation#/home/joker/git/top/odetop-apache/APACHE_ODE_1.X/bpel-test/target/test-classes/bpel/2.0/TestXQueryExpression/test.properties#1: Unexpected final message exchange status; got FAULT: {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure | An exception occured while evaluating "{OXPath10Expression null}": Error while executing an XQuery expression: net.sf.saxon.trans.XPathException: No value supplied for required parameter $boolVar, expected RESPONSE
> I did similar for string global var and it worked fine with expression like this:
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> if (xsd:boolean($stringVar)) then "trueValue" else "falseValue"
> </from>
> Attached is a test case for this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.