Posted: Thu Jan 15, 2004 6:56 am Post subject: Suspend/Resume activity
Apprentice
Joined: 23 Oct 2003 Posts: 40
1. We have a requirement where a time is obtained from an external system and the activity is supposed to wait until that time. There may be a case where this activity may be required to start/ resume. Can some one tell me what is the best way to implement this scenario .
2. The requirement is to wait for 2 business days rather than 48 hrs straight. Just wondering as to how any one out there is implementing this kind of scenario.
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
There is a suspend method for ProcessInstance (suspend2 in java) that allows you to specify that you want the instance to be resumed at a particular date/time. You should be able to calculate this quite easily.
If you need to resume early, simply use the resume method of ProcessInstance.
Note that this is at the INSTANCE level not the ACTIVITY level, so this will not work for you if you are running other activities in parallel that you wish to continue processing.
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