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