cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering an event a short time(10 minutes) after firing

tduong_
Champ in-the-making
Champ in-the-making

I need to run a cleanup/recovery process and need to fire the event and have it triggered 10 minutes latter.

1 ACCEPTED ANSWER

bruce_Grant
Elite Collaborator
Elite Collaborator

Similar to what Nuxeo does with the SchedulerRegistryService.java you could invoke a Quartz job (from your code) that would fire an event that your "clean-up" listener would act on. If you use the Nuxeo service you'll have to use CRON expressions, and you'll have to unregister to stop firing and registered jobs from growing endlessly.

See my recent blog entry for a complete example.

View answer in original post

1 REPLY 1

bruce_Grant
Elite Collaborator
Elite Collaborator

Similar to what Nuxeo does with the SchedulerRegistryService.java you could invoke a Quartz job (from your code) that would fire an event that your "clean-up" listener would act on. If you use the Nuxeo service you'll have to use CRON expressions, and you'll have to unregister to stop firing and registered jobs from growing endlessly.

See my recent blog entry for a complete example.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.