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 » Auto-suspend a Process Instance?

Post new topic  Reply to topic
 Auto-suspend a Process Instance? « View previous topic :: View next topic » 
Author Message
IowaWorkflow
PostPosted: Tue Mar 09, 2004 9:25 am    Post subject: Auto-suspend a Process Instance? Reply with quote

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
View user's profile Send private message
jmac
PostPosted: Tue Mar 09, 2004 9:40 am    Post subject: Re: Auto-suspend a Process Instance? Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
JoseLouro
PostPosted: Tue Mar 09, 2004 11:32 am    Post subject: Re: Auto-suspend a Process Instance? Reply with quote

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
View user's profile Send private message Yahoo Messenger
IowaWorkflow
PostPosted: Tue Mar 09, 2004 11:35 am    Post subject: Re: Auto-suspend a Process Instance? Reply with quote

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
View user's profile Send private message
jmac
PostPosted: Tue Mar 09, 2004 11:55 am    Post subject: Reply with quote

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
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 » Auto-suspend a Process Instance?
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.