Skip to content

Commit

Permalink
Fix up documentation for get_current_actions( [$group] )
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuelsmann committed Oct 15, 2022
1 parent 278c111 commit 51d814e
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 51d814e

Please sign in to comment.