|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Delaying using scheduling server |
« View previous topic :: View next topic » |
Author |
Message
|
amitroyc |
Posted: Wed Apr 03, 2002 4:55 pm Post subject: |
|
|
Novice
Joined: 02 Apr 2002 Posts: 10 Location: India
|
My problem is that i have a block activity and i have an exit condition to come out of that activity. The problem is that the system indefinitely loops for the exit condition to match. What I want is that once the exit condition does not match there should be a delay of say 15 minutes instead of continous polling so that a lot of resource utilization could be minimized. I tried to use the suspend2 method to temporarily suspend the process and resume it again. The Scheduling server was on. I did not get an option in buildtime to set the suspension check interval. But i still went ahead with the inherited suspension check time of 1 hour. It did suspend the process instance but even after 1 hour the process did not resume. Is this the right approach? Or is there anything else which can be done to produce this delay. |
|
Back to top |
|
 |
vedbhat |
Posted: Wed Apr 03, 2002 5:30 pm Post subject: |
|
|
 Disciple
Joined: 19 Mar 2002 Posts: 186 Location: Singapore
|
Hi,
What exactly are doing in the Block and also are these activities automatic.
Regards
Ved |
|
Back to top |
|
 |
amitroyc |
Posted: Thu Apr 04, 2002 6:14 am Post subject: |
|
|
Novice
Joined: 02 Apr 2002 Posts: 10 Location: India
|
These activities are automatic. The UPES is used to automatically run these activities. Actually the problem is that I have an API which calls a method from another API on another server. The output of this method is a boolean. If the value returned is true the exit condition is set and the control comes out of the activity, but if the exit condition is not set, Workflow is in a loop putting the input XML message in the input queue again and the whole process repeats again. Thus the whole process is in a loop until the exit condition matches. What i want is to put a delay in the system before the next poll so that it would save performance. How do i achieve it? |
|
Back to top |
|
 |
jmac |
Posted: Thu Apr 04, 2002 10:43 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Add another Synchronous UPES activity to the end of your loop. Have it sleep for the appropriat time, then send its Response back to MQWF.
MQWF, will ALWAYS repeat any activity (including the contents of a Block or an entire subProcess) when the exit condition of that activity is not met.
GOOD LUCK
_________________ 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
|
|
|
|