|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
TimeOut Notification Design |
« View previous topic :: View next topic » |
Author |
Message
|
kirankinnu |
Posted: Tue Jan 22, 2008 8:07 am Post subject: TimeOut Notification Design |
|
|
 Centurion
Joined: 12 Jun 2004 Posts: 128 Location: Chicago, IL
|
Hello Folks,
I have a design question to ask. We are having 2 flows, both needs to be run every 30 minutes. But there should be a gap of 15 minutes between both of them. I am using TimeoutNotification to schedule the time. I am deploying the first flow and after 15 minutes I am deploying the second flow, so that both maintain the time difference.
So the first flow would run in this fashion: 00, 30, 1:00, 1:30...
Second flow would run in this fashion 15, 45, 1:15, 1:45....
But the problem over here is when the broker gets restarted, both of them r starting at the same time. Basically the broker restart should not effect the timings.
How could we design this.
I would appreciate any suggestions/help.
Regards,
Kiran |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jan 22, 2008 8:43 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You want to change the flows.
You should, in the flow, calculate (maybe based on a user defined property) when the next interval should start.
For example, get the current time, and then calculate how long you need to delay until the first interval. Then stick a flag into a shared variable that says you can just wait 30 minutes the next time.
This can be done with TimeoutControl in addition to TimeoutNotification. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
TonyD |
Posted: Wed Jan 23, 2008 10:47 am Post subject: |
|
|
Knight
Joined: 15 May 2001 Posts: 540 Location: New Zealand
|
|
Back to top |
|
 |
kirankinnu |
Posted: Wed Jan 23, 2008 12:53 pm Post subject: Solved |
|
|
 Centurion
Joined: 12 Jun 2004 Posts: 128 Location: Chicago, IL
|
Thank You for the support
As Jefflowrey said, I had to use both the TimeoutControl and TimeOutNotification nodes. I had to compile the schedule time and send it to TimeOutControl, which would later trigger the TimeoutNotification node in a controlled fashion.
Regards,
Kiran |
|
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
|
|
|
|