|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Auto-suspend a Process Instance? |
« View previous topic :: View next topic » |
Author |
Message
|
IowaWorkflow |
Posted: Tue Mar 09, 2004 9:25 am Post subject: Auto-suspend a Process Instance? |
|
|
Newbie
Joined: 12 Feb 2004 Posts: 8
|
We have a scenario where we would like for a process to automatically go to a suspended state when a certain activity in the process model goes to a ready state. For example, suppose TEST PROCESS contains two activities, ACTIVITY1 and ACTIVITY2. When TEST PROCESS is instantiated, ACTIVITY1 kicks off and is completed by a user. ACTIVITY2 then goes to a ready state until a user starts it. As soon as ACTIVITY2 goes to a ready state, we would like for TEST PROCESS to automatically go to a suspended state. Does Workflow support this scenario? |
|
Back to top |
|
 |
jmac |
Posted: Tue Mar 09, 2004 9:40 am Post subject: Re: Auto-suspend a Process Instance? |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
IowaWorkflow wrote: |
Does Workflow support this scenario? |
Not directly, but I think you can get this done pretty easily. Put an automatic activity in front of this one, that issues a Suspend. The only issue is that you might get this "Auto" activity in a suspending state, as opposed to your manual activity "Activity2" in a ready state. I think if you played around with this, you could make sure that you got the Instance suspended with your Activity2 ready. If you try this and have trouble, let me know, and I will think about how you can make it happen.
GOOD LUCK _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
JoseLouro |
Posted: Tue Mar 09, 2004 11:32 am Post subject: Re: Auto-suspend a Process Instance? |
|
|
Newbie
Joined: 09 Mar 2004 Posts: 4 Location: LISBON - PORTUGAL
|
As John said, directly there’s no way…
Another suggestion is :
If you're using Audit Trail (either on DB2 or MQ) you can catch the event 21006 for any Activity2, grab the Process Instance Name, and then issue a Suspend Process for that Instance. _________________ Best regards,
___________________________________
Jose LOURO
IT Specialist Advisory / Consultant
IBM Business Consulting Services
___________________________________ |
|
Back to top |
|
 |
IowaWorkflow |
Posted: Tue Mar 09, 2004 11:35 am Post subject: Re: Auto-suspend a Process Instance? |
|
|
Newbie
Joined: 12 Feb 2004 Posts: 8
|
The key is that we must ensure that Activity2 is in a ready state before the process instance is suspended. If we add an auto-activity to suspend the process before Activity2, then the process will be suspended before the Activity2 is ready.
We thought about having Activity1 simultaneously trigger Activity2, and Activity3, where Activity3 will wait one minute, then launch a UPES call to suspend the process instance. The one minute wait will help ensure that there is enough time for Activity2 to go to a ready state before the process is suspended. It is a bit of a sloppy solution, but it should work.
Thanks |
|
Back to top |
|
 |
jmac |
Posted: Tue Mar 09, 2004 11:55 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Can you possibly have Activity 2 autostart; suspend the process instance; then end failing its exit condition. This might give what you want. _________________ 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
|
|
|
|