<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1505" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Mike &amp; All,</DIV>
<DIV>All these questions I ask&nbsp;are due to&nbsp;performance tuning&nbsp;and </DIV>
<DIV>Archive Strategy research we are doing.&nbsp;I know RSWWDHEX batch </DIV>
<DIV>is very efficient but every tick of the clock adds up. </DIV>
<DIV>So any comments from anyone are very welcome. </DIV>
<DIV>&nbsp;</DIV>
<DIV>We have one WF that has a DM on a task. We put it in to allow&nbsp;</DIV>
<DIV>some processing to complete before we run that task. Start WF, </DIV>
<DIV>execute&nbsp;the task with DM for DB update (DM on task to start in one minute), and </DIV>
<DIV>then continue.&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>I know this is not the best approach but I did not develop that WF and </DIV>
<DIV>I am going to try to get it changed. </DIV>
<DIV>I&nbsp;think&nbsp;adding an exception on the BOR method with temp error&nbsp;would&nbsp;solve&nbsp;this problem. </DIV>
<DIV>Thoughts?</DIV>
<DIV>&nbsp;</DIV>
<DIV>So, safe to shut off the case-specific "Deadline monitoring on an individual basis"&nbsp; </DIV>
<DIV>since newer versions don't allow it for this case&nbsp;AND&nbsp;</DIV>
<DIV>enable just the "Permanent deadline monitoring"? </DIV>
<DIV>Is this the setting you have? </DIV>
<DIV>&nbsp;</DIV>
<DIV>And for some reason we have "Event queue switched off". I know I had this turned on </DIV>
<DIV>when we did the initial setup but for some reason it is now off. </DIV>
<DIV>Comments / thoughts about the event queue are welcome.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks much!</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Rick Sample<BR>SAP Workflow Analyst/Developer<BR>Graybar, Inc.<BR>11885 Lackland Rd.<BR>63146-4208<BR>314.573.5822<BR><A href="mailto:Rick.Sample@GBE.com">Rick.Sample@GBE.com</A><BR><BR>&gt;&gt;&gt; wug.replies@workflowconnections.com 6/24/2005 2:55 &gt;&gt;&gt;<BR>Hi Rick,<BR>Enabling case-specific monitoring means that a deadline job is scheduled<BR>by each task that requires it. This allows much more exact deadlines as it<BR>will happen at the time specified, not a few minutes later when the next<BR>regular job executes. However for the reasons you already describe it is<BR>only useful if you have very few deadlines (I think the docs even mention<BR>that).<BR><BR>In later versions, SAP have (wisely) removed that option, and only regular<BR>monitoring is available. The regular job is quite efficient as it only<BR>reads an indexed table to pick up anyhing older than the current time so<BR>there shouldn't be any issue with scheduling it every 5 minutes.<BR><BR>Cheers<BR>Mike<BR><BR>Rick Sample wrote:<BR>&gt; RSWWDHEX was executing twice for the exact same time.<BR>&gt; So every 3 minutes I have two RSWWDHEX starting at the exact same time<BR>&gt;<BR>&gt; with no WFs with DMs.<BR>&gt; I can only assume this was not set correctly. How, I do not know,<BR>&gt; but looking at the code we have a comment in there about this issue.<BR>&gt; I deleted one of them in SM37 and seems to have fixed the locking<BR>&gt; issue.<BR>&gt;<BR>&gt; Depending on the settings for the batch RSWWDHEX<BR>&gt; from my understanding you can have a few different setups.<BR>&gt; 1. None.<BR>&gt; 2. RSWWDHEX running Periodically "Optional: Schedule permanent deadline<BR>&gt; monitoring" like every 20 mins.<BR>&gt; 3. RSWWDHEX running "Schedule backgr. job for case-specific deadline<BR>&gt; monitoring".<BR>&gt; 4. RSWWDHEX running Periodically "Optional: Schedule permanent deadline<BR>&gt; monitoring" like every 20 mins. And<BR>&gt; RSWWDHEX running "Schedule backgr. job for case-specific deadline<BR>&gt; monitoring".<BR>&gt;<BR>&gt; Looks like we have both running. Periodically and per task instance.<BR>&gt; I started a WF with a DM on it and then looked at SM37.<BR>&gt;<BR>&gt; Sure enough I had a new batch started for each WF task with DM and the<BR>&gt; normal 20 min run.<BR>&gt; So this could be thousands of this RSWWDHEX in queue and running at the<BR>&gt; same time for this setup. Yes?<BR>&gt;<BR>&gt; What is the norm? Just run the batch Periodically "Optional: Schedule<BR>&gt; permanent deadline monitoring" like every 20 mins<BR>&gt; and call it a day or is there some reason to have both?<BR>&gt;<BR>&gt; I am just trying to understand what is going on under the covers...<BR>&gt; Thanks!<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;&gt;&gt;&gt; <U><A href="mailto:Jeff@Business-Workflow.com">Jeff@Business-Workflow.com</A></U> 6/23/2005 9:57 &gt;&gt;&gt;<BR>&gt; Rick,<BR>&gt;<BR>&gt; Hopefully I can answer some of your questions from My<BR>&gt; observations. DM is a large part of WF, so if there is a<BR>&gt; big problem with the RSWWDHEX pgm then have a talk with<BR>&gt; the Basis guys, my pgm. runs in less then a second or two.<BR>&gt; You would not normally set the DM to run every 3 mins<BR>&gt; unless you had some deadlines that were set to expire in<BR>&gt; less than say 30 mins. I have a DM on one of mine now that<BR>&gt; is set for 4 hrs, so I have the pgm run every 10 mins. If<BR>&gt; your DM's are by Days, then just set the DM to the<BR>&gt; highest, 99 mins, &amp; the pgm to kick it maybe every few<BR>&gt; hrs. And it is just one batch pgm not thousands that<BR>&gt; trigger.<BR>&gt;<BR>&gt; 1) Haven't seen this happen, but try upping the Pgm time &amp;<BR>&gt; speaking to Basis.<BR>&gt; 2) Table SWDSSTEPS looks like a Definition table of the<BR>&gt; Tasks in your system &amp; isn't per instance of steps. So it<BR>&gt; should stay around 9,000 unless you start creating more<BR>&gt; custom tasks. It doesn't just define the DM times but also<BR>&gt; the 2nd Meth, End Confirm, Batch, etc.<BR>&gt; 3) The RSWWDHEX doesn't miss a deadline it just triggers<BR>&gt; whatever hits since the last run. If you have steps that<BR>&gt; hang it sounds like you have other problems than DM.<BR>&gt; 4) Any old WF's you no longer need you can Logically<BR>&gt; Delete them so they're not hitting the system anymore,<BR>&gt; either for DM or uncompleted steps.<BR>&gt;<BR>&gt; Hope this helps, may not have been what you were looking<BR>&gt; for.<BR>&gt;<BR>&gt; Jeff<BR>&gt;<BR>&gt; ---- Original message ----<BR>&gt;&gt;Date: Wed, 22 Jun 2005 13:21:07 -0500<BR>&gt;&gt;From: "Rick Sample" &lt; <U><A href="mailto:Rick.Sample@gbe.com">Rick.Sample@gbe.com</A></U> &gt;<BR>&gt;&gt;Subject: Re: deadline monitoring loop<BR>&gt;&gt;To: <U><A href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A></U> <BR>&gt;&gt;<BR>&gt;&gt; "Set 'Latest End' DM &amp; enable 'Processing obsolete'<BR>&gt;&gt; for an outcome"<BR>&gt;&gt; Interesting! And raises some more questions for me<BR>&gt;&gt; now that I looked at it.<BR>&gt;&gt; We don't use Deadline processing much so please bare<BR>&gt;&gt; with me. We have enough<BR>&gt;&gt; problems with performance without throwing thousands<BR>&gt;&gt; of batch progs at the system<BR>&gt;&gt; every 20 minutes.<BR>&gt;&gt;<BR>&gt;&gt; When testing in development with very low Requested<BR>&gt;&gt; Start in task and<BR>&gt;&gt; low RSWWDHEX settings (1 minute and 3 minutes<BR>&gt;&gt; respectively), I noticed<BR>&gt;&gt; some interesting issues.<BR>&gt;&gt; Just in dev. Don't run these settings in prod!<BR>&gt;&gt; Performance thing. (Unless you like getting Tarred<BR>&gt;&gt; and Feathered!)<BR>&gt;&gt;<BR>&gt;&gt; 1. Locking issues.<BR>&gt;&gt; No doubt due to the RSWWDHEX running multiple times<BR>&gt;&gt; with above settings.<BR>&gt;&gt; When this happens my tasks sometimes hang.<BR>&gt;&gt; So, next time RSWWDHEX runs it sees nothing to do<BR>&gt;&gt; and the task is just stuck until manually set.<BR>&gt;&gt; Sound correct?<BR>&gt;&gt;<BR>&gt;&gt; 2. Table SWDSSTEPS.<BR>&gt;&gt; When, what, and how do these entries get cleared out<BR>&gt;&gt; of the table?<BR>&gt;&gt; I noticed over 9,000 entries in dev and I know I<BR>&gt;&gt; don't have _anything_ in waiting.<BR>&gt;&gt; All entries are zeros for time/date.<BR>&gt;&gt;<BR>&gt;&gt; 3. Will "Set 'Latest End' DM &amp; enable 'Processing<BR>&gt;&gt; obsolete' for an outcome" pickup<BR>&gt;&gt; these tasks and complete the step if for any reason<BR>&gt;&gt; the RSWWDHEX misses the deadline?<BR>&gt;&gt; And, then will they get cleared if it hangs on the<BR>&gt;&gt; Requested Start?<BR>&gt;&gt;<BR>&gt;&gt; 4. How do I clear old timers for any task / WF that<BR>&gt;&gt; I no longer want to monitor?<BR>&gt;&gt; Example, old WF versions that we not longer want to<BR>&gt;&gt; use Deadlines.<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; Thanks!<BR>&gt;&gt; 4.6c<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; Rick Sample<BR>&gt;&gt; SAP Workflow Analyst/Developer<BR>&gt;&gt; Graybar, Inc.<BR>&gt;&gt; 11885 Lackland Rd.<BR>&gt;&gt; 63146-4208<BR>&gt;&gt; 314.573.5822<BR>&gt;&gt; <U><A href="mailto:Rick.Sample@GBE.com">Rick.Sample@GBE.com</A></U> <BR>&gt;&gt; &gt;&gt;&gt; <U><A href="mailto:Jeff@Business-Workflow.com">Jeff@Business-Workflow.com</A></U> 6/22/2005 12:02 &gt;&gt;&gt;<BR>&gt;&gt; Sushil,<BR>&gt;&gt;<BR>&gt;&gt; You could use the Modeled option on your 'Latest<BR>&gt;&gt; End'<BR>&gt;&gt; DM &amp; enable 'Processing obsolete' for an outcome.<BR>&gt;&gt; Then<BR>&gt;&gt; place the mail step after the DM leg &amp; then a<BR>&gt;&gt; 'Process<BR>&gt;&gt; Control' Step that 'Sets the work item to Obsolete'<BR>&gt;&gt; using<BR>&gt;&gt; that original DM Step as the 'WF Step' entry. Let me<BR>&gt;&gt; know<BR>&gt;&gt; if you have any problems &amp; I can show you some<BR>&gt;&gt; screen<BR>&gt;&gt; shots.<BR>&gt;&gt;<BR>&gt;&gt; Jeff Rappaport<BR>&gt;&gt; <U><A href="http://www.business-workflow.com/">www.Business-Workflow.com</A></U> <BR>&gt;&gt;<BR>&gt;&gt; ---- Original message ----<BR>&gt;&gt; &gt;Date: Wed, 22 Jun 2005 10:25:35 -0500<BR>&gt;&gt; &gt;From: "Sushil Guragain" &lt; <U><A href="mailto:sguragain@interpublic.com">sguragain@interpublic.com</A></U> <BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;Subject: deadline monitoring loop<BR>&gt;&gt; &gt;To: "SAP Workflow Users' Group" &lt; <U><A href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A></U> &gt;<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; Hello WF Gurus,<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; I am trying to create a loop on deadline<BR>&gt;&gt; monitoring<BR>&gt;&gt; &gt; so that it will keep sending email until the user<BR>&gt;&gt; &gt; takes an action. I am planning to send email every<BR>&gt;&gt; &gt; 24 hours until it is approved or declined. Is<BR>&gt;&gt; there<BR>&gt;&gt; &gt; a standard way to get this activated? I tried<BR>&gt;&gt; using<BR>&gt;&gt; &gt; deadline monitoring with 24 hours and found that<BR>&gt;&gt; it<BR>&gt;&gt; &gt; sends the notification once and that is it. Would<BR>&gt;&gt; it<BR>&gt;&gt; &gt; work if I put that in a loop? If so what do I<BR>&gt;&gt; check<BR>&gt;&gt; &gt; against to see if the work item is complete?<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; Thank you for your suggestions in advance!<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; Sushil<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; This message contains information which may be<BR>&gt;&gt; confidential and privileged.<BR>&gt;&gt; &gt; Unless you are the intended recipient (or<BR>&gt;&gt; authorized to<BR>&gt;&gt; receive this message<BR>&gt;&gt; &gt; for the intended recipient), you may not use,<BR>&gt;&gt; copy,<BR>&gt;&gt; disseminate or disclose to<BR>&gt;&gt; &gt; anyone the message or any information contained in<BR>&gt;&gt; the<BR>&gt;&gt; message. If you have<BR>&gt;&gt; &gt; received the message in error, please advise the<BR>&gt;&gt; sender<BR>&gt;&gt; by reply e-mail, and<BR>&gt;&gt; &gt; delete the message. Thank you very much.<BR>&gt;&gt; &gt; (A)<BR>&gt;&gt; &gt;________________<BR>&gt;&gt; &gt;_______________________________________________<BR>&gt;&gt; &gt;SAP-WUG mailing list<BR>&gt;&gt; &gt; <U><A href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A></U> <BR>&gt;&gt; &gt; <U><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A></U> <BR>&gt;&gt; Jeffrey A. Rappaport<BR>&gt;&gt; Business Workflow, LLC<BR>&gt;&gt; voice: (732)355-0123<BR>&gt;&gt; fax: (509)757-4144<BR>&gt;&gt; email: <U><A href="mailto:Jeff@Business-Workflow.com">Jeff@Business-Workflow.com</A></U> <BR>&gt;&gt; web: <U><A href="http://www.business-workflow.com/">www.Business-Workflow.com</A></U> <BR>&gt;&gt; _______________________________________________<BR>&gt;&gt; SAP-WUG mailing list<BR>&gt;&gt; <U><A href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A></U> <BR>&gt;&gt; <U><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A></U> <BR>&gt;&gt;________________<BR>&gt;&gt;_______________________________________________<BR>&gt;&gt;SAP-WUG mailing list<BR>&gt;&gt; <U><A href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A></U> <BR>&gt;&gt; <U><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A></U> <BR>&gt; Jeffrey A. Rappaport<BR>&gt; Business Workflow, LLC<BR>&gt; voice: (732)355-0123<BR>&gt; fax: (509)757-4144<BR>&gt; email: <U><A href="mailto:Jeff@Business-Workflow.com">Jeff@Business-Workflow.com</A></U> <BR>&gt; web: <U><A href="http://www.business-workflow.com/">www.Business-Workflow.com</A></U> <BR>&gt; _______________________________________________<BR>&gt; SAP-WUG mailing list<BR>&gt; <U><A href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A></U> <BR>&gt; <U><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A></U> <BR>&gt;<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; SAP-WUG mailing list<BR>&gt; <U><A href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A></U> <BR>&gt; <U><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A></U> <BR>&gt;<BR><BR><BR>Mike Pokraka<BR>Senior Consultant<BR>Workflow Connections Ltd.<BR>Mobile: +44 (0)7786 910 855<BR>_______________________________________________<BR>SAP-WUG mailing list<BR><U><A href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A></U> <BR><U><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A></U> <BR><BR></DIV></BODY></HTML>