Re: [Perl-workflow-devel] Setting values in context from config file.
Brought to you by:
jonasbn
From: phil r. <phi...@un...> - 2008-10-16 14:31:42
|
Hi Jim. Thanks for your fast response. I wasn't aware of ExtraData.pm so thanks for that. 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. Thanks again, Cheers, Phil Jim Brandt wrote: > Phil, > > One way to do that is in code as you mentioned, probably near the code > where you create/load your workflow instance. > > You could also use the ExtraData feature, or some variation of it: > > http://search.cpan.org/~jonasbn/Workflow-0.31/lib/Workflow/Persister/DBI/ExtraData.pm > > > This module will pull in the data from your supporting table and load > it into the context automatically. > > The down side is it will be set in a record for each workflow > instance, but this could also be an advantage if you every wanted to > have different 'to' addresses for different instances. And you would > still need code somewhere to initially set this value when you create > the workflow. > > Jim <snip> +++++++++++++++++++++++++++++++++++++ phi...@un... +++++++++++++++++++++++++++++++++++++ |