177
Views
10
Comments
Solved
Timers
Question

Hi,

I've a scenario whereas I want to create a page, which allows the users to schedule the tasks using timer. Is there any provision to implement it by default or do we need to install any forge component for the same? If yes can you help out with the steps?


Thank you in advance

2020-05-07 18-53-00
Rui Barradas
 
MVP
Solution

Hello Krishnagupta,

Hope you're doing well.

I don't think there is any forge component for this purpose, so you'll have to implement the logic by yourself.

The information about the timers in OutSystems are stored in System entity Cyclic_Job_Shared.

In that entity, you'll find the attributes Schedule and Next_Run which control the date and time for the next runs of the timers on your environment.


Before implementing any logic, please keep in mind that this is a System entity and contains information regarding all the timers running in your environment. You'll have to be extra careful when implementing your logic and you should only change those 2 attributes.

You can find more information in here.


Hope that this helps you!


Kind regards,

Rui Barradas

UserImage.jpg
Krishnagupta Kakaraparthy

Hi Rui,

Thanks for the detailed information and letting me know, what all things to ensure about. 

This sounds something familiar. Will give it a try.


Kind regards,

Krishnagupta Kakaraparthy

2021-07-07 13-36-32
Hans Dollen

hello,

you cannot schedule a timer as an application user. Timers wil run on a certain moment defined in Service Center. If you want to schedule tasks for users, BPT might fit your purpose. 

Kind regards Hans

UserImage.jpg
Krishnagupta Kakaraparthy

Hi Hans,

Thanks for your reply, would try and let you know.




2020-05-07 18-53-00
Rui Barradas
 
MVP

Hello there,

Hans's answer is not entirely correct. You can schedule a timer as an application user, but you'll have to implement the logic for that.


Kind regards,

Rui Barradas

2021-07-07 13-36-32
Hans Dollen

Thank you for this reply, yes you're right indeed.

But you cannot schedule a timer per user. You can create records with a schedule timestamp to reschedule the timer after each run. As you noticed, you have to be very keen on creating this logic. That's why I suggest BPT. 
regards Hans 

2020-05-07 18-53-00
Rui Barradas
 
MVP
Solution

Hello Krishnagupta,

Hope you're doing well.

I don't think there is any forge component for this purpose, so you'll have to implement the logic by yourself.

The information about the timers in OutSystems are stored in System entity Cyclic_Job_Shared.

In that entity, you'll find the attributes Schedule and Next_Run which control the date and time for the next runs of the timers on your environment.


Before implementing any logic, please keep in mind that this is a System entity and contains information regarding all the timers running in your environment. You'll have to be extra careful when implementing your logic and you should only change those 2 attributes.

You can find more information in here.


Hope that this helps you!


Kind regards,

Rui Barradas

UserImage.jpg
Krishnagupta Kakaraparthy

Hi Rui,

Thanks for the detailed information and letting me know, what all things to ensure about. 

This sounds something familiar. Will give it a try.


Kind regards,

Krishnagupta Kakaraparthy

UserImage.jpg
Saurabh Shivananda Prabhu Chimulkar

Hi Krishnagupta,

Ideally Timers are used for asynchronously processing some considerable amount of data without requiring any kind of human activity. i.e Processing a large excel file, sending email notifications, periodic archiving of data etc... Also do note that By default 3 Timers can run in parallel on an environment (configurable),  but at a time only 1 instance of the same Timer can run on an environment (considering Timer is not multi tenant)

When you say Task what is it that you are trying to accomplish in it i.e. processing of data or defining business workflow ? And are you expecting multiple Tasks to run in parallel if schedule reached ? If you could provide some more information then that will help in suggesting an approach.


Regards,

Saurabh

UserImage.jpg
Krishnagupta Kakaraparthy

Hi Saurabh,

Basically, my requirement is to export the data from database into excel sheet at the scheduled time by the user and he should get the email notification for the same.

So, I hope that only 1 instance of same timer can do this piece of task.

Kind Regards,

Krishnagupta Kakaraparthy


2021-12-23 04-28-09
Navneet Sharma

Hello @Krishnagupta Kakaraparthy ,

You can refer this videos 

https://www.youtube.com/watch?v=maJgEZLfk9c&t=200s/

https://www.youtube.com/watch?v=0I0j64-cbsQ&t=223s

I hope this videos will help you


Thanks & Regards

Navneet Sharma

UserImage.jpg
Krishnagupta Kakaraparthy

Hi Navneet,

Thanks for the reply, I've already gone through those tutorials, but I want something different, user should be able to schedule the time for performing tasks.


Regards,

Krishnagupta Kakaraparthy

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.