It's all about the answers!

Ask a question

Asynchronous Plugin in RTC


Pallavi Deore (3615) | asked Oct 15 '18, 3:33 a.m.

Hello Everyone,


I am using CLM 6.0.5, I have created a asynchronous plugin which uncheck the boolean attribute "status" in every 1 hour, It works fine.
But now I need to execute this plugin at 12 Clock at night so How to implement this?
Thanks in Advance.

One answer



permanent link
David Lafreniere (4.6k7) | answered Oct 15 '18, 10:49 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
I'm not sure if there is a mechanism to trigger a server side Task to run at a given time.
You could write your own instance of AbstractAutoScheduledTask and have it run every couple of minutes (you would still want to it run every couple of minutes vs couple of seconds to reduce the server load), and then in your implementation you simply check the time at the start, and return if it's not at 12:00 +/- your sleep time. So if it's scheduled to run every 3 min, then at least you'll be +/- 3 min away from 12:00 (so hopefully that is good enough)

Your answer


Register or to post your answer.