End Workflow after n-hours

Florin Wach florin.wach at gmx.net
Thu Apr 10 07:48:26 EDT 2008


Hello Chris,

use that additional branch 1/5 with an Activity (and **Background**-Task) based on a method with basically no coding or something that just does nothing in particular, i.e. on:

SELFITEM.ExistenceCheck  (and as the object you could use the one that comes with every workflow, ie. _WORKITEM)


On the activities tab under "Requested start" activate the deadline monitoring to "WIS Workitem creation" and under offset use  +n Hours

This works the same as with dialog activities: The work item is put into the status WAITING until the deadline is reached and picked up by the deadline monitoring job (SWWDHEX). When the job puts the status to READY it will also look, if it is a background item which is ready for processing and if so, it will be immediatly processed. This will close your 5th thread and end the workflow.


Best regards,
   Florin




-------- Original-Nachricht --------
> Datum: Thu, 10 Apr 2008 12:27:33 +0100 (BST)
> Von: "Mike Pokraka" <wug at workflowconnections.com>
> An: "SAP Workflow Users\' Group" <sap-wug at mit.edu>
> Betreff: Re: End Workflow after n-hours

> Use a wait step.
> This is simply a background task based on a custom WAIT method with no
> code. Put a requested start deadline of n hours.
> After n hours, workflow will start the task, execute all it's nothingness
> in a few milliseconds and terminate your fork.
> 
> Of course being the simplest possible task, this is also a perfect example
> to give OO classes a go :-)
> 
> Cheers,
> Mike
> 
> 
> On Thu, April 10, 2008 11:11 am, Christian Wallner wrote:
> > Hi WUGers!
> >
> > I have a question which I'm sure is easy to answer for some guys here:
> > I want a workflow to terminate itself after n hours because its obsolete
> > then. Basically the wf is quite simple, it consists of a parallel
> section
> > with 4 branches (1 out of 4 to complete). So my first thought was a wait
> > event in a 5th branch. But unfortunately I didn't find out how to tell
> > this step to terminate itself after wf creation date+n hours.
> >
> > Any ideas?
> >
> > regards,
> > Chris
> >
> > AT&S Austria Technologie & Systemtechnik AG
> > Legal form | Rechtsform: Aktiengesellschaft
> > Registered office | Sitz: Fabriksgasse 13, 8700 Leoben, Austria
> > Commercial Register Number | Firmenbuchnummer: FN 55638 x, Landesgericht
> > Leoben
> >
> > This e-mail and any attachment may contain confidential and/or
> privileged
> > information. If you are not the intended recipient (or have received
> this
> > e-mail in error) please notify the sender immediately and destroy this
> > e-mail. Any unauthorised copying, disclosure or distribution of the
> > material in this e-mail is strictly forbidden.
> > _______________________________________________
> > SAP-WUG mailing list
> > SAP-WUG at mit.edu
> > http://mailman.mit.edu/mailman/listinfo/sap-wug
> >
> 
> 
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug



More information about the SAP-WUG mailing list