Skip to content

Commit

Permalink
Added some basic documentation and a missing statements accidently de…
Browse files Browse the repository at this point in the history
…leted with previous commit
  • Loading branch information
jonasbn committed Feb 17, 2021
1 parent b9fb404 commit b6f1e76
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/Workflow/Factory.pm
Expand Up @@ -259,9 +259,13 @@ sub _add_workflow_config {
push @{ $self->{_workflow_state}{$wf_type} }, $wf_state;
}

$self->_load_observers($workflow_config);

$log->is_info
&& $log->info("Added all workflow states...");
}

return;
}

# Load all the observers so they're available when we instantiate the
Expand Down Expand Up @@ -1050,6 +1054,12 @@ L<fetch_workflow()|/fetch_workflow>.
Returns: nothing
=head3 _load_observers( $workflow_config_hashref )
Loads and adds observers based on workflow type
Returns number indicating amount of observers added, meaning zero can indicate success based on expected outcome.
=head3 _add_action_config( @config_hashrefs )
Adds all configurations in C<@config_hashrefs> to the factory, doing a
Expand Down

0 comments on commit b6f1e76

Please sign in to comment.