Re: [Perl-workflow-devel] Setting values in context from config file.
Brought to you by:
jonasbn
From: phil r. <phi...@un...> - 2008-10-16 16:25:17
|
Wahey! Didn't realise I could do that - thanks. In case anyone's interested, that means I can have one SendEmail action and set up lots of different actions to send different sorts of emails without adding to my app's already burgeoning config system. Cheers, Phil Alexander Klink wrote: > Hi Phil, > > On Thu, Oct 16, 2008 at 03:32:05PM +0100, phil robinson wrote: > >> Both the methods you mention require keeping the >> actual 'to' address in the app's config though, when >> the only thing that's actually interested is the workflow; >> annoying. >> > > What about putting it into the action config file then? i.e. > <action name="send_mail" > class="Your::Mail::Sender::Actiion" > to="fo...@ex..."/> > > You can then use it from within your activity as $self->param('to') > (and put it in the workflow context, if you need it later on in the > workflow) ... > > HTH, > Cheers, > Alex > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Perl-workflow-devel mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-workflow-devel > +++++++++++++++++++++++++++++++++++++ phi...@un... +++++++++++++++++++++++++++++++++++++ |