From 62101408edb723a073e080b6251ea1e02efa45f7 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Mon, 20 Mar 2006 15:45:51 +0000 Subject: [PATCH] oops, accidentally broke workflow...fixed now --- lib/WebGUI/Workflow/Instance.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Workflow/Instance.pm b/lib/WebGUI/Workflow/Instance.pm index 2b1b6bc4c..1b5d5741e 100644 --- a/lib/WebGUI/Workflow/Instance.pm +++ b/lib/WebGUI/Workflow/Instance.pm @@ -243,7 +243,7 @@ sub run { $status = $activity->execute(undef, $self); } if ($status eq "complete") { - $self->set({"currentActivityId"=>$activity->getId}); + $self->set({"currentActivityId"=>$activity->getId, notifySpectre=>0}); } return $status; } @@ -311,7 +311,7 @@ sub set { $self->{_data}{currentActivityId} = (exists $properties->{currentActivityId}) ? $properties->{currentActivityId} : $self->{_data}{currentActivityId}; $self->{_data}{lastUpdate} = time(); $self->session->db->setRow("WorkflowInstance","instanceId",$self->{_data}); - if ($properties->{priority} && $properties->{notifySpectre}) { + if ($properties->{notifySpectre}) { my $spectre = WebGUI::Workflow::Spectre->new($self->session); $spectre->notify("workflow/deleteInstance",$self->getId); $spectre->notify("workflow/addInstance", {sitename=>$self->session->config->get("sitename")->[0], instanceId=>$self->getId, priority=>$self->{_data}{priority}});