prevent Workflow from trying to run an activity if it didn't get an object

This commit is contained in:
Graham Knop 2009-09-09 01:15:59 -05:00
parent f6be0746f3
commit 9f2db435ba
2 changed files with 45 additions and 3 deletions

View file

@ -395,8 +395,8 @@ sub getObject {
push @params, $self->session;
}
push @params, $self->get("parameters");
WebGUI::Pluggable::load($class);
return $self->{_object} = $class->$method(@params);
my $object = WebGUI::Pluggable::instanciate( $class, $method, \@params );
return $self->{_object} = $object;
}
#-------------------------------------------------------------------