Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Ricardo Matos
185
Views
5
Comments
Set timer schedule to a specific date
Question
Hi,
I was wondering if there is a way to set a timer schedule to a specific date of the year?
For instance, I want to set a timer to run in the November 1st. But next year I might want to run it on the 15th October.
I'm thinking of this solution:
- create a Site Property with the date I want the timer to run
- set a timer to run every day and test if today is the day that the timer should run. If so, execute an action. If not, it does nothing.
This looks like the proper solution, but I woudn't like to have another timer running every day just to check this (as I already have a bunch of timers running every day).
Is there a simpler way to set a timer to be awakened at day X?
Thanks,
Ricardo Matos
Fernando Sousa
Hello Ricardo,
You could use the platform's system tables to set the Next_Run of a specific timer.
1. Go to Add/Remove References
2. Select the producer (System)
3. Add the Meta_Cyclic_Job and Cyclic_Job entities
4. Back to your action flow, you can use a Simple Query to select from these tables, passing your application TenantId and the timer name as an input parameter
5. Update the Next_Run field from the Cyclic_Job
I don't know if this is the best way, but it works... It would be nice to have the ability to call a WakeMyTimer action passing the Next_Run as an input parameter. If no parameter was passed, it would run immediately, as it does now.
Hope this helps.
Best regards,
FS
1 reply
13 Feb 2015
Show thread
Hide thread
boku tetu
Hello Sousa
Can you give me a sample application for set the Next_run of a specific timer
thank you very much!!
Matthias Preuter
MVP
This is a Action we use to start a Timer at a specific datetime (or Run now).
2015-02-13 08_51_23-_ TimerHandling (Generic Modules) - emso - Service Studio.png
2 replies
Last reply 03 Jul 2024
Show thread
Hide thread
boku tetu
Thank you!
It's
very
perfect
lalita thanyabunphinan
@Matthias Preuter
Can you give me a .oap sample application for set specific timer
Thank you.
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...