Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
6 replies
Subscribers
9 subscribers
Views
4822 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Can we setup the timer to run at regular intervals of 15 minutes. We set the del
nitas811
over 9 years ago
Can we setup the timer to run at regular intervals of 15 minutes. We set the delay to 0 minutes due to which every time when we publish the timer starts and runs every 15 minutes after. We want it to run on the exact hour at 15 minutes intervals and not have to remember to change the delay time every time we publish the process model. What is the workaround for this?
OriginalPostID-165437
OriginalPostID-165437
Discussion posts and replies are publicly visible
0
Stacey Wright
Certified Lead Developer
over 9 years ago
Try adding a condition on the timer, pointing to a Boolean constant. Set the constant to false when publishing, then set it to true once you're ready for the timer to start.
Scroll down on this page to the "Timer Conditions" section for more information:
forum.appian.com/.../Start_Event_-_Timer.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
nitas811
over 9 years ago
This is the same thing every time we need to remember to set the constant to true or false when we pusblish. How can we avoid this.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Lakshmi Meyyappan
over 9 years ago
Maybe you can use the "delay until the date and time specified by this expression" rather than the "delay for" option. You can build an expression to take today's date and calculate the next hour, it would look something like this: datetime(year(now()), month(now()), day(now()), hour(now())+1, 0, 0)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohamedt808
over 9 years ago
I would suggest using delay timer,
i.e. say you want timer to start at 9 and 15 minutes once then
gmt(datetime(year(today()), month(today()), day(today()),09, 00, 00)) in the delay timer and interval in minutes as 15 .
you can also use conditions if you want to control the timer.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
nitas811
over 9 years ago
Hi Lakshmim, your logic works except if I publish the flow as say 12:16, the next time it will run is at 13:00 and will miss the 12:30 and 12:45 windows. Anyway to set it up as a cronjob.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Lakshmi Meyyappan
over 9 years ago
I'm sure we can write an expression that will work. How about a sequence of if() statements? So if the current minute is <=15 use datetime(..., hour(now()), 15, 0), if the current time is >15 and <= 30 use datetime(..., hour(now(), 30, 0), etc.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel