Allow Workflow activities to do cleanup when they're deleted. Fixes bug #11924.

This commit is contained in:
Colin Kuskie 2010-10-26 11:43:22 -07:00
parent 0d46331745
commit 8b25005515
4 changed files with 49 additions and 4 deletions

View file

@ -44,6 +44,23 @@ These methods are available from this class:
#-------------------------------------------------------------------
=head2 cleanup ( )
Override this activity to add a cleanup routine to be run if an instance
is deleted with this activity currently in a waiting state. This is a stub
and will do nothing unless overridden.
=cut
sub cleanup {
my $self = shift;
my $instance = shift;
$self->setMessageCompleted($instance);
return 1;
}
#-------------------------------------------------------------------
=head2 definition ( session, definition )
See WebGUI::Workflow::Activity::definition() for details.