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}selectionFailure,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}selectionFailure,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
