Posted: Tue May 11, 2004 1:50 pm Post subject: [SOLVED]Process Instances - Restart
Master
Joined: 16 Dec 2003 Posts: 297
WF 3.4.
I use Web Client.
I have around 1000 process instances in my process instances list. All of them are waiting for response back from UPES requests. The 6th activity of the process is Synchronous UPES call, and actually WF already sent the ActImpInvoke messages, and waiting for the response back. But unfortunately I lost all these messages from that UPES queue.
I know I can restart them manually and send the messages again to UPES queue, by going to each of the process instance monitor and by force restarting the activity.
I would like to know
1) Is there any other easy way to achieve this task?
2) If I need to use any API, how do I proceed on implementing that API?
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
CHF:
I assume that you can not see any workitems for these. I think the only possiblity is going to be to write some code.
For Each Stuck instance:
1. Access the Instance.
2. Get the ActivityInstances for this Instance.
3. Locate the proper Activity
4. Issue a ForceRestart on the Activity Instance (this will create a
(workitem for the user id that issues the forceRestart)
5. Access the workitem
6. Do a Start() on the workitem. This will cause the message to be sent
to the UPES again. _________________ John McDonald
RETIRED
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