- Added a wait timeout parameter to the WAITING method, so that Spectre

doesn't have to check something that the workflow activity knows it will 
   have to wait on for a while.
 - Added --stop and --start aliases to spectre.pl.
This commit is contained in:
JT Smith 2008-11-19 01:15:31 +00:00
parent 7349633d63
commit bc5fd3c727
21 changed files with 89 additions and 44 deletions

View file

@ -51,15 +51,22 @@ A constant to be sent to Spectre informing it that this activity did not execute
sub ERROR { return "error" };
=head2 WAITING
=head2 WAITING ( [ waitTime ] )
A constant to be sent to Spectre informing it that this actiivty is
waiting for some other event to be triggered. This is also used for
long running activities to be released by Spectre and to be requeued.
=head3 waitTime
Instead of sending the constant it will set a time to wait before running the workflow again. Can be any number of seconds 1 or higher.
=cut
sub WAITING { return "waiting" };
sub WAITING {
my ($class, $waitTime) = @_;
return "waiting $waitTime";
}
=head1 METHODS