Skip to content

Commit

Permalink
Merge pull request #209 from ehuelsmann/fix/documentation-get_current…
Browse files Browse the repository at this point in the history
…_actions

Fix up documentation for get_current_actions( [$group] )
  • Loading branch information
ehuelsmann committed Oct 28, 2022
2 parents 0dfc044 + 51d814e commit 4e8da31
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Workflow.pm
Original file line number Diff line number Diff line change
Expand Up @@ -972,14 +972,14 @@ If you want to divide actions in groups (for example state change group,
approval group, which have to be shown at different places on the page) add group property
to your action
<action name="terminate request" group="state change" class="MyApp::Action::Terminate" />
<action name="approve request" group="approval" class="MyApp::Action::Approve" />
<action name="terminate request" group="state change" class="MyApp::Action::Terminate" />
<action name="approve request" group="approval" class="MyApp::Action::Approve" />
my @actions = $wf->get_current_actions("approval");
my @actions = $wf->get_current_actions("approval");
$group should be string that reperesents desired group name. In @actions you will get
C<$group> should be string that reperesents desired group name. In @actions you will get
list of action names available from the current state for the given environment limited by group.
$group is optional parameter.
C<$group> is optional parameter.
Returns: list of strings representing available actions
Expand Down

0 comments on commit 4e8da31

Please sign in to comment.