| Author | Message | 
		
		  | sumitha.mp | 
			  
				|  Posted: Tue Aug 21, 2012 5:29 am    Post subject: WebSphere Message Broker : Need help on usage of Timer Node |   |  | 
		
		  | Newbie
 
 
 Joined: 21 Aug 2012Posts: 9
 
 
 | 
			  
				| HI, I have a requirement to automatically (without any external trigger) run a message flow (MSG_FLOW1) at a specific time on Sunday to do some clean up activities in Database.
 During the time MSG_FLOW1 is running , I need to stop my regular message flow (MSG_FLOW2) which has a TimeOutNotification Node and configured to runs in every 10 sec.
 
 One way which which we could think about is introducing a time check in MSG_FLOW2 and if the time is nearing the clean up time , give an input to MSG_FLOW1 to start the clean up. Else do the regular activities of MSG_FLOW2. But since out MSG_FLOW2 is very complex having a conditional check in every 10 sec might not be a good approach.
 
 Can you please help by suggesting a way to achieve this.
 
 Thank You.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | bruce2359 | 
			  
				|  Posted: Tue Aug 21, 2012 5:38 am    Post subject: |   |  | 
		
		  |  Poobah
 
 
 Joined: 05 Jan 2008Posts: 9486
 Location: US: west coast, almost. Otherwise, enroute.
 
 | 
			  
				| Moved to MB support forum. _________________
 I like deadlines. I like to wave as they pass by.
 ב''ה
 Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | lancelotlinc | 
			  
				|  Posted: Tue Aug 21, 2012 5:43 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 22 Mar 2010Posts: 4941
 Location: Bloomington, IL USA
 
 | 
			  
				| Make better use of the system utilities designed for such: cron. 
 Don't turn WMB into a sys-admin tool. Use the sys-admin tools you already have.
 _________________
 http://leanpub.com/IIB_Tips_and_Tricks
 Save $20: Coupon Code: MQSERIES_READER
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | mqjeff | 
			  
				|  Posted: Tue Aug 21, 2012 5:44 am    Post subject: |   |  | 
		
		  | Grand Master
 
 
 Joined: 25 Jun 2008Posts: 17447
 
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | inMo | 
			  
				|  Posted: Tue Aug 21, 2012 9:29 am    Post subject: |   |  | 
		
		  |  Master
 
 
 Joined: 27 Jun 2009Posts: 216
 Location: NY
 
 | 
			  
				| The timeout notification node can run automatically upon deployment or flow start.  You can use that capability to automatically schedule your desired time of timeout (Sunday at X o'clock) for your main flow.  Your main flow will need another timeout notification node that fires on schedule.  The scheduled flow will need to stop your other (10 second interval flow), do it's processing, then start the 10 second interval flow up, and reschedule the next run. |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | sumitha.mp | 
			  
				|  Posted: Tue Aug 21, 2012 6:47 pm    Post subject: |   |  | 
		
		  | Newbie
 
 
 Joined: 21 Aug 2012Posts: 9
 
 
 | 
			  
				| 
   
	| inMo wrote: |  
	| The timeout notification node can run automatically upon deployment or flow start.  You can use that capability to automatically schedule your desired time of timeout (Sunday at X o'clock) for your main flow.  Your main flow will need another timeout notification node that fires on schedule.  The scheduled flow will need to stop your other (10 second interval flow), do it's processing, then start the 10 second interval flow up, and reschedule the next run. |  
 
 Thank you for responding to my query.
 Can you please tell me how to achieve this-> The scheduled flow will need to stop your other (10 second interval flow)
 How do we stop/start a message flow by getting control from another flow ?
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | smdavies99 | 
			  
				|  Posted: Tue Aug 21, 2012 9:19 pm    Post subject: |   |  | 
		
		  |  Jedi Council
 
 
 Joined: 10 Feb 2003Posts: 6076
 Location: Somewhere over the Rainbow this side of Never-never land.
 
 | 
			  
				| Controlling one flow from another has been discussed many times on this forum. -- Job Control node support pack
 -- Issue PCF commands to 'get inhibit' the input queue of a queue
 -- Write some java to issue the mqsi... commands
 
 I am sure there are many others.
 _________________
 WMQ User since 1999
 MQSI/WBI/WMB/'Thingy' User since 2002
 Linux user since 1995
 
 Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |