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 » WebSphere Message Broker (ACE) Support » TimerNotification node activates immediately

Post new topic  Reply to topic
 TimerNotification node activates immediately « View previous topic :: View next topic » 
Author Message
alma
PostPosted: Mon Jun 18, 2018 3:04 am    Post subject: TimerNotification node activates immediately Reply with quote

Apprentice

Joined: 26 Jan 2011
Posts: 36

Hello,
I want my flow run at specified interval but it activated immediately after setting it up in a TimeControl node.
I use this code to set the TimeControle node:
Code:
SET OutputLocalEnvironment.TimeoutRequest = NULL;
SET OutputLocalEnvironment.TimeoutRequest.Identifier = 'Timer2';
SET OutputLocalEnvironment.TimeoutRequest.Action = 'SET';
SET OutputLocalEnvironment.TimeoutRequest.StartDate = 'TODAY';
SET OutputLocalEnvironment.TimeoutRequest.StartTime = 'NOW';
SET OutputLocalEnvironment.TimeoutRequest.Count = 1;
SET OutputLocalEnvironment.TimeoutRequest.Interval = getStatusSec;
SET OutputLocalEnvironment.TimeoutRequest.IgnoreMissed = TRUE;
SET OutputLocalEnvironment.TimeoutRequest.AllowOverwrite = FALSE;


The problem is the TimeNotification activated immediately (in debug) independently the value of getStatusSec variable.
Could someone help me, please?
Back to top
View user's profile Send private message
abhi_thri
PostPosted: Mon Jun 18, 2018 4:31 am    Post subject: Re: TimerNotification node activates immediately Reply with quote

Knight

Joined: 17 Jul 2017
Posts: 516
Location: UK

alma wrote:

Code:

SET OutputLocalEnvironment.TimeoutRequest.StartDate = 'TODAY';
SET OutputLocalEnvironment.TimeoutRequest.StartTime = 'NOW';



I think it is working as designed as the StartDate is set as TODAY and StartTime as NOW, the 'Interval' value just allows you to specify the time delay between the message propagations.

If you want the timer events to start triggering at a specific time use 'hh:mm:ss' to specify it for StartTime param.

If your intention is to emit timer events throughout the day (every X seconds) then why does it matter if the event starts as soon as the flow is deployed (i.e NOW)?
Back to top
View user's profile Send private message
alma
PostPosted: Mon Jun 18, 2018 5:21 am    Post subject: Reply with quote

Apprentice

Joined: 26 Jan 2011
Posts: 36

Thank you for your answer abhi_thri. I have understood.
There is another flow with a SOAPRequest node (file upload). Its response a secundum what tells me how many seconds later I can ask the status of upload.
1. First SOAPRequest upload a file.
2. It get back a sec which is set a TimeControl node.
3. The TimeNotification node will be activated in the given sec.

I hope I explained it clearly.

So I must a time in the future when I want to run it first then an interval when it runs at next time?
Back to top
View user's profile Send private message
abhi_thri
PostPosted: Mon Jun 18, 2018 5:49 am    Post subject: Reply with quote

Knight

Joined: 17 Jul 2017
Posts: 516
Location: UK

You just need to set the StartTime as 'Current time + <wait interval>' in the TimeoutControl request.

Have a look at infocenter Sending a message after a timed interval
Back to top
View user's profile Send private message
shashivarungupta
PostPosted: Mon Jun 18, 2018 11:16 am    Post subject: Re: TimerNotification node activates immediately Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

alma wrote:

I want my flow run at specified interval but it activated immediately after setting it up in a TimeControl node.


Timer node at Broker/IIB are generally gets mixed up with Scheduler. Timer of Timer node starts as soon as you deploy/stop-start the Mflow/Application. Interval is a delay/gap between two instances of time, it's not a fixed schedule.


_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » TimerNotification node activates immediately
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.