File Coverage

lib/Workflow/Action/Null.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             use warnings;
3 15     15   561 use strict;
  15         30  
  15         658  
4 15     15   87 use base qw( Workflow::Action );
  15         50  
  15         445  
5 15     15   75  
  15         101  
  15         2945  
6             $Workflow::Action::Null::VERSION = '1.60';
7              
8             my ($self) = @_;
9             return;
10 44     44 1 674 }
11 44         68  
12             1;
13              
14              
15             =pod
16              
17             =head1 NAME
18              
19             Workflow::Action::Null - Workflow action for the terminally lazy
20              
21             =head1 VERSION
22              
23             This documentation describes version 1.60 of this package
24              
25             =head1 SYNOPSIS
26              
27             # in workflow.xml...
28             <state name="some state">
29             <action name="null" />
30             ...
31              
32             # in workflow_action.xml...
33             <action name="null" class="Workflow::Action::Null" />
34              
35             =head1 DESCRIPTION
36              
37             Workflow action that does nothing. But unlike all those other lazy
38             modules out there, it does nothing with a purpose! For instance, you
39             might want some poor slobs to have some action verified but the elite
40             masters can skip the work entirely. So you can do:
41              
42             <state name="checking" autorun="yes">
43             <action name="verify" resulting_state="verified">
44             <condition name="isPoorSlob" />
45             </action>
46             <action name="null" resulting_state="verified">
47             <condition name="isEliteMaster" />
48             </action>
49             </state>
50              
51             =head1 OBJECT METHODS
52              
53             =head3 execute()
54              
55             Implemented from L<Workflow::Action>. Proudly does nothing and proves
56             it by returning C<undef>.
57              
58             =head1 COPYRIGHT
59              
60             Copyright (c) 2003-2022 Chris Winters. All rights reserved.
61              
62             This library is free software; you can redistribute it and/or modify
63             it under the same terms as Perl itself.
64              
65             Please see the F<LICENSE>
66              
67             =head1 AUTHORS
68              
69             Please see L<Workflow>
70              
71             =cut