START_WITH_DELAY in SWE_EVENT_CREATE.... function modules

Rickayzen, Alan alan.rickayzen at sap.com
Thu Dec 20 10:32:31 EST 2001


Hi Stephan, David,
 
Thanks for the suggestion. Ten minutes seemed like a good chance for a
hard-worked undernourished workflow consultant to nip off and grab a cup of
something to drink.
 
Seriously, we were (and still are) worried about this being too finely tuned
resulting in upgrade problems when the next performance improvements arrive
in the next release. This is why we decided on a fixed value.
 
Alan
 
 
 
-----Original Message-----
From: Becker Stephan (extern) [mailto:Stephan.Becker.ext at mchw.siemens.de]
Sent: 20 December 2001 10:34
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: START_WITH_DELAY in SWE_EVENT_CREATE.... function modules
 
 
 
David,
 
you're right, the time is hard-coded, so this would be a case for Alan :-)
 
Stephan
 
-----Original Message-----
From: David Weston [mailto:weston at clockwork.ca]
Sent: Thursday, December 13, 2001 3:42 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: START_WITH_DELAY in SWE_EVENT_CREATE.... function modules
 
 
Hi Stephan,
 
Thanks for this....learn something new all the time, isn't life great !!
OK here's another question....can this time be configured ? It looks like
its
hard coded to me in the function modules. 10 minutes seems a trifle
excessive.
 
Alan....looks like a development request to me ? Could we make this
configurable ?
Can't hurt to ask right....:)
 
Happy holidays.
 
Cheers
Dave
 
 
----- Original Message -----
From: Becker Stephan  <mailto:Stephan.Becker.ext at mchw.siemens.de> (extern)
To: SAP-WUG at MITVMA.MIT.EDU <mailto:SAP-WUG at MITVMA.MIT.EDU>
Sent: Tuesday, December 11, 2001 3:24 AM
Subject: Re: Multiple Events triggered - 'No receiver entered' message for
one of them in SWEL
 
dave,
use the parameter "start_with_delay" in the swe_event_create_in_upd_task
function module for one of your event creations, that will delay the
creation of that event for 10 minutes without slowing down the dialog task.
when you are starting event creation in the dialog task, always use the
_in_update_task function module, as otherwise you have an event and no
corresponding document on the database in case of an update failure.
stephan
 
-----Original Message-----
From: David Weston [mailto:weston at clockwork.ca]
Sent: Tuesday, December 11, 2001 2:32 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Multiple Events triggered - 'No receiver entered' message for one
of them in SWEL
 
 
Hi group,
 
I have a tricky question for the group. Using table T779X to trigger a
function module when an org unit
is created to trigger a workflow, the function module does the following :-
 
1. Uses SWE_EVENT_CREATE to trigger the event 'Created' and a WS workflow is
started. In this workflow there is a wait step based on an event called
'Responsibility'.
2. The function module could also trigger the event 'Responsibility' using
SWE_EVENT_CREATE immediately after the 'Created' event.
 
Here's the issue: the wait step for the event 'Responsibility' does not find
a receiver because the 2 events are almost triggered simultaneously and the
wait step in the workflow has not been created yet !
 
I have put in the ABAP code the command 'WAIT UP TO n SECONDS' after the
event 'Created' is triggered but hate this as it slows the dialog
transaction !! I have tried using SWE_EVENT_CREATE_IN_UPD_TASK but that
doesn't help either.
 
Has anyone else had this sort of problem, if so how did you go about solving
it ?.
 
Cheers
Dave Weston
Clockwork.ca
 
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20011220/269a670d/attachment.htm


More information about the SAP-WUG mailing list