ABSENCE Approval workflow - confirmation when approved

Sorin Stancu Sorin.Stancu at cac.gc.ca
Wed Nov 29 10:55:40 EST 2000


Hi,
 
I am having the following problem when implementing  'send notification in case
of approval' for the HR Absence workflow (based on template 00400222)
In case an absence is requested, the supervisor receives a work item in his/her
workflow inbox. The supervisor then has the option to approve/reject it. When
the absence is approved & unlocked an email should be sent to the owner of the
request.
The problem comes when sending this email -> When an absence is
approved/unlocked the following events are triggered: ABSENCE.CREATED and
ABSENCE.REQUESTCANCELLED.
The last event (REQUESTCANCELLED) is *also* triggered in case the initiator
decides later to delete his absence request.
The workflow has a fork which contains the wait for event
ABSENCE.REQUESTCANCELLED step (<- this is used to logically delete all workflow
steps when an absence is deleted)
Therefore, in case the absence is approved and unlocked, because the
ABSENCE.REQUESTCANCELLED is triggered, the wait for event step is executed and
the email from the other branch doesn't 'have time' to be executed. The email is
implemented via a background task using SELFITEM.SENDTASKDESCRIPTION.
 
Thanks,
Sorin Stancu
 


More information about the SAP-WUG mailing list