<div dir="ltr">Hello <span style="font-family:arial,sans-serif;font-size:13px;font-weight:bold;white-space:nowrap">Bratzler, Loren</span><div><font face="arial, sans-serif"><span style="white-space:nowrap"><b>joining you to your question.<br>
</b></span></font><div><font face="arial, sans-serif"><span style="white-space:nowrap"><b> </b></span></font></div><div><font face="arial, sans-serif"><span style="white-space:nowrap"><b>  maybe define a local container  like loc _table_approvers  fill it with the line element and overwrite the workflow container</b></span></font></div>
<div><font face="arial, sans-serif"><span style="white-space:nowrap"><b>  if you don&#39;t mind the original order because it would depend on approvers.</b></span></font></div></div><div><font face="arial, sans-serif"><span style="white-space:nowrap"><b><br>
</b></span></font></div><div><font face="arial, sans-serif"><span style="white-space:nowrap"><b>Best regards</b></span></font></div><div><font face="arial, sans-serif"><span style="white-space:nowrap"><b>Rina</b></span></font></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 4:32 PM, Bratzler, Loren <span dir="ltr">&lt;<a href="mailto:loren.bratzler@nscorp.com" target="_blank">loren.bratzler@nscorp.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">I have a question about Dynamic Parallel Processing.  I am wondering if it is possible to pass results back to the multi-line element in the main workflow container from the LINE element in the individual parallel tasks?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Here is my test example:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I created a simple test workflow with a Dynamic Parallel Block (this is the only step in the test workflow):<u></u><u></u></p>
<p class="MsoNormal"><img width="265" height="344" src="cid:image005.jpg@01CF2D55.799EBCF0"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The Parallel Block is designated as ParForEach because I want the approval tasks to go to all approvers at the same time:<u></u><u></u></p>
<p class="MsoNormal"><img width="548" height="133" src="cid:image002.png@01CF2D4E.28612D70"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The Parallel Processing for the block is based on the multi-line element TABLE_OF_APPROVERS:<u></u><u></u></p>
<p class="MsoNormal"><img width="422" height="111" src="cid:image003.png@01CF2D4E.28612D70"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The TABLE_OF_APPROVERS element is a structure that has an Agent, an Item Number, and a Result field:<u></u><u></u></p>
<p class="MsoNormal"><img width="538" height="80" src="cid:image004.png@01CF2D4E.28612D70"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I have set up the binding to pass the indexed multiline element of the workflow container to the LINE element in the step container.  I also set up a return binding to pass the LINE element back to the indexed multiline element.  This was what I was hoping would allow me to update the multiline element in the workflow container but it does not appear to be working:<u></u><u></u></p>
<p class="MsoNormal"><img width="779" height="218" src="cid:image007.png@01CF2D4F.14A88B10"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">For the User Decision step within the block, I have defined the Agent to be the Approver from the LINE element:<u></u><u></u></p>
<p class="MsoNormal"><img width="608" height="213" src="cid:image008.png@01CF2D51.56F1ECD0"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">And in the binding for the User Decision step, I am passing back _WI_RESULT to the User Decision field on the LINE element:<u></u><u></u></p>
<p class="MsoNormal"><img width="753" height="209" src="cid:image009.png@01CF2D51.56F1ECD0"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">When I test this in SWUS, I define two entries in the TABLE_OF_APPROVERS multiline element:<u></u><u></u></p>
<p class="MsoNormal"><img width="421" height="234" src="cid:image010.png@01CF2D52.3E14C330"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The workflow runs and correctly creates two approval tasks as expected.  One user Rejects and the other user Approves:<u></u><u></u></p>
<p class="MsoNormal"><img width="764" height="184" src="cid:image011.png@01CF2D52.3E14C330"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">If I look at the containers for the individual Parallel Block steps, I can see that the LINE elements are getting updated with the User Decision:<u></u><u></u></p>
<p class="MsoNormal"><img width="398" height="151" src="cid:image012.png@01CF2D53.999D6BC0"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><img width="394" height="154" src="cid:image013.png@01CF2D53.999D6BC0"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">But when I look at the main workflow container, the multiline element did not get updated with the User Decisions:<u></u><u></u></p><p class="MsoNormal"><img width="415" height="187" src="cid:image014.png@01CF2D54.5689D4D0"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">So is it possible to do what I am trying to do here?  Can I pass results from the individual parallel steps back to the multiline container element in the main workflow?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Comic Sans MS&quot;;color:blue">Loren Bratzler<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray">Norfolk Southern Corporation<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray">Email: <a href="mailto:loren.bratzler@nscorp.com" target="_blank"><span style="color:blue">loren.bratzler@nscorp.com</span></a><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p></div></div><br>_______________________________________________<br>
SAP-WUG mailing list<br>
<a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
<br></blockquote></div><br></div>