<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:st1="urn:schemas-microsoft-com:office:smarttags" 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 11 (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]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Monotype Corsiva";
        panose-1:3 1 1 1 1 2 1 1 1 1;}
@font-face
        {font-family:sans-serif;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Lynne,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>This might not be the best way to handle
this, but here goes.&nbsp; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I have a workflow for Applicants/Applications
where sometimes multiple workflows will get started.&nbsp; The first step in
that workflow is a method I created that calls SAP_WAPI_WORKITEMS_TO_OBJECT.&nbsp;
I pass in the current Work item ID and look for all active work items for the
business object with the object key.&nbsp; In the method I loop through all the
ones it finds and if the Work Item ID sent into the method does not match what
it found, then I consider it a duplicate workflow and send out a flag from the
method.&nbsp; If the flag = y, I do a process control step to cancel the current
workflow in the next step.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'>Regards,</span></font><font color=navy><span
style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><em><b><i><font size=5 color=green face="Monotype Corsiva"><span
style='font-size:18.0pt;font-family:"Monotype Corsiva";color:green;font-weight:
bold'>Sue T. Doughty</span></font></i></b></em><font color=navy><span
style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span style='font-size:
7.5pt;font-family:Arial;color:navy'>SAP Workflow Specialist</span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span style='font-size:
7.5pt;font-family:Arial;color:navy'>Old Dominion Freight Line, Inc.</span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><st1:Street w:st="on"><st1:address w:st="on"><font size=1
  color=navy face=Arial><span style='font-size:7.5pt;font-family:Arial;
  color:navy'>500 Old Dominion Way</span></font></st1:address></st1:Street><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><st1:place w:st="on"><st1:City w:st="on"><font size=1
  color=navy face=Arial><span style='font-size:7.5pt;font-family:Arial;
  color:navy'>Thomasville</span></font></st1:City><font size=1 color=navy
 face=Arial><span style='font-size:7.5pt;font-family:Arial;color:navy'>, <st1:State
 w:st="on">NC</st1:State> <st1:PostalCode w:st="on">27360</st1:PostalCode></span></font></st1:place><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span style='font-size:
7.5pt;font-family:Arial;color:navy'>Phone:&nbsp; (336) 822-5189</span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span style='font-size:
7.5pt;font-family:Arial;color:navy'>Toll Free (800 ) 432-6335, ext. 5189</span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span style='font-size:
7.5pt;font-family:Arial;color:navy'>Email:&nbsp; <a
href="mailto:sue.doughty@odfl.com">sue.doughty@odfl.com</a></span></font><o:p></o:p></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <b><span
style='font-weight:bold'>On Behalf Of </span></b>lynne.allen@kodak.com<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, May 21, 2009 11:54
AM<br>
<b><span style='font-weight:bold'>To:</span></b> sap-wug@mit.edu<br>
<b><span style='font-weight:bold'>Subject:</span></b> Triggering Events for HR</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
</span></font><font size=2 face=sans-serif><span style='font-size:10.0pt;
font-family:sans-serif'>This is a very basic question....</span></font> <br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>&nbsp;
&nbsp; When creating a recurring payment in HR, an SAP event of CREATED (object
recurrpay) &nbsp;is raised for each different wage type used for an employee. </span></font><br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>&nbsp;
&nbsp; For instance, if there are 3 wage types, 3 events are raised for the
SAME employee. &nbsp;After the creation of the payment and the save key is hit
the event kicks off, so for each payment for the same employee we are getting 3
events. We do not want to start the WF 3x.</span></font> <br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>&nbsp;We
want to start a workflow ONE time, as long as one payment exists start the
workflow, from there it does not matter how many payments are entered. &nbsp;Any
thoughts on how this can be done without started the workflow for each time?</span></font>
<br>
<br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>&nbsp;
&nbsp; </span></font><o:p></o:p></p>

<p><b><font size=1 color=darkblue face=Arial><span style='font-size:7.5pt;
font-family:Arial;color:darkblue;font-weight:bold'>Lynne M. Allen</span></font></b><font
size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial'> | ERP
Workflow Development | Worldwide Information Systems (WWIS) | <br>
Eastman Kodak Company | <st1:Street w:st="on"><st1:address w:st="on">343 State
  Street</st1:address></st1:Street> | <st1:place w:st="on"><st1:City w:st="on">Rochester</st1:City>,
 <st1:State w:st="on">NY</st1:State> <st1:PostalCode w:st="on">14650-1221</st1:PostalCode></st1:place>
| <u><font color=blue><span style='color:blue'><br>
</span></font></u></span></font><a href="mailto:lynne.allen@kodak.com"><font
size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial'>lynne.allen@kodak.com</span></font></a><font
size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial'> |
585-724-3556 Office | <u><font color=blue><span style='color:blue'><br>
</span></font></u></span></font><a href="http://www.kodak.com/"><font size=1
face=Arial><span style='font-size:7.5pt;font-family:Arial'>www.kodak.com</span></font></a><font
size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial'> <br>
</span></font><img border=0 width=600 height=30 id="_x0000_i1025"
src="cid:image001.gif@01C9DA17.688AF550"><o:p></o:p></p>

</div>

</body>

</html>