<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Comic Sans MS";
        panose-1:3 15 7 2 3 3 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>I have a question about Dynamic Parallel Processing.&nbsp; 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?<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Here is my test example:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I created a simple test workflow with a Dynamic Parallel Block (this is the only step in the test workflow):<o:p></o:p></p><p class=MsoNormal><img width=265 height=344 id="Picture_x0020_1" src="cid:image005.jpg@01CF2D55.799EBCF0"><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></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:<o:p></o:p></p><p class=MsoNormal><img width=548 height=133 id="Picture_x0020_2" src="cid:image002.png@01CF2D4E.28612D70"><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>The Parallel Processing for the block is based on the multi-line element TABLE_OF_APPROVERS:<o:p></o:p></p><p class=MsoNormal><img width=422 height=111 id="Picture_x0020_3" src="cid:image003.png@01CF2D4E.28612D70"><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>The TABLE_OF_APPROVERS element is a structure that has an Agent, an Item Number, and a Result field:<o:p></o:p></p><p class=MsoNormal><img width=538 height=80 id="Picture_x0020_4" src="cid:image004.png@01CF2D4E.28612D70"><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></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.&nbsp; I also set up a return binding to pass the LINE element back to the indexed multiline element.&nbsp; 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:<o:p></o:p></p><p class=MsoNormal><img width=779 height=218 id="Picture_x0020_5" src="cid:image007.png@01CF2D4F.14A88B10"><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></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:<o:p></o:p></p><p class=MsoNormal><img width=608 height=213 id="Picture_x0020_6" src="cid:image008.png@01CF2D51.56F1ECD0"><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></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:<o:p></o:p></p><p class=MsoNormal><img width=753 height=209 id="Picture_x0020_7" src="cid:image009.png@01CF2D51.56F1ECD0"><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>When I test this in SWUS, I define two entries in the TABLE_OF_APPROVERS multiline element:<o:p></o:p></p><p class=MsoNormal><img width=421 height=234 id="Picture_x0020_8" src="cid:image010.png@01CF2D52.3E14C330"><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>The workflow runs and correctly creates two approval tasks as expected.&nbsp; One user Rejects and the other user Approves:<o:p></o:p></p><p class=MsoNormal><img width=764 height=184 id="Picture_x0020_9" src="cid:image011.png@01CF2D52.3E14C330"><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></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:<o:p></o:p></p><p class=MsoNormal><img width=398 height=151 id="Picture_x0020_10" src="cid:image012.png@01CF2D53.999D6BC0"><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><img width=394 height=154 id="Picture_x0020_11" src="cid:image013.png@01CF2D53.999D6BC0"><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>But when I look at the main workflow container, the multiline element did not get updated with the User Decisions:<o:p></o:p></p><p class=MsoNormal><img width=415 height=187 id="Picture_x0020_12" src="cid:image014.png@01CF2D54.5689D4D0"><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>So is it possible to do what I am trying to do here?&nbsp; Can I pass results from the individual parallel steps back to the multiline container element in the main workflow?<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Comic Sans MS";color:blue'>Loren Bratzler<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray'>Norfolk Southern Corporation<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray'>Email: <a href="mailto:loren.bratzler@nscorp.com"><span style='color:blue'>loren.bratzler@nscorp.com</span></a><o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>