in reply to Workflow module problem

splain
Can't locate object method "new" via package "myapp::Upload_file" at /lib/x86_64/pkg/perl-5.8.8/lib/site_perl/5.8.8/Workflow/Factory.pm lin +e 546 (#1) (F) You called a method correctly, and it correctly indicated a packag +e functioning as a class, but that package doesn't define that particula +r method, nor does any of its base classes. See perlobj.
There is no package myapp::Upload_file;, you only have package Upload_file; Module name must agree with filename. See Simple Module Tutorial.

Replies are listed 'Best First'.
Re^2: Workflow module problem
by diomedea (Sexton) on Jun 04, 2009 at 09:48 UTC
    ok thanks, that does help, although if I add package myapp:Upload_file I get a Workflow module error:
    Can't use an undefined value as an ARRAY reference at /ebi/msd/sw/x86_ +64/pkg/perl-5.8.8/lib/site_perl/5.8.8/Workflow/Action.pm line 66.

    which relates to this function in Action.pm of Workflow:
    sub get_validators { my ($self) = @_; return @{ $self->{_validators} }; }


    think this is basically telling me that I have to have validators in the workflow not just a workflow.xml and action.xml - the cpan docs arent too clear on what is optional and this is my first outing into workflows ;+)

    ok nailed it, I had mistakenly put a constructor in the application class, now works