<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>David,</DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">Sounds like you have the sub Workflow&nbsp;functioning properly.&nbsp; Add a condition in the main Workflow using the container element (passed back from sub Workflow) to a branch for termination.</SPAN></DIV>
<DIV><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>Thomas</DIV>
<DIV><BR><BR>--- On <B>Thu, 11/5/09, david.s.dittmer@accenture.com <I>&lt;david.s.dittmer@accenture.com&gt;</I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: david.s.dittmer@accenture.com &lt;david.s.dittmer@accenture.com&gt;<BR>Subject: RE: Sub-Workflow when complete must terminate workflow<BR>To: sap-wug@mit.edu<BR>Date: Thursday, November 5, 2009, 10:47 AM<BR><BR>
<DIV id=yiv1121995970>
<STYLE>
<!--
#yiv1121995970 #yiv1215552479  
 filtered #yiv1215552479 {font-family:"Book Antiqua";panose-1:2 4 6 2 5 3 5 3 3 4;}
#yiv1121995970 filtered #yiv1215552479 {font-family:"Arial Narrow";panose-1:2 11 5 6 2 2 2 3 2 4;}
#yiv1121995970 filtered #yiv1215552479 {margin:1.0in .75in 1.0in .75in;}

#yiv1121995970  
 _filtered #yiv1121995970 {font-family:"Book Antiqua";panose-1:2 4 6 2 5 3 5 3 3 4;}
 _filtered #yiv1121995970 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
 _filtered #yiv1121995970 {font-family:"Arial Narrow";panose-1:2 11 5 6 2 2 2 3 2 4;}
#yiv1121995970  
#yiv1121995970 p.MsoNormal, #yiv1121995970 li.MsoNormal, #yiv1121995970 div.MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman";}
#yiv1121995970 h1
        {margin-right:0in;margin-left:0in;font-size:24.0pt;font-family:"Times New Roman";font-weight:bold;}
#yiv1121995970 h2
        {margin-right:0in;margin-left:0in;font-size:18.0pt;font-family:"Times New Roman";font-weight:bold;}
#yiv1121995970 h3
        {margin-right:0in;margin-left:0in;font-size:13.5pt;font-family:"Times New Roman";font-weight:bold;}
#yiv1121995970 p.MsoHeader, #yiv1121995970 li.MsoHeader, #yiv1121995970 div.MsoHeader
        {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman";}
#yiv1121995970 p.MsoFooter, #yiv1121995970 li.MsoFooter, #yiv1121995970 div.MsoFooter
        {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman";}
#yiv1121995970 p
        {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman";}
#yiv1121995970 p.ABLOCKPARA, #yiv1121995970 li.ABLOCKPARA, #yiv1121995970 div.ABLOCKPARA
        {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Book Antiqua";}
#yiv1121995970 p.ABULLET, #yiv1121995970 li.ABULLET, #yiv1121995970 div.ABULLET
        {margin-top:0in;margin-right:0in;margin-bottom:0in;margin-left:16.55pt;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Book Antiqua";}
#yiv1121995970 p.AINDENTEDBULLET, #yiv1121995970 li.AINDENTEDBULLET, #yiv1121995970 div.AINDENTEDBULLET
        {margin-top:0in;margin-right:0in;margin-bottom:0in;margin-left:33.1pt;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Book Antiqua";}
#yiv1121995970 p.AINDENTEDPARA, #yiv1121995970 li.AINDENTEDPARA, #yiv1121995970 div.AINDENTEDPARA
        {margin-top:0in;margin-right:0in;margin-bottom:0in;margin-left:16.55pt;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Book Antiqua";}
#yiv1121995970 p.ablockpara0, #yiv1121995970 li.ablockpara0, #yiv1121995970 div.ablockpara0
        {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman";}
#yiv1121995970 p.abullet0, #yiv1121995970 li.abullet0, #yiv1121995970 div.abullet0
        {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman";}
#yiv1121995970 p.aindentedbullet0, #yiv1121995970 li.aindentedbullet0, #yiv1121995970 div.aindentedbullet0
        {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman";}
#yiv1121995970 p.aindentedpara0, #yiv1121995970 li.aindentedpara0, #yiv1121995970 div.aindentedpara0
        {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman";}
#yiv1121995970 p.ablockpara1, #yiv1121995970 li.ablockpara1, #yiv1121995970 div.ablockpara1
        {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Book Antiqua";}
#yiv1121995970 p.abullet1, #yiv1121995970 li.abullet1, #yiv1121995970 div.abullet1
        {margin-top:0in;margin-right:0in;margin-bottom:0in;margin-left:16.55pt;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Book Antiqua";}
#yiv1121995970 p.aindentedbullet1, #yiv1121995970 li.aindentedbullet1, #yiv1121995970 div.aindentedbullet1
        {margin-top:0in;margin-right:0in;margin-bottom:0in;margin-left:33.1pt;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Book Antiqua";}
#yiv1121995970 p.aindentedpara1, #yiv1121995970 li.aindentedpara1, #yiv1121995970 div.aindentedpara1
        {margin-top:0in;margin-right:0in;margin-bottom:0in;margin-left:16.55pt;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Book Antiqua";}
#yiv1121995970 span.emailstyle231
        {font-family:Arial;color:windowtext;}
#yiv1121995970 span.EmailStyle34
        {font-family:Arial;color:navy;}
 _filtered #yiv1121995970 {margin:1.0in .75in 1.0in .75in;}
#yiv1121995970 div.Section1
        {}
-->
</STYLE>

<DIV class=Section1>
<P class=MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Hello Thomas,</SPAN></FONT></DIV>
<P class=MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Thanks for your recommendation. I have already &nbsp;selected &nbsp;the second approach. I tried that yesterday using a condition but could not get it work. I want the &nbsp;condition &nbsp;if &nbsp;TRUE to &nbsp;terminate the workflow but I could not get the workflow to do it as it just creates a loop and returns to the main flow…..is there some syntax that can be inserted in the condition to make it terminate.</SPAN></FONT></DIV>
<P class=MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></DIV>
<P class=MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">regards</SPAN></FONT></DIV>
<P class=MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></DIV>
<P class=MsoNormal><FONT color=navy size=3 face="Arial Narrow"><SPAN style="FONT-FAMILY: 'Arial Narrow'; COLOR: navy; FONT-SIZE: 12pt">David S Dittmer</SPAN></FONT><FONT color=navy><SPAN style="COLOR: navy"></SPAN></FONT></DIV>
<P class=MsoNormal><FONT color=navy size=3 face="Arial Narrow"><SPAN style="FONT-FAMILY: 'Arial Narrow'; COLOR: navy; FONT-SIZE: 12pt">Accenture</SPAN></FONT><FONT color=navy><SPAN style="COLOR: navy"></SPAN></FONT></DIV>
<P class=MsoNormal><FONT color=#0080c0 size=3 face="Arial Narrow"><SPAN style="FONT-FAMILY: 'Arial Narrow'; COLOR: #0080c0; FONT-SIZE: 12pt">||&nbsp;</SPAN></FONT><FONT color=#0080c0><SPAN style="COLOR: #0080c0"></SPAN></FONT></DIV>
<P class=MsoNormal><FONT color=navy size=3 face="Times New Roman"><SPAN style="COLOR: navy; FONT-SIZE: 12pt">&nbsp;</SPAN></FONT></DIV>
<DIV style="TEXT-ALIGN: center" class=MsoNormal align=center><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center SIZE=2 width="100%">
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT size=2 face=Tahoma><SPAN style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt; FONT-WEIGHT: bold">From:</SPAN></FONT></B><FONT size=2 face=Tahoma><SPAN style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt"> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <B><SPAN style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>BPT Consulting<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wednesday, November 04, 2009 8:34 PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> SAP Workflow Users' Group<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: Sub-Workflow when complete must terminate workflow</SPAN></FONT></DIV>
<P class=MsoNormal><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">&nbsp;</SPAN></FONT></DIV>
<TABLE class=MsoNormalTable border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD style="PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; PADDING-TOP: 0in" vAlign=top>
<DIV>
<P class=MsoNormal><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">David,</SPAN></FONT></DIV></DIV>
<DIV>
<P class=MsoNormal><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">&nbsp;</SPAN></FONT></DIV></DIV>
<DIV>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">Put the wait for event in the main Workflow process.&nbsp; Then you can control what steps are processed.&nbsp; If that design doesn't work for you then pass&nbsp;a container element from sub Workflow to main Workflow.&nbsp; Use this element to make decision on steps to process.</SPAN></FONT></DIV></DIV>
<DIV>
<P class=MsoNormal><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">&nbsp;</SPAN></FONT></DIV></DIV>
<DIV>
<P class=MsoNormal><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">Regards,</SPAN></FONT></DIV></DIV>
<DIV>
<P class=MsoNormal><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">Thomas Maue<BR><BR>--- On <B><SPAN style="FONT-WEIGHT: bold">Wed, 11/4/09, david.s.dittmer@accenture.com <I><SPAN style="FONT-STYLE: italic">&lt;david.s.dittmer@accenture.com&gt;</SPAN></I></SPAN></B> wrote:</SPAN></FONT></DIV></DIV>
<BLOCKQUOTE style="BORDER-BOTTOM: medium none; BORDER-LEFT: #1010ff 1.5pt solid; PADDING-BOTTOM: 0in; MARGIN-TOP: 5pt; PADDING-LEFT: 4pt; PADDING-RIGHT: 0in; MARGIN-BOTTOM: 5pt; MARGIN-LEFT: 3.75pt; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0in">
<P style="MARGIN-BOTTOM: 12pt" class=MsoNormal><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt"><BR>From: david.s.dittmer@accenture.com &lt;david.s.dittmer@accenture.com&gt;<BR>Subject: Sub-Workflow when complete must terminate workflow<BR>To: sap-wug@mit.edu<BR>Date: Wednesday, November 4, 2009, 4:19 PM</SPAN></FONT></DIV>
<DIV id=yiv1215552479>
<DIV>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">Hello Workflow experts,</SPAN></FONT></DIV></DIV>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">My workflow has a sub-workflow created in the middle of the main workflow. The sub-workflow has a wait for event step and when that step is triggered the sub-workflow runs to completion but at the same time the main workflow is triggered and activity steps are actioned &nbsp;which should not be triggered.</SPAN></FONT></DIV></DIV>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></DIV></BLOCKQUOTE>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">My question is how can I develop the workflow that the completion of the sub-workflow will not trigger the main workflow to process&nbsp; unwanted steps. It is not possible to place the sub-workflow at the end of the main workflow. </SPAN></FONT></DIV>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></DIV>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">I have checked the FAQ but could find nothing since I am sure that this issue must have &nbsp;arisen time and time again</SPAN></FONT></DIV>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></DIV>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">I am hopeful &nbsp;that an experienced workflow developer should &nbsp;be able to advise me how to solve this issue.</SPAN></FONT></DIV>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></DIV>
<P class=MsoNormal><FONT size=2 face="Arial Narrow"><SPAN style="FONT-FAMILY: 'Arial Narrow'; FONT-SIZE: 11pt">David S Dittmer</SPAN></FONT></DIV>
<P class=MsoNormal><FONT size=2 face="Arial Narrow"><SPAN style="FONT-FAMILY: 'Arial Narrow'; FONT-SIZE: 11pt">Accenture</SPAN></FONT></DIV>
<P class=MsoNormal><FONT size=2 face="Book Antiqua"><SPAN style="FONT-FAMILY: 'Book Antiqua'; FONT-SIZE: 11pt">&nbsp;</SPAN></FONT></DIV>
<P class=MsoNormal><FONT size=2 face="Book Antiqua"><SPAN style="FONT-FAMILY: 'Book Antiqua'; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></DIV>
<DIV>
<DIV><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.</SPAN></FONT></DIV></DIV>
<P style="MARGIN-BOTTOM: 12pt" class=MsoNormal><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt"><BR>-----Inline Attachment Follows-----</SPAN></FONT></DIV>
<DIV>
<P class=MsoNormal><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">_______________________________________________<BR>SAP-WUG mailing list<BR><A href="http://us.mc816.mail.yahoo.com/mc/compose?to=SAP-WUG@mit.edu" rel=nofollow target=_blank><U><FONT color=blue><SPAN style="COLOR: blue">SAP-WUG@mit.edu</SPAN></FONT></U></A><BR><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" rel=nofollow target=_blank><U><FONT color=blue><SPAN style="COLOR: blue">http://mailman.mit.edu/mailman/listinfo/sap-wug</SPAN></FONT></U></A></SPAN></FONT></DIV></DIV></TD></TR></TBODY></TABLE>
<P class=MsoNormal><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">&nbsp;</SPAN></FONT></DIV></DIV>
<DIV>
<DIV></DIV>
<P style="FONT-FAMILY: Arial, Sans-Serif; FONT-SIZE: x-small">This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.</DIV></DIV></DIV><BR>-----Inline Attachment Follows-----<BR><BR>
<DIV class=plainMail>_______________________________________________<BR>SAP-WUG mailing list<BR><A href="http://us.mc816.mail.yahoo.com/mc/compose?to=SAP-WUG@mit.edu" ymailto="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></DIV></BLOCKQUOTE></td></tr></table>