Remove a duplicate subroutine and some syntax problems.
This commit is contained in:
parent
946cf6e026
commit
c6a0abe8c1
1 changed files with 1 additions and 16 deletions
|
|
@ -357,7 +357,7 @@ sub run {
|
||||||
return "error";
|
return "error";
|
||||||
}
|
}
|
||||||
|
|
||||||
$status = eval { $activity->execute($object, $self) };
|
my $status = eval { $activity->execute($object, $self) };
|
||||||
if ($@) {
|
if ($@) {
|
||||||
$self->session->errorHandler->error("Caught exception executing workflow activity ".$activity->getId." for instance ".$self->getId." which reported ".$@);
|
$self->session->errorHandler->error("Caught exception executing workflow activity ".$activity->getId." for instance ".$self->getId." which reported ".$@);
|
||||||
$self->set({lastStatus=>"error"}, 1);
|
$self->set({lastStatus=>"error"}, 1);
|
||||||
|
|
@ -374,21 +374,6 @@ sub run {
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
=head2 getNextActivity
|
|
||||||
|
|
||||||
Returns the next activity object for this instance.
|
|
||||||
|
|
||||||
=cut
|
|
||||||
|
|
||||||
sub getNextActivity {
|
|
||||||
my $self = shift;
|
|
||||||
my $workflow = $self->getWorkflow;
|
|
||||||
my $activity = $workflow->getNextActivity($self->get("currentActivityId"));
|
|
||||||
return $activity;
|
|
||||||
}
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
|
||||||
|
|
||||||
=head2 getObject
|
=head2 getObject
|
||||||
|
|
||||||
Returns the object this workflow is being used on, or undef if it does not have a related object.
|
Returns the object this workflow is being used on, or undef if it does not have a related object.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue