|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Deletion of application data on activity expiry |
« View previous topic :: View next topic » |
Author |
Message
|
sac |
Posted: Tue Jan 04, 2005 8:57 pm Post subject: Deletion of application data on activity expiry |
|
|
Apprentice
Joined: 10 Feb 2003 Posts: 44
|
Hi,
In one scenario, the requirement was that if any activity does not get completed in certain time frame, then certain set of data needs to be deleted from the application data base and the process instance should also be finished. Now there were many touch-points/activities in process where this could occur. So, if any of the activity is not completed, the process execution should be stopped/finished at that point and certain set of data was required to be deleted from the DB.
I suggested one way of using sub-process. In this, the sub-process had all activities that were actually required for process execution. I had multiple sink points in this sub-process. One for each activity that was suppose to be completed in certain time frame. So, if for an actvity
_state() <> 'Expired', the control flows normally, and if _state()='Expired' the control flows to the sink point, hence the sub-process got finished. When the control comes to the Parent process, i checked if _RC = 0 or not. if not then following the sub-process activity i had UPES actvity, which used to do the application data deletion from DB.
Please suggest if there is any alternative to this.
-Thanks |
|
Back to top |
|
 |
Andy |
Posted: Wed Jan 05, 2005 6:43 am Post subject: |
|
|
 Centurion
Joined: 14 May 2003 Posts: 122
|
Your sink activity itself can be a UPES activity which is deleting data from DB and setting _RC.
when control comes to parent process, _RC value for any transition condition doesnt satisfy. It will make Parent process also be finished.
You just save one activity cost. I am assuming you are not doing anything in sink activity of sub process. _________________
Andy |
|
Back to top |
|
 |
jmac |
Posted: Wed Jan 05, 2005 8:20 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
sac: your solution seems fine. You should just be aware that the subprocess is quite expensive (3.9 BWU) as opposed to doing the same thing with a Block (.8 BWU) _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|