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

Reply via email to