Author |
Message
|
snan2020 |
Posted: Wed Oct 29, 2003 8:17 am Post subject: [SOLVED]How to Suspend and resume a process instance |
|
|
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 |
|
 |
vennela |
Posted: Wed Oct 29, 2003 8:30 am Post subject: |
|
|
 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 |
|
 |
snan2020 |
Posted: Wed Oct 29, 2003 8:42 am Post subject: |
|
|
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 |
|
 |
Ratan |
Posted: Wed Oct 29, 2003 9:57 am Post subject: |
|
|
 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 |
|
 |
snan2020 |
Posted: Wed Oct 29, 2003 10:00 am Post subject: |
|
|
Apprentice
Joined: 06 Jun 2003 Posts: 36
|
|
Back to top |
|
 |
jmac |
Posted: Wed Oct 29, 2003 11:35 am Post subject: Re: [SOLVED]How to Suspend and resume a process instance |
|
|
 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 |
|
 |
snan2020 |
Posted: Wed Oct 29, 2003 1:52 pm Post subject: Re: [SOLVED]How to Suspend and resume a process instance |
|
|
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 |
|
 |
|