I would have done like this –
For eg. suspending a task, we have inbuilt service
%invoke wm.server.schedule:suspendUserTask% This is listed in scheduler.dsp under WmRoot/pub.
Write a wrapper service(myPkg.AlertNotify:suspendTask) in which -
- Get the session details(inbuilt services) to retrieve user, sessionid, ip etc
- Alert an email or some notification
- Call the orginal service %invoke wm.server.schedule:suspendUserTask%
Once the service is done,
In the scheduler.dsp, replace %invoke wm.server.schedule:suspendUserTask% with %myPkg.AlertNotify:suspendTask%.
Similary you can do for other functions of Addition/Deletion of Scheduled tasks.
Be causious while you handle .dsp. It is ok if you just change the service names. Always take a backup before you try.
Hope it helps.