Author |
Message
|
alma |
Posted: Mon Jun 18, 2018 3:04 am Post subject: TimerNotification node activates immediately |
|
|
 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 |
|
 |
abhi_thri |
Posted: Mon Jun 18, 2018 4:31 am Post subject: Re: TimerNotification node activates immediately |
|
|
 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 |
|
 |
alma |
Posted: Mon Jun 18, 2018 5:21 am Post subject: |
|
|
 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 |
|
 |
abhi_thri |
Posted: Mon Jun 18, 2018 5:49 am Post subject: |
|
|
 Knight
Joined: 17 Jul 2017 Posts: 516 Location: UK
|
|
Back to top |
|
 |
shashivarungupta |
Posted: Mon Jun 18, 2018 11:16 am Post subject: Re: TimerNotification node activates immediately |
|
|
 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 |
|
 |
|