<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<STYLE><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></STYLE>

<META content="MSHTML 6.00.6000.17080" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV id=idOWAReplyText33347 dir=ltr>
<DIV dir=ltr><FONT face=Verdana color=#000000 size=2>Hi Ed, </FONT></DIV>
<DIV dir=ltr><FONT face=Verdana></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Verdana>&nbsp; Maybe i'm wrong but i like to remark that the event communication approach is not for sequential process (i think with sequential there's no problem ,a loop it's OK). The event approach is somethig like (sorry for poor&nbsp;text-mode diagram , i hope it's understable):</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana></FONT>&nbsp;</DIV>
<DIV dir=ltr><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; V<BR>&nbsp;&nbsp;&nbsp; -begin of loop<BR>&nbsp;&nbsp;&nbsp; |<BR>&nbsp;&nbsp;&nbsp; --trigger Event A(index)&nbsp; )))) -&gt;&nbsp; Subworkflow 1..N&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb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;&nbsp; |<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; V</DIV></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>As you can see in the first loop the main workflow doesn't wait for any event , only after every event (A) has been launched you start to wait for Event(B). </DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>regards.</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>G:</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De:</B> sap-wug-bounces@mit.edu en nombre de Edward Diehl<BR><B>Enviado el:</B> mar 26/10/2010 16:28<BR><B>Para:</B> sap-wug@mit.edu<BR><B>Asunto:</B> RE: Dynamic branches on a fork<BR></FONT><BR></DIV>
<DIV>Hi Zolt,<BR>If you want the process to be simultaneous and not sequential then a list of the settlement objects should be used to drive the dynamic parallel process.&nbsp; I use the term object because that is how I would treat each item that is part of the outboarding process.&nbsp; I would create a custom object and each item to be settled would be an instance of that object.&nbsp; You could then put enough information in the object's attributes to determine who the approver should be for that particular object.&nbsp; Since you already have the custom table, creating a custom object over it would quite easy.&nbsp; I don't know all that is in your customer table, but could you add approver information for each item?<BR><BR>Ed<BR><BR>BTW, if the process can be or needs to be sequential then just put the list of objects in a loop.&nbsp; Sometimes one thing cannot be approved until something else has been approved.<BR><BR><BR><BR>
<HR id=stopSpelling>
Subject: RE: Dynamic branches on a fork<BR>Date: Tue, 26 Oct 2010 16:09:46 +0200<BR>From: Marton.Zsolt@iqsys.hu<BR>To: sap-wug@mit.edu<BR>CC: sap-wug-bounces@mit.edu<BR><BR>
<STYLE>
.ExternalClass .ecxshape
{}
</STYLE>

<STYLE>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass tt
{font-family:'Courier New';}
.ExternalClass span.ecxEmailStyle18
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{}

.ExternalClass div.ecxWordSection1
{page:WordSection1;}

</STYLE>

<DIV class=ecxWordSection1>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">Hi, Thanks</SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">We have the custom table, but users requirement is to handle all the approvements in one process. </SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: Wingdings">L</SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></SPAN></P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">Thanks anyway.</SPAN></P>
<P class=ecxMsoNormal><B><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: 'Comic Sans MS'">Márton Zsolt</SPAN></B><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Arial','sans-serif'"><BR><BR></SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></SPAN></P>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: rgb(181,196,223) 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=ecxMsoNormal><B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Krishna K Kammaje<BR><B>Sent:</B> Tuesday, October 26, 2010 3:57 PM<BR><B>To:</B> SAP Workflow Users' Group<BR><B>Cc:</B> SAP Workflow Users' Group; sap-wug-bounces@mit.edu<BR><B>Subject:</B> RE: Dynamic branches on a fork</SPAN></P></DIV>
<P class=ecxMsoNormal>&nbsp;</P>
<P class=ecxMsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Hi Zolt,</SPAN> <BR><BR><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">We had a similar requirement, and this is what we did.</SPAN> <BR><BR><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">All the different processes were maintained in a custom table. </SPAN><BR><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">An ABAP batch job was created which will run daily once and trigger different work items for each suitable process. Business logic was contained in this program.</SPAN> <BR><BR><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Thanks<BR>Krishna Kishor Kammaje <BR>SAP Certified Development Associate - ABAP with Netweaver 7.0<BR>| HRMS LCM Team | Manyata | D3 | 9th Floor | MD3-9F-A113 | Mob: +91 990 100 0799 | Direct - Xtn: 080 280-62953 |<BR></SPAN><BR><BR><BR><BR><SPAN style="FONT-SIZE: 7.5pt; COLOR: rgb(95,95,95); FONT-FAMILY: 'Arial','sans-serif'">From: &nbsp; &nbsp; &nbsp; &nbsp;</SPAN><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'Arial','sans-serif'">Márton Zsolt &lt;Marton.Zsolt@iqsys.hu&gt;</SPAN> <BR><SPAN style="FONT-SIZE: 7.5pt; COLOR: rgb(95,95,95); FONT-FAMILY: 'Arial','sans-serif'">To: &nbsp; &nbsp; &nbsp; &nbsp;</SPAN><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'Arial','sans-serif'">"SAP Workflow Users' Group" &lt;sap-wug@mit.edu&gt;</SPAN> <BR><SPAN style="FONT-SIZE: 7.5pt; COLOR: rgb(95,95,95); FONT-FAMILY: 'Arial','sans-serif'">Date: &nbsp; &nbsp; &nbsp; &nbsp;</SPAN><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'Arial','sans-serif'">26/10/2010 19:21</SPAN> <BR><SPAN style="FONT-SIZE: 7.5pt; COLOR: rgb(95,95,95); FONT-FAMILY: 'Arial','sans-serif'">Subject: &nbsp; &nbsp; &nbsp; &nbsp;</SPAN><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'Arial','sans-serif'">RE: Dynamic branches on a fork</SPAN> <BR><SPAN style="FONT-SIZE: 7.5pt; COLOR: rgb(95,95,95); FONT-FAMILY: 'Arial','sans-serif'">Sent by: &nbsp; &nbsp; &nbsp; &nbsp;</SPAN><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'Arial','sans-serif'">sap-wug-bounces@mit.edu</SPAN> </P>
<DIV class=ecxMsoNormal style="TEXT-ALIGN: center" align=center>
<HR style="COLOR: rgb(172,168,153)" align=center width="100%" noShade SIZE=2>
</DIV>
<P class=ecxMsoNormal style="MARGIN-BOTTOM: 12pt"><BR><BR><BR><TT><SPAN style="FONT-SIZE: 10pt">Hi Koenraad,</SPAN></TT><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><BR><TT>Thanks for reply. The workflow is started wia event and I have several previous step before settlement. Those steps must be carried out within one workflow. </TT><BR><TT>You say to start the parallel processes with events. But how can I determine dynamically the events? </TT><BR><TT>My tought was to create a task with parallel processing controlled by a multiline element (number of items)</TT><BR><BR><TT>But any idea is welcome. :)</TT><BR><TT>Br</TT><BR><TT>Zsolt</TT><BR><BR><TT>-----Original Message-----</TT><BR><TT>From: sap-wug-bounces@mit.edu [</TT></SPAN><A href="mailto:sap-wug-bounces@mit.edu"><TT><SPAN style="FONT-SIZE: 10pt">mailto:sap-wug-bounces@mit.edu</SPAN></TT></A><TT><SPAN style="FONT-SIZE: 10pt">] On Behalf Of JANSSENS Koenraad</SPAN></TT><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><BR><TT>Sent: Tuesday, October 26, 2010 3:25 PM</TT><BR><TT>To: SAP Workflow Users' Group</TT><BR><TT>Subject: RE: Dynamic branches on a fork</TT><BR><BR><TT>Zsolt,</TT><BR><BR><TT>Why don't you use events to start various instances of a settlement item wf?</TT><BR><BR><TT>Regards</TT><BR><BR><TT>Koenraad</TT><BR><BR><TT>&gt;-----Original Message-----</TT><BR><TT>&gt;From: sap-wug-bounces@mit.edu [</TT></SPAN><A href="mailto:sap-wug-bounces@mit.edu"><TT><SPAN style="FONT-SIZE: 10pt">mailto:sap-wug-bounces@mit.edu</SPAN></TT></A><TT><SPAN style="FONT-SIZE: 10pt">] On Behalf Of Márton Zsolt</SPAN></TT><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><BR><TT>&gt;Sent: Tuesday, October 26, 2010 3:10 PM</TT><BR><TT>&gt;To: SAP Workflow Users' Group</TT><BR><TT>&gt;Subject: Dynamic branches on a fork</TT><BR><TT>&gt;</TT><BR><TT>&gt;Hi All!</TT><BR><TT>&gt;</TT><BR><TT>&gt;I have to implement a workflow werkoer settlements when they are leaving the company. For this we have created an</TT><BR><TT>&gt;settlement document with header and &nbsp;itmes, where the number of items can be changed dependig on what kind of</TT><BR><TT>&gt;settlement process must be carried out (for exemple: give back the company's assets, entrance card, etc.) Each</TT><BR><TT>&gt;settlement item must be approved by different person and for this I need parallel processing.</TT><BR><TT>&gt;My problem is: need to have parallel processes but will not know the number of branches until the workflow is run. The</TT><BR><TT>&gt;number of branches will vary from instance to instance, depending from the number of items.</TT><BR><TT>&gt;Does anyone know of a way to have dynamic branches on a fork?</TT><BR><TT>&gt;</TT><BR><TT>&gt;Thanks in advance,</TT><BR><TT>&gt;Br</TT><BR><TT>&gt;Zsolt</TT><BR><TT>&gt;</TT><BR><TT>&gt;_______________________________________________</TT><BR><TT>&gt;SAP-WUG mailing list</TT><BR><TT>&gt;SAP-WUG@mit.edu</TT><BR><TT>&gt;</TT></SPAN><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank><TT><SPAN style="FONT-SIZE: 10pt">http://mailman.mit.edu/mailman/listinfo/sap-wug</SPAN></TT></A><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><BR><BR><TT>_______________________________________________</TT><BR><TT>SAP-WUG mailing list</TT><BR><TT>SAP-WUG@mit.edu</TT><BR></SPAN><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank><TT><SPAN style="FONT-SIZE: 10pt">http://mailman.mit.edu/mailman/listinfo/sap-wug</SPAN></TT></A><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><BR><BR><TT>_______________________________________________</TT><BR><TT>SAP-WUG mailing list</TT><BR><TT>SAP-WUG@mit.edu</TT><BR></SPAN><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank><TT><SPAN style="FONT-SIZE: 10pt">http://mailman.mit.edu/mailman/listinfo/sap-wug</SPAN></TT></A></P></DIV><BR>_______________________________________________ SAP-WUG mailing list SAP-WUG@mit.edu http://mailman.mit.edu/mailman/listinfo/sap-wug </DIV></BODY></HTML>