[Perl-workflow-devel] in 1.32 add_config does not work for condition
Brought to you by:
jonasbn
From: Sergei V. <sv...@pn...> - 2009-04-16 22:03:01
|
Hi, A tiresome problem has knocked me after a move to ver. 1.32. Let @entry be something like my @entry = ({ name => 'some name', class => 'some class', ... }); Then a call $factory->add_config( persister => \@entry ); is similar to those used in some of the tests supplied with ver 1.32 and works fine. But a call $factory->add_config( condition => \@entry ); has no analog in the supplied tests and seems not working. That is no data structures associated with condition are created. This could be explicitly verified with use of print STDERR Dumper($factory)."\n"; after calling add_config. This problem was absent in ver 0.31. This problem prevents correct start of the OpenXPKI server (which is a PKI related project) with default configuration files related to its workflows. Do you think this could be a bug, or just a new feature? If the latter, could you please recommend a correct way to add configuration for a condition. Note that OpenXPKI uses both add_config and also add_config_from_file (which works fine) because of historical reasons. If add_config is out of fashion today, do you think that OpenXPKI should completely migrate to add_config_from_file? This would be quite a job to do though. All the best, Sergei P.S. Adding config for action seems to have similar problems. And for validator too... |