Thanks for the link. I'll have to get the ODE build to run these tests since the 2.0 snapshot war I downloaded fails to run this bpel. There's a Message exchange failure which I assume is due to a runtime failure that's causing the reply to not execute.
As for the pid variable - there was no extension declared and no variable reference made to $pid. This was the HelloWorld2 example with the only change being from the Xpath 2.0 declaration to the Xquery 1.0 declaration for the expressionLanguage attribute. On 1/26/09 4:39 PM, "Karthick Sankarachary" <[email protected]> wrote: Mark, Please see the test case located here<http://jukka.zitting.name/git/?p=ode.git;a=tree;f=bpel-test/src/test/resources/bpel/2.0/TestXQueryExpression;h=6cb6f45761623ae9e3600eb7a83e6fe92e2456a5;hb=HEAD>that illustrates the use of XQuery 1.0 <http://www.w3.org/TR/xquery/> in BPEL. As far as the variable "pid" is concerned, it is declared in the " http://www.apache.org/ode/type/extension" namespace. My guess is that your process tries to reference it from another namespace. Regards, Karthick On 1/26/09, Ford, Mark <[email protected]> wrote: > > I'm interested in seeing an example of an Xquery expression at work in ODE > 2.0. I haven't found any documentation on how to do this and my few attempts > at this so far haven't worked. > > To keep things simple, I updated HelloWorld2 to change its one expression > from Xpath 2.0 to Xquery. > > For example: > > <from > expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">concat($tmpVar,' > World')</from> > > At deployment time, I see the stacktrace below which indicates a reference > to an undeclared variable named "pid". There is no such explicit declaration > within the bpel. > > ERROR - GeronimoLog.error(108) | Deploy failed; error: [CompilationErrors] > Compilation completed with 1 error(s): > null:58: error: [UndeclaredVariable] Attempt to reference undeclared > variable "pid". > > org.apache.ode.bpel.compiler.api.CompilationException: error: > [CompilationErrors] Compilation completed with 1 error(s): > null:58: error: [UndeclaredVariable] Attempt to reference undeclared > variable "pid". > > at > org.apache.ode.bpel.compiler.v2.BpelCompilerImpl.compile(BpelCompilerImpl.java:763) > at > org.apache.ode.bpel.compiler.v2.BpelCompilerImpl.compile(BpelCompilerImpl.java:132) > at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:268) > at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:338) > at > org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:171) > at > org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:134) > at > org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:183) > at > org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java:144) > at > org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPoller.java:55) > at > org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(DeploymentPoller.java:188) > ERROR - GeronimoLog.error(108) | Deployment of HelloWorld2 failed, aborting > for now. > org.apache.ode.bpel.iapi.ContextException: Deploy failed; error: > [CompilationErrors] Compilation completed with 1 error(s): > null:58: error: [UndeclaredVariable] Attempt to reference undeclared > variable "pid". > > at > org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:187) > at > org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java:144) > at > org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPoller.java:55) > at > org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(DeploymentPoller.java:188) > Caused by: org.apache.ode.bpel.compiler.api.CompilationException: error: > [CompilationErrors] Compilation completed with 1 error(s): > null:58: error: [UndeclaredVariable] Attempt to reference undeclared > variable "pid". > > at > org.apache.ode.bpel.compiler.v2.BpelCompilerImpl.compile(BpelCompilerImpl.java:763) > at > org.apache.ode.bpel.compiler.v2.BpelCompilerImpl.compile(BpelCompilerImpl.java:132) > at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:268) > at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:338) > at > org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:171) > at > org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:134) > at > org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:183) > ... 3 more > -- Best Regards, Karthick Sankarachary
