Skip to content

Commit

Permalink
Merge pull request #210 from ehuelsmann/backports
Browse files Browse the repository at this point in the history
Backports
  • Loading branch information
ehuelsmann committed Oct 28, 2022
2 parents b22e4cd + 67eaa62 commit 18bbc9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/Workflow.pm
Original file line number Diff line number Diff line change
Expand Up @@ -940,14 +940,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
3 changes: 2 additions & 1 deletion lib/Workflow/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ may hold a 'condition' key with one or more named conditions
conditions:
type $
condition \@
name $
class $
Expand Down Expand Up @@ -392,11 +393,11 @@ keys
actions:
type $
action \@
name $
class $
description $
type $
field \@
name $
is_required yes|no
Expand Down

0 comments on commit 18bbc9b

Please sign in to comment.