[Perl-workflow-devel] Updated: Dynamically loaded configs patch (now incl tests)
Brought to you by:
jonasbn
From: Andrew O'B. <an...@or...> - 2009-01-28 23:59:40
|
Hi all, We're just resurrecting some workflow projects here at work and I needed this feature so attached is an patch against 1.32. I've also updated the original ticket below. http://rt.cpan.org/Public/Bug/Display.html?id=18265 This patch includes a new dummy workflow and appropriate tests to exercise the feature. The original motivation for this feature was that for various reasons we weren't able to know all the required workflow config files ahead of time for a particular application. At one point we even had external dynamically generated files I think. I guess that if you have large configs or a large set of configs then this could be considered a performance feature if you're not going to touch much of the config during a given script's execution path. For example, we also use this in regularly scheduled jobs that check workflows related to the various types of support/project/sales/etc jobs in our worklog system. Any given run of that script might touch three or four types of workflow so there's no real point in preloading the 20 or 30 types of workflow every single time it executes. Some runs may touch nothing if there has been no activity in the system. Happy to modify based on your feedback. Cheers, Andrew -- Andrew O'Brien Development Manager e: an...@or... p: +61 2 9461 0114 w: www.oriel.com.au f: +61 2 9431 6700 |