Re: [Perl-workflow-devel] Setting values in context from config file.
Brought to you by:
jonasbn
|
From: Alexander K. <a....@cy...> - 2008-10-16 15:13:18
|
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
--
Dipl.-Math. Alexander Klink | IT-Security Engineer | a....@cy...
mobile: +49 (0)178 2121703 | Cynops GmbH | http://www.cynops.de
----------------------------+----------------------+---------------------
HRB 7833, Amtsgericht | USt-Id: DE 213094986 | Geschäftsführer:
Bad Homburg v. d. Höhe | | Martin Bartosch
|