<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style type="text/css">
<!--

/*
  The original subSilver Theme for phpBB version 2+
  Created by subBlue design
  http://www.subBlue.com

  NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
  theme administration centre. When you have finalised your style you could cut the final CSS code
  and place it in an external file, deleting this section to save bandwidth.
*/


 /* General page style. The scroll bar colours only visible in IE5.5+ */
body {
        background-color: #E5E5E5;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 11;
        color: #000000;
}

/* General font families for common tags */
font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif }
p, td                { font-size : 11; color : #000000; }
a:link,a:active,a:visited { color : #006699; }
a:hover                { text-decoration: underline; color : #DD6900; }
hr        { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}
h1,h2                { font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; font-size : 22px; font-weight : bold; text-decoration : none; line-height : 120%; color : #000000;}


/* This is the border line & background colour round the entire page */
.bodyline        { background-color: #FFFFFF; border: 1px #98AAB1 solid; }


/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; line-height: 12px}
.gen,.genmed,.gensmall { color : #000000; }
a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover        { color: #DD6900; text-decoration: underline; }


/* Forum title: Text and link to the forums used in: index.php */
.forumlink                { font-weight: bold; font-size: 12px; color : #006699; }
a.forumlink         { text-decoration: none; color : #006699; }
a.forumlink:hover{ text-decoration: underline; color : #DD6900; }


/* The content of the posts (body of text) */
.postbody { font-size : 12px; line-height: 18px}
a.postlink:link        { text-decoration: none; color : #006699 }
a.postlink:visited { text-decoration: none; color : #5493B4; }
a.postlink:hover { text-decoration: underline; color : #DD6900}


/* Quote & Code blocks */
.code {
        font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600;
        background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
        border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

.quote {
        font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%;
        background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
        border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

-->
</style>
</head>
        <body>

        <div class="postbody">Hi,<br />
<br />
I tried to use the While activity in my bpel process for replace the ForEach. But it don't work correctly. In fact, I got the following error :<br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>           <td><span class="genmed"><b>Code:</b></span></td>        </tr>        <tr>          <td class="code"><br />
22 dÚc. 2008 13&#58;55&#58;45 org.ow2.orchestra.lang.jaxen.XPathEvaluator createElement<br />
GRAVE&#58; cannot create element for step with non-numeric predicate&#58; &#91;&#40;DefaultNameS<br />
tep&#41;&#58; tns&#58;ecart&#93;<br />
&#91;Petals.Container.Components.petals-se-orchestra&#93;-SEVERE 2008-12-22 13&#58;55&#58;45,233<br />
&nbsp;OrchestraException&#58; Message can not be processed<br />
</td>        </tr></table><span class="postbody"><br />
<br />
This is my code :<br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>           <td><span class="genmed"><b>Code:</b></span></td>        </tr>        <tr>          <td class="code"><br />
<bpws&#58;assign validate="no" name="Assign"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;copy><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;from><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!&#91;CDATA&#91;1&#93;&#93;><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </bpws&#58;from><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;to variable="counter"></bpws&#58;to><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </bpws&#58;copy><br />
</bpws&#58;assign><br />
<bpws&#58;while name="While"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;condition><!&#91;CDATA&#91;$counter<=count&#40;$XC01PLResponse.xc01ResponsePart/ecarts/ecart&#41;&#93;&#93;></bpws&#58;condition><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;sequence><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;assign validate="no" name="ExtraiteXC01ResultToReleveDetteResponse"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;copy><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;from expressionLanguage="urn&#58;oasis&#58;names&#58;tc&#58;wsbpel&#58;2.0&#58;sublang&#58;xpath1.0"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!&#91;CDATA&#91;$XC01PLResponse.xc01ResponsePart/ecarts/ecart&#91;$counter&#93;/xsd&#58;CodePeriode&#93;&#93;><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </bpws&#58;from><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;to expressionLanguage="urn&#58;oasis&#58;names&#58;tc&#58;wsbpel&#58;2.0&#58;sublang&#58;xpath1.0"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!&#91;CDATA&#91;$output.ReleveDetteResponse/tns&#58;ecarts/tns&#58;ecart&#91;$counter&#93;/tns&#58;CodePeriode&#93;&#93;><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </bpws&#58;to><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </bpws&#58;copy><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</bpws&#58;assign><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;assign validate="no" name="Loop"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;copy><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;from expressionLanguage="urn&#58;oasis&#58;names&#58;tc&#58;wsbpel&#58;2.0&#58;sublang&#58;xpath1.0"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!&#91;CDATA&#91;$counter+1&#93;&#93;><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </bpws&#58;from><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;to variable="counter"></bpws&#58;to><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </bpws&#58;copy><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </bpws&#58;assign><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </bpws&#58;sequence><br />
</bpws&#58;while><br />
</td>        </tr></table><span class="postbody"><br />
<br />
However, my bpel process work correctly when I replace the While activity by an sequence of <copy> clauses :<br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>           <td><span class="genmed"><b>Code:</b></span></td>        </tr>        <tr>          <td class="code"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;assign validate="no" name="ExtraiteXC01ResultToReleveDetteResponse"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;copy><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;from expressionLanguage="urn&#58;oasis&#58;names&#58;tc&#58;wsbpel&#58;2.0&#58;sublang&#58;xpath1.0"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!&#91;CDATA&#91;$XC01PLResponse.xc01ResponsePart/ecarts/ecart&#91;1&#93;/xsd&#58;CodePeriode&#93;&#93;><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </bpws&#58;from><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;to expressionLanguage="urn&#58;oasis&#58;names&#58;tc&#58;wsbpel&#58;2.0&#58;sublang&#58;xpath1.0"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!&#91;CDATA&#91;$output.ReleveDetteResponse/tns&#58;ecarts/tns&#58;ecart&#91;1&#93;/tns&#58;CodePeriode&#93;&#93;><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </bpws&#58;to><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </bpws&#58;copy><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;copy><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;from expressionLanguage="urn&#58;oasis&#58;names&#58;tc&#58;wsbpel&#58;2.0&#58;sublang&#58;xpath1.0"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!&#91;CDATA&#91;$XC01PLResponse.xc01ResponsePart/ecarts/ecart&#91;2&#93;/xsd&#58;CodePeriode&#93;&#93;><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </bpws&#58;from><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <bpws&#58;to expressionLanguage="urn&#58;oasis&#58;names&#58;tc&#58;wsbpel&#58;2.0&#58;sublang&#58;xpath1.0"><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!&#91;CDATA&#91;$output.ReleveDetteResponse/tns&#58;ecarts/tns&#58;ecart&#91;2&#93;/tns&#58;CodePeriode&#93;&#93;><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </bpws&#58;to><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </bpws&#58;copy><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; . . . . . .<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</bpws&#58;assign><br />
</td>        </tr></table><span class="postbody"></div>
        <br /><div class="gensmall"><br />
<br />
<br />
-------------------- m2f --------------------<br />
<br />
Read this forum topic online here:<br />
<a href="http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=370#370" target="_blank">http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=370#370</a><br />
<br />
-------------------- m2f --------------------</div>
        </body>
</html>