Hi Tammo, Did you get time to check this? Or can you point me to some reference material.
Regards, Jitendra -----Original Message----- From: Kharche, Jitendra [mailto:[email protected]] Sent: Tuesday, December 09, 2014 11:42 AM To: user Subject: RE: ForEach not working in ODE 1.3.6 Hi Tammo, Please find attached the process. I am using XPath 1.0. However, while I was looking for help on the following errors, I saw some posts saying XPath2.0 resolves this issue. So I changed the bpel:query lines in my process to use XPath 2.0 as follows. Original line: <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"> Changed line: <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"> But it did not help. I got the same errors. I tried writing a sample process using RepeatUntil and While. I got same errors for these two. Attaching those sample processes too. However, I hope the solution will be same for all. Regards, Jitendra -----Original Message----- From: Tammo van Lessen [mailto:[email protected]] Sent: Monday, December 08, 2014 7:12 PM To: user Subject: Re: ForEach not working in ODE 1.3.6 Hi Jitendra, thanks for reporting this. Could you please try to attach your sample process so that we can try to reproduce the issue? Do you use XPath 1.0 or 2.0? Thanks, Tammo On Tue, Dec 2, 2014 at 12:16 PM, Kharche, Jitendra < [email protected]> wrote: > Hi, > > I need to use ForEach loop in my process. However it is not working > correctly. > I am using ODE 1.3.6. Attaching the BPEL project for reference. > > I am getting following errors: > > > > 1. If I do not use $ symbol before variable Counter I get following > error: > > 16:29:42,866 INFO [ASSIGN] Assignment Fault: { > http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFail > ure,lineNo=75,faultExplanation=No results for expression: > 'tns:args[Counter]/tns:name' against '<?xml version="1.0" > encoding="UTF-8"?> <sam:TestForEachLooProcessRequest xmlns:sam=" > http://eclipse.org/bpel/sample" xmlns:soapenv=" > http://schemas.xmlsoap.org/soap/envelope/"> > > <sam:args> > <sam:name>arg1</sam:name> > <sam:value>val1</sam:value> > </sam:args> > <sam:args> > <sam:name>arg2</sam:name> > <sam:value>val2</sam:value> > </sam:args> > <sam:args> > <sam:name>arg3</sam:name> > <sam:value>val3</sam:value> > </sam:args> > </sam:TestForEachLooProcessRequest>' > ------------------------------------------------------- > > > 2. If I use $Counter I get following error: > > 16:33:25,123 INFO [ASSIGN] Assignment Fault: { > http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFail > ure,lineNo=75,faultExplanation=Multiple > results for expression: 'tns:args[$Counter]/tns:name' against '<?xml > version="1.0" encoding="UTF-8"?> <sam:TestForEachLooProcessRequest > xmlns:sam=" > http://eclipse.org/bpel/sample" xmlns:soapenv=" > http://schemas.xmlsoap.org/soap/envelope/"> > > <sam:args> > <sam:name>arg1</sam:name> > <sam:value>val1</sam:value> > </sam:args> > <sam:args> > <sam:name>arg2</sam:name> > <sam:value>val2</sam:value> > </sam:args> > <sam:args> > <sam:name>arg3</sam:name> > <sam:value>val3</sam:value> > </sam:args> > </sam:TestForEachLooProcessRequest>' > > What am I missing? > Or this is a bug in ODE. > > Regards, > Jitendra > > -- Tammo van Lessen - http://www.taval.de
