ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Deletion of application data on activity expiry

Post new topic  Reply to topic
 Deletion of application data on activity expiry « View previous topic :: View next topic » 
Author Message
sac
PostPosted: Tue Jan 04, 2005 8:57 pm    Post subject: Deletion of application data on activity expiry Reply with quote

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
View user's profile Send private message
Andy
PostPosted: Wed Jan 05, 2005 6:43 am    Post subject: Reply with quote

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
View user's profile Send private message
jmac
PostPosted: Wed Jan 05, 2005 8:20 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Deletion of application data on activity expiry
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.