Listing of last run time of system jobs

7 views
Skip to first unread message

hpa...@gmail.com

unread,
Dec 13, 2017, 2:41:37 PM12/13/17
to dotCMS User Group
Hello,

I am trying to list out the last run time of system jobs in dotcms. It will be posted to a portlet from dynamic plugin. Is there a way to get this info off of system jobs?

Any help is appreciated!!
Thank you!

Nathan Keiter

unread,
Dec 13, 2017, 3:13:17 PM12/13/17
to dot...@googlegroups.com

This might be a starting point for you.

 

Last run time might be a property of the Trigger object. In my example I am getting next run time.

 

https://github.com/nkeiter/generic-dotCMS-plugin-code-examples/blob/master/dotcms4.1.1/osgi/org.example.nkeiter.quartz.job.killer/src/main/java/org/example/nkeiter/quartz/job/killer/osgi/Activator.java#L55-L84

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/75dea3c2-a4ba-4800-88ec-8913f35b8f3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

hpa...@gmail.com

unread,
Dec 14, 2017, 12:32:54 PM12/14/17
to dotCMS User Group
Thank you Nathan!! It worked for me.

Nathan Keiter

unread,
Dec 14, 2017, 1:18:42 PM12/14/17
to dot...@googlegroups.com

Glad I could help.

Reply all
Reply to author
Forward
0 new messages