getting a little closer

This commit is contained in:
JT Smith 2006-02-09 23:55:36 +00:00
parent 6bd955fde0
commit 497620e69b
2 changed files with 257 additions and 3 deletions

View file

@ -96,7 +96,7 @@ sub DESTROY {
=head2 get ( name )
Returns the value for a given property.
Returns the value for a given property. See the set() method for details.
=cut
@ -241,9 +241,9 @@ sub set {
$self->{_data}{parameters} = (exists $properties->{parameters}) ? $properties->{parameters} : $self->{_data}{parameters};
$self->{_data}{enabled} = 0 unless ($self->get("workflowId"));
my $spectre = WebGUI::Workflow::Spectre->new($self->session);
$spectre->notify("cron/deleteJob",$self->getId);
$spectre->notify("cron/addJob",$self->session->config->getFilename, $self->getId);
$self->session->db->setRow("WorkflowSchedule","taskId",$self->{_data});
$spectre->notify("cron/deleteJob",$self->getId);
$spectre->notify("cron/addJob",$self->session->config->getFilename, $self->{_data});
}