Re: [Perl-workflow-devel] Can't get grouped actions
Brought to you by:
jonasbn
|
From: Andrew O'B. <an...@or...> - 2009-03-02 05:24:07
|
> From: Ivan Paponov [mailto:iva...@gm...]
> Sent: Monday, 2 March 2009 10:37 AM
Hi Ivan,
> Recently, I updated workflow 0.31 to 1.32 and I faced with one problem
> in my system. Links that were connected to actions disappeared. I
> didn't have much time to go deep into debugging, but here is what I
> found for now.
>
> I retrieve actions with get_current_actions($group) function.
> It refers to get_available_action_names($self,$group), which
> is in State.pm
> I analyzed that function, and I found that
> my $action_group = FACTORY->{_action_config}{$action_name}{'group'};
> returns nothing.
> So, I looked at FACTORY->{_action_config} and found out that all
> actions are under 'default' key. I added that key:
> my $action_group =
> FACTORY->{_action_config}{'default'}{$action_name}{'group'};
> And my action links returned on the screen.
Each of your action, condition and top-level workflow files need to
define the <type> parameter - One of the other developers here was
bitten by this a while back :-)
Eg:
my_type_here.xml:
<workflow type="my_type_here">
...
</workflow>
my_type_here_action.xml:
<action>
<type>my_type_here</type>
...
</action>
Etc.
Then things should work as expected. The hash key is the workflow type
from memory which defaults to 'default' if not set.
Cheers,
Andrew
|