Terminating event does not cancel task (46C)

Soady, Phil phil.soady at sap.com
Wed Apr 2 02:11:10 EST 2003


Try a small workflow instead of as task.
 
The task does what it should, except without the events.
 
The wf has triggering event.
The wf also has a fork parallel.
 
In the wait part of fork, wait for the event that should stop it.
When the wait event happens, in the follow step,
put a process control type 2.  KILL the wf.
 
Should get by the WI being committed. Since the WF is in status in process.
 
I didn't test this. But would expect it to work.
hope it does ;-)
 
Good luck
 
Phil Soady
Senior Consultant
Business Technologies
SAP Australia
* : 0412 213 079
* : phil.soady at sap.com
 
 
 
 
 
-----Original Message-----
From: Kjetil Kilhavn [mailto:kjetilk at statoil.com]
Sent: Wednesday, April 02, 2003 4:51 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Terminating event does not cancel task (46C)
 
 
I have created a task (TS) for approval of individual development plans - career planning is close to the truth. The object is home-made with events planChanged and itemSubmitted (for approval). The task has triggering and terminating events, and the 'Confirm end of processing' flag has been set. The method (and thus the task) is synchronous. The events are published by a program that runs nightly.
 
The task responds nicely to the triggering event, creating a new work item that lands in the managers workflow inbox. Unfortunately, the terminating event does not function quite as perfectly. If the work item has status Committed (i.e. executed without confirming end of processing) the log shows that the event was received, but the work item is not cancelled. If the work item is in status Ready the log shows that the terminating event was received and the work item is set in status Committed.
 
Thus the manager will receive a second work item if the plan is changed again (new item submitted for approval) before the manager completed handling the previously received work item. This was not what I had in mind when I defined that terminating event.
 
No OSS notes seem to apply (at least not when searching with key words terminating and event).
 
Does anyone know if the combination of 'Confirm end of processing' and a terminating event impossible? I've looked in The Book without finding anything. By impossible I mean useless, as there is no point in having a terminating event unless it actually causes termination to happen. Requiring an end of processing confimation after a terminating event has been received makes no sense.
 
I was hoping that for once I would be able to simply use a single task....
--
Kjetil Kilhavn
 
-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is intended for the addressee only. Any unauthorised use, dissemination of the information or copying of this message is prohibited. If you are not the addressee, please notify the sender immediately by return e-mail and delete this message. Thank you.
 


More information about the SAP-WUG mailing list