I tried this and I got the same error.
On Tue, Jun 14, 2011 at 4:14 PM, Christophe Noel <[email protected]> wrote: > If I'm not wrong, you should use $ode:process-property instead ? > > -----Original Message----- > From: Rafal [mailto:[email protected]] > Sent: mardi 14 juin 2011 15:14 > To: [email protected] > Subject: How to use ode:process-property('ode.localhost.address') > > Hi, > I need to get server's ip address. > I write test process and I get error: > [BpelProcess] ProcessImpl completed with fault > '{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure' > Can somebody tell me what is wrong? > > Thanks, > > Rafal > > > My process: > <bpel:process name="test" > targetNamespace="http://www.test.pl" > xmlns:tns="http://www.test.pl" > xmlns:ode="http://www.apache.org/ode/type/extension" > xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable" > queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0" > expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0" > > > <bpel:import location="testArtifacts.wsdl" > namespace="http://www.test.pl" > importType="http://schemas.xmlsoap.org/wsdl/" /> > > <bpel:partnerLinks> > <bpel:partnerLink name="client" > partnerLinkType="tns:test" > myRole="testProvider" > /> > </bpel:partnerLinks> > > <bpel:variables> > <bpel:variable name="input" > messageType="tns:testRequestMessage"/> > <bpel:variable name="output" > messageType="tns:testResponseMessage"/> > </bpel:variables> > > <bpel:sequence name="main"> > <bpel:receive name="receiveInput" partnerLink="client" > portType="tns:test" > operation="process" variable="input" > createInstance="yes"/> > <bpel:assign> > <bpel:copy> > > <bpel:from>ode:process-property('ode.localhost.address')</bpel:from> > <bpel:to part="payload" variable="output" /> > </bpel:copy> > </bpel:assign> > <bpel:reply name="replyOutput" > partnerLink="client" > portType="tns:test" > operation="process" > variable="output" > /> > </bpel:sequence> > </bpel:process> >
