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 » [SOLVED]How to Suspend and resume a process instance

Post new topic  Reply to topic
 [SOLVED]How to Suspend and resume a process instance « View previous topic :: View next topic » 
Author Message
snan2020
PostPosted: Wed Oct 29, 2003 8:17 am    Post subject: [SOLVED]How to Suspend and resume a process instance Reply with quote

Apprentice

Joined: 06 Jun 2003
Posts: 36

Hi guys,
My english is not too good, so please don't mind.

I have defined a process model with 10 activities. The 6th activity in the model is an UPES (Synchronous). This UPES is suppose to invoke WMQI and WMQI is going to convert the XML message to COBOL Copybook and sent to the mainframe (the actual program or application is running on mainframe). I know this works fine if the mainframe is running all the time.

But in sometimes, what happens if the Mainframe is down (I mean the actual application running on mainframe is not picking up the message from the WMQI's output Q). In that situation, I am thinking of suspending the process instance temporarily until the Mainframe is back up and running.
I know that I can suspend and resume a process instance by sending ProcessInstanceSuspend, and PocessInstanceResume requests to workflow.

1. What do I need to do to achive this automatically.
2. How do I design my Process model (what are the necessary definitions)?

Please shower some ideas.

Thanks in advance
Snan.


Last edited by snan2020 on Wed Oct 29, 2003 10:16 am; edited 2 times in total
Back to top
View user's profile Send private message
vennela
PostPosted: Wed Oct 29, 2003 8:30 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Quote:
But in sometimes, what happens if the Mainframe is down (I mean the actual application running on mainframe is not picking up the message from the WMQI's output Q).


That's the reason you are using MQ. When the mainframe is back up, the message will be picked up. Or, if some subsystem on the MF is down, that is causing the application to stop the processing, the processing should be resumed after everything is OK on the mainframe side. Suspending a workflow process doesn't make sense for the reason of UPES messages not being processed.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
snan2020
PostPosted: Wed Oct 29, 2003 8:42 am    Post subject: Reply with quote

Apprentice

Joined: 06 Jun 2003
Posts: 36

Venny,
First, thanks a lot for the reply. Now I am realizing the greatness of MQ and also realized that MQ is going to take care of that situation until the mainframe is back up and running.

I have one more concern here, say that the mainframe is down and the application is not picking the message. In that scenario I would like to notify my system administrator about the failure in mainframe.

1. How do I do this?
2. Is it really Workflow person work or WMQI person's work?

Thanks,
Back to top
View user's profile Send private message
Ratan
PostPosted: Wed Oct 29, 2003 9:57 am    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

One way is to handle it on MQ level. Put some monitoring on the MQ Queue, so that If a message is not consumed in X number of mins send an alert to the designated person. There are many monitoring tools available which do this
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
snan2020
PostPosted: Wed Oct 29, 2003 10:00 am    Post subject: Reply with quote

Apprentice

Joined: 06 Jun 2003
Posts: 36

Thanks Ratan and Venny.
Back to top
View user's profile Send private message
jmac
PostPosted: Wed Oct 29, 2003 11:35 am    Post subject: Re: [SOLVED]How to Suspend and resume a process instance Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

snan2020 wrote:

I know that I can suspend and resume a process instance by sending ProcessInstanceSuspend, and PocessInstanceResume requests to workflow.


Snan:

Just FYI... I believe that IF you were to suspend the instance, it would not go into a suspended state due to the running UPES activity, so I don't think this would buy you anything.

The solution from Ratan/Venny sounds like it will work for you.
_________________
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
snan2020
PostPosted: Wed Oct 29, 2003 1:52 pm    Post subject: Re: [SOLVED]How to Suspend and resume a process instance Reply with quote

Apprentice

Joined: 06 Jun 2003
Posts: 36

jmac wrote:

The solution from Ratan/Venny sounds like it will work for you.


Thanks Jmac.
I realized that Ratan & Venny's answers are perfect for my question. Anyways, thanks again for the information.

Snan.
Back to top
View user's profile Send private message
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 » [SOLVED]How to Suspend and resume 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.