LIferay 7.2 - How to create a Schedule?

Fabio Carvalho, modified 5 Years ago. Junior Member Posts: 81 Join Date: 6/25/19 Recent Posts
Hi,

I need to implement a schedule that does something at 2 AM everyday. I have been researching about this and all the examples that I found have deprecated methods with no direct replacements (eg. https://liferay.dev/blogs/-/blogs/liferay-7-ce-liferay-dxp-scheduled-tasks).

I wonder if the schedule is built differently nowadays. Is there any documentation or example on how to create a schedule?
kesu ks, modified 5 Years ago. Junior Member Posts: 27 Join Date: 8/31/14 Recent Posts
Hi
you can refer this link explanation is given
https://www.surekhatech.com/blog/scheduler-in-liferay-7-1-d-1HTH!
Fabio Carvalho, modified 5 Years ago. Junior Member Posts: 81 Join Date: 6/25/19 Recent Posts
I am still having issues with this. I have followed the guides and deployed my module, but the "doReceive" method never get called. Am I supposed to activate the schedule manually?

EDIT: it seems I was doing a wrong cron expression. It is working now.