<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: deleted task shows up in new workflow instances</TITLE>

<META content="MSHTML 6.00.2800.1458" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=945041914-05052005>Sorry 
again..earlier I had serious doubts on my analysis ..now I am sure that it's not 
a correct comparison.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=945041914-05052005></SPAN></FONT><FONT face=Arial color=#0000ff 
size=2><SPAN class=945041914-05052005></SPAN></FONT><FONT face=Arial 
color=#0000ff size=2><SPAN class=945041914-05052005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=945041914-05052005>- 
Ram</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff><SPAN 
class=945041914-05052005></SPAN></FONT><FONT face=Tahoma><BR><FONT 
size=2>-----Original Message-----<BR><B>From:</B> Tiwari, Rammanohar 
<BR><B>Sent:</B> Thursday, May 05, 2005 7:19 PM<BR><B>To:</B> 'SAP Workflow 
Users' Group'<BR><B>Subject:</B> RE: 2 year wait vs Batch 
Report<BR><BR></FONT></DIV></FONT>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff size=2>Hi 
  Alon,</FONT></SPAN></DIV>
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff 
  size=2>First of all sorry for sending the mail twice . I am a first timer and 
  I didn't know that&nbsp;I won't receive my own mail, so I thought it&nbsp;is 
  bouncing.</FONT></SPAN></DIV>
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff size=2>Well 
  first of all I am not sure if the option I put forward is feasible or not and 
  it is just an option :)</FONT></SPAN></DIV>
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff size=2>But 
  if it is then there&nbsp;might be some advantage from the system perspective, 
  over daily monitoring, in the sense:</FONT></SPAN></DIV>
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff size=2>if 
  your daily monitoring Job runs every hour and this particular check takes 0.1 
  second to&nbsp;run ( I think there is a dbaccess to compare&nbsp;the 
  triggering date &amp; time ) for one workflow execute then total time for 400 
  workflow instances will be ( total time to run this check = 0.1 * 400 * 24 * 
  360 * 2&nbsp; / 3600 &nbsp;= 192 hrs ).</FONT></SPAN></DIV>
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff size=2>I am 
  really sorry if I've made some major mistake in calculating 
  this.</FONT></SPAN></DIV>
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff size=2>So 
  actually system will run 192 hrs for this case.</FONT></SPAN></DIV>
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff size=2>Now 
  if you are scheduling&nbsp;400 jobs for&nbsp;400 instances but just for once 
  and will execute after 2 years then ( total time = 0.1 * 400 / 3600&nbsp;=~ 
  0.01&nbsp;hrs )</FONT></SPAN></DIV>
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff 
  size=2>Also, I am just putting it forward, just&nbsp;as a theoretical option 
  so&nbsp;you can't blame me&nbsp;:)</FONT></SPAN></DIV>
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff 
  size=2>Thanks,</FONT></SPAN></DIV>
  <DIV><SPAN class=538572313-05052005><FONT face=Arial color=#0000ff 
  size=2>Ram</FONT></SPAN></DIV>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
    size=2>-----Original Message-----<BR><B>From:</B> sap-wug-bounces@mit.edu 
    [mailto:sap-wug-bounces@mit.edu]<B>On Behalf Of </B>Alon 
    Raskin<BR><B>Sent:</B> Thursday, May 05, 2005 6:23 PM<BR><B>To:</B> SAP 
    Workflow Users' Group<BR><B>Subject:</B> RE: 2 year wait vs Batch 
    Report<BR><BR></FONT></DIV>
    <DIV id=idOWAReplyText63325 dir=ltr>
    <DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hi Ram,</FONT></DIV>
    <DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV dir=ltr><FONT face=Arial size=2>Thanks for the input. My problem with 
    this approach is that I now have a batch job scheduled for each instance of 
    the workflow (around 400 or so)... I guess it not a big deal but I am not 
    sure I am seeing what the advantages of using this over the deadline 
    monitoring report...</FONT></DIV>
    <DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT>&nbsp;</DIV></DIV>
    <DIV id=idSignature20148 dir=ltr>
    <DIV><FONT face=Arial color=#000000 size=2>
    <DIV dir=ltr align=left><STRONG>
    <DIV dir=ltr align=left><STRONG>Alon Raskin</STRONG></DIV>
    <DIV dir=ltr align=left><STRONG>e: </STRONG><A 
    href="mailto:araskin@3i-consulting.com" 
    target=_blank><STRONG>araskin@3i-consulting.com</STRONG></A></DIV>
    <DIV dir=ltr align=left><STRONG>p: +61 3 9625 2189 (Head 
    Office)</STRONG></DIV>
    <DIV dir=ltr align=left><STRONG>f:&nbsp; +61 3 8610 1239 </STRONG></DIV>
    <DIV dir=ltr align=left><STRONG>c:&nbsp; +1 207 756 0370</STRONG></DIV>
    <DIV dir=ltr align=left><STRONG>w: </STRONG><A 
    href="/exchweb/bin/redir.asp?URL=http://www.3i-consulting.com/" 
    target=_blank><STRONG>http://www.3i-consulting.com</STRONG></A></DIV></STRONG></DIV></FONT></DIV></DIV>
    <DIV dir=ltr><BR>
    <HR tabIndex=-1>
    <FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu on behalf of 
    Tiwari, Rammanohar<BR><B>Sent:</B> Thu 5/5/2005 08:49<BR><B>To:</B> SAP 
    Workflow Users' Group<BR><B>Subject:</B> RE: 2 year wait vs Batch 
    Report<BR></FONT><BR></DIV>
    <DIV>
    <DIV><SPAN class=959333712-05052005><FONT face=Arial color=#0000ff size=2>I 
    think there&nbsp;might be&nbsp;another option ( Not sure though 
    )&nbsp;:</FONT></SPAN></DIV>
    <DIV><SPAN class=959333712-05052005><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=959333712-05052005><FONT face=Arial color=#0000ff 
    size=2>Just after that step in your workflow put another step which will 
    schedule a Batch Job (FM BP_JOB_CREATE) &nbsp;with release date = sy-datum + 
    2 years.</FONT></SPAN></DIV>
    <DIV><SPAN class=959333712-05052005><FONT face=Arial color=#0000ff 
    size=2>I&nbsp;am not sure but system restart should not affect it. 
    </FONT></SPAN></DIV>
    <DIV><SPAN class=959333712-05052005><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=959333712-05052005><FONT face=Arial color=#0000ff 
    size=2>The Batch job will then trigger&nbsp;an event ( after two years ) 
    &nbsp;to re-start the terminated workflow.</FONT></SPAN></DIV>
    <DIV><SPAN class=959333712-05052005><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=959333712-05052005><FONT face=Arial color=#0000ff 
    size=2>Thanks,</FONT></SPAN></DIV>
    <DIV><SPAN class=959333712-05052005><FONT face=Arial color=#0000ff 
    size=2>Ram</FONT></SPAN></DIV>
    <DIV><SPAN class=959333712-05052005><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN>&nbsp;</DIV>
    <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
      <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
      size=2>-----Original Message-----<BR><B>From:</B> sap-wug-bounces@mit.edu 
      [mailto:sap-wug-bounces@mit.edu]<B>On Behalf Of </B>Alon 
      Raskin<BR><B>Sent:</B> Thursday, May 05, 2005 5:26 PM<BR><B>To:</B> SAP 
      Workflow Users' Group<BR><B>Subject:</B> 2 year wait vs Batch 
      Report<BR><BR></FONT></DIV>
      <DIV id=idOWAReplyText72845 dir=ltr>
      <DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hi 
      Everyone,</FONT></DIV>
      <DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV dir=ltr><FONT face=Arial size=2>I would love to hear peoples opinions 
      on this issue.</FONT></DIV>
      <DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV dir=ltr><FONT face=Arial size=2>We have a situation where a workflow 
      has to do update a field and then wait for 2 years before clearing that 
      field. There are two possibilities to this issue.</FONT></DIV>
      <DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV dir=ltr><FONT face=Arial size=2>1. Put in a 2 year wait 
      step</FONT></DIV>
      <DIV dir=ltr><FONT face=Arial size=2>2. Terminate the workflow and run a 
      nightly batch job which would query some table and determine if 2 years 
      have passed and then reset the field accordingly.</FONT></DIV>
      <DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV dir=ltr><FONT face=Arial size=2>Currently I am leaning towards option 
      1 as I really don't see a difference in option 1 and option 2. Ultimately 
      they are all just batch jobs which check dates and then do some 
      processing. The volumes here are very low.</FONT></DIV>
      <DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV dir=ltr><FONT face=Arial size=2>Your thoughts?</FONT></DIV>
      <DIV dir=ltr><FONT face=Arial color=#000000 
      size=2></FONT>&nbsp;</DIV></DIV>
      <DIV id=idSignature14617 dir=ltr>
      <DIV><FONT face=Arial color=#000000 size=2>
      <DIV dir=ltr align=left><STRONG>
      <DIV dir=ltr align=left><STRONG>Alon Raskin</STRONG></DIV>
      <DIV dir=ltr align=left><STRONG>e: </STRONG><A 
      href="mailto:araskin@3i-consulting.com" 
      target=_blank><STRONG>araskin@3i-consulting.com</STRONG></A></DIV>
      <DIV dir=ltr align=left>
      <DIV dir=ltr align=left><STRONG></STRONG></DIV><STRONG>w: </STRONG><A 
      href="/exchweb/bin/redir.asp?URL=http://www.3i-consulting.com/" 
      target=_blank><STRONG>http://www.3i-consulting.com</STRONG></A></STRONG></FONT></DIV></DIV></DIV></DIV></BLOCKQUOTE><BR>This 
    e-mail and any attachment is for authorised use by the intended recipient(s) 
    only. It may contain proprietary material, confidential information and/or 
    be subject to legal privilege. It should not be copied, disclosed to, 
    retained or used by, any other party. If you are not an intended recipient 
    then please promptly delete this e-mail and any attachment and all copies 
    and inform the sender. Thank 
you.<BR></DIV></BLOCKQUOTE></BLOCKQUOTE>
<BR>
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.<BR>
</BODY></HTML>