You don't need to go beyond Scheduler API.
To get job run on Jan 17th 2014 at 15:45:00 just execute:
JobDefinition jobDefinition = new JobDefinition("some name",
"your-command-catalogue", "your-command-name", "0 45 15 17 1 ? 2014", null);
SchedulerModule schedulerModule =
Components.getComponent(ModuleRegistry.class).getModuleInstance("scheduler");
schedulerModule.addJob(jobDefinition);
It will be executed only once on given data and time. Simple as that. As Tom W.
suggested above you can use cronmaker to build the pattern you need works both
both repeated execs and single execution too.
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=58f9d5a8-9b29-431e-9f40-a784419cbe67
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------