<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Forest Floor</TITLE>
<STYLE>BODY {
        MARGIN-TOP: 5px; FONT-SIZE: 12pt; MARGIN-LEFT: 10px; COLOR: #336600; FONT-FAMILY: "Tempus Sans ITC", "Lucida Sans", "sans serif"
}
A {
        COLOR: #996600
}
HR {
        WIDTH: 100%; COLOR: #666600; HEIGHT: 3px
}
</STYLE>
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff background=cid:278593722@29102006-101b>
<DIV><FONT face=Arial color=#000000 size=2><SPAN
class=278593722-29102006>Hi.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN
class=278593722-29102006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN class=278593722-29102006>I have
a requirement to 'parallel process' a subworkflow using a multiline container
element, i.e. the subworkflow will be invoked for each row of the multiline
container. </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN
class=278593722-29102006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN class=278593722-29102006>I have
managed this successfully before, but with this particular case the requirement
is to update the multiline container element after the subworkflow has been
processed.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN
class=278593722-29102006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN class=278593722-29102006>My
binding for this is as follows :</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN
class=278593722-29102006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN
class=278593722-29102006>Workflow(A):
Subworkflow (step):</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN
class=278593722-29102006></SPAN></FONT><FONT face=Arial color=#000000
size=2><SPAN
class=278593722-29102006>&MULTIROW[&_WF_PARFOREACH_INDEX&]&
--> &SINGLEROW&
</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN class=278593722-29102006><SPAN
class=278593722-29102006>&MULTIROW[&_WF_PARFOREACH_INDEX&]& <--
&SINGLEROW&</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN class=278593722-29102006><SPAN
class=278593722-29102006></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN class=278593722-29102006><SPAN
class=278593722-29102006>With two lines in the multiline container element, each
line is processed correctly by the subworkflow.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN class=278593722-29102006><SPAN
class=278593722-29102006></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN class=278593722-29102006><SPAN
class=278593722-29102006>However, on returning to the 'calling' workflow (A),
the second row is updated on each occasion, presumably because
&_WF_PARFOREACH_INDEX&]& retains the value of the
highest processed row index.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN class=278593722-29102006><SPAN
class=278593722-29102006></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN class=278593722-29102006><SPAN
class=278593722-29102006>Can anyone tell me where I'm going wrong, and how
to do it properly?</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN class=278593722-29102006><SPAN
class=278593722-29102006></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN class=278593722-29102006><SPAN
class=278593722-29102006>Thanks.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN class=278593722-29102006><SPAN
class=278593722-29102006></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN class=278593722-29102006><SPAN
class=278593722-29102006>Nigel.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2><SPAN
class=278593722-29102006></SPAN></FONT> </DIV><br><br><table bgcolor=white style="color:black"><tr><td><br>This is an email from Australian Health & Nutrition Association Limited,<br>
ABN 63 096 452 872 trading as Sanitarium Health Food Company.<br>
<br>
THIS E-MAIL IS CONFIDENTIAL.<br>
Any recipient who is not the intended recipient is requested to<br>
notify the sender by return e-mail and erase all copies of the message<br>
and attachments. The sender cannot guarantee that this email or any<br>
attachment to it is free of computer viruses or other conditions which may<br>
damage or interfere with data, hardware or software with which it might be used.<br>
<br>
If you do not wish to receive commercial email messages from Sanitarium Health Food<br>
Company, please send an unsubscribe message to the sender of this email, or contact<br>
unsubscribe@sanitarium.com.au.<br>
</td></tr></table></BODY></HTML>