# Copyright (c) 2005 bivio Software, Inc. All Rights Reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: WorkflowCallerForm.pm,v 1.2 2005/08/10 23:45:15 nagler Exp $ package Bivio::PetShop::Model::WorkflowCallerForm; use strict; $Bivio::PetShop::Model::WorkflowCallerForm::VERSION = sprintf('%d.%02d', q$Revision: 1.2 $ =~ /\d+/g); $_ = $Bivio::PetShop::Model::WorkflowCallerForm::VERSION; =head1 NAME Bivio::PetShop::Model::WorkflowCallerForm - calls a workflow before beginning =head1 RELEASE SCOPE bOP =head1 SYNOPSIS use Bivio::PetShop::Model::WorkflowCallerForm; =cut =head1 EXTENDS L =cut use Bivio::Biz::FormModel; @Bivio::PetShop::Model::WorkflowCallerForm::ISA = ('Bivio::Biz::FormModel'); =head1 DESCRIPTION C =cut #=IMPORTS #=VARIABLES =head1 METHODS =cut =for html =head2 execute_empty() : Bivio::Agent::TaskId Calls WORKFLOW_STEP_1 =cut sub execute_empty { shift->get_request->server_redirect({ task_id => Bivio::Agent::TaskId->WORKFLOW_STEP_1, require_context => 1, }); return; } =for html =head2 internal_initialize() : hash_ref =cut sub internal_initialize { my($self) = @_; return $self->merge_initialize_info($self->SUPER::internal_initialize, { version => 1, visible => [ { name => 'prev_task', type => 'Line', constraint => 'NOT_NULL', }, ], }); } #=PRIVATE SUBROUTINES =head1 COPYRIGHT Copyright (c) 2005 bivio Software, Inc. All Rights Reserved. Visit http://www.bivio.biz for more info. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; If not, you may get a copy from: http://www.opensource.org/licenses/lgpl-license.html =head1 VERSION $Id: WorkflowCallerForm.pm,v 1.2 2005/08/10 23:45:15 nagler Exp $ =cut 1;