added status return codes to activities, and fixed a problem with workflow parameters

This commit is contained in:
JT Smith 2006-03-16 22:01:39 +00:00
parent 4dc0fc073d
commit ac1a9c7eae
30 changed files with 135 additions and 59 deletions

View file

@ -16,6 +16,7 @@ package WebGUI::VersionTag;
use strict;
use WebGUI::Asset;
use WebGUI::Workflow::Instance;
=head1 NAME
@ -227,6 +228,26 @@ sub new {
bless {_session=>$session, _id=>$tagId, _data=>$data}, $class;
}
#-------------------------------------------------------------------
=head2 requestCommit ( )
Locks the version tag and then kicks off the approval/commit workflow for it.
=cut
sub requestCommit {
my $self = shift;
$self->lock;
my $instance = WebGUI::Workflow::Instance->new($self->session, {
workflowId=>$self->get("workflowId"),
className=>"WebGUI::VersionTag",
method=>"new",
parameters=>$self->getId
});
}
#-------------------------------------------------------------------
=head2 rollback ( )