Hi Pat,
Sounds like a great idea.
Out of the box, you can do
$engine.get_scheduler.schedule_at tomorrow_noon do
$engine.launch(myLaunchItem)
end
I also have to reread my doc about processes scheduling other processses.
I understand your idea like :
$engine.launch(whatever, :at => tomorrow_noon)
$engine.launch(whatever, :cron => "5 0 * * *") # every day, five
minutes after midnight
Is that it ?
Would you like the engine to keep track of those schedules (make them
survive an engine restart ?)
Best regards,
--
John Mettraux -///- http://jmettraux.openwfe.org
$engine.launch(whatever, :immediately )
$engine.launch(whatever, :at => DateTime.now + 1d)
$engine.launch(whatever, :in => 30s)
$engine.launch(whatever, :cron => "5 0 * * *") # every day, five
Surviving an engine restart would be going for brownie points.
:)
Pat.
OK,
http://rubyforge.org/tracker/index.php?func=detail&aid=13665&group_id=2609&atid=10026
will do it.
Thanks and best regards,
Thanks,
Pat.
> From: John Mettraux <jmet...@openwfe.org>
> Reply-To: <openwfe...@googlegroups.com>
> Date: Wed, 5 Sep 2007 10:33:30 +0900
> To: <openwfe...@googlegroups.com>
> Subject: [openwferu-users] Re: Scheduling workflows
>
>
Yes, the classical (commercial) ones and the ones at Starbucks.
I'm sure you could send me the "real stuff" :)
Cheers,
Hi Pat,
fei = $engine.launch(a_process, :in => "10m30s")
fei = $engine.launch(a_process, :cron => "5 0 * * *")
fei will not be the identifier for the scheduled process (but rather
the one of the scheduling process).
OK ?
> From: John Mettraux <jmet...@openwfe.org>
> Reply-To: <openwfe...@googlegroups.com>
> Date: Thu, 6 Sep 2007 10:21:58 +0900
> To: <openwfe...@googlegroups.com>
> Subject: [openwferu-users] Re: Scheduling workflows
>
>
Yes, via the LaunchItem if one is used.
engine.launch(launch_item, :at => whenever)
engine.launch(process_definition, :at => whenever)
No changes for the 1st parameter of the launch method.
Best regards,
Hi,
it's been implemented (revision 1022).
It understands :in, :at and :cron, and it survives engine restarts.
The implementation is not that elegant, still scratching my head.