line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
12
|
use 5.008; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
36
|
|
2
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
38
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Data::Conveyor::YAML::Marshall::Payload::Transaction; |
6
|
|
|
|
|
|
|
BEGIN { |
7
|
1
|
|
|
1
|
|
22
|
$Data::Conveyor::YAML::Marshall::Payload::Transaction::VERSION = '1.103130'; |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
# ABSTRACT: Stage-based conveyor-belt-like ticket handling system |
10
|
1
|
|
|
1
|
|
4
|
use YAML::Marshall 'payload/transaction'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
11
|
1
|
|
|
1
|
|
82
|
use parent 'Class::Scaffold::YAML::Marshall'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub yaml_load { |
14
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
15
|
0
|
|
|
|
|
|
my $node = $self->SUPER::yaml_load(@_); |
16
|
0
|
|
|
|
|
|
my $payload_item = $self->delegate->make_obj('payload_transaction'); |
17
|
0
|
|
|
|
|
|
for ($payload_item->transaction) { |
18
|
0
|
|
|
|
|
|
$_->object_type($node->{object_type}); |
19
|
0
|
|
|
|
|
|
$_->command($node->{command}); |
20
|
0
|
|
0
|
|
|
|
$_->type($node->{type} || $self->delegate->TXT_EXPLICIT); |
21
|
0
|
|
0
|
|
|
|
$_->status($node->{status} || $self->delegate->TXS_RUNNING); |
22
|
0
|
|
0
|
|
|
|
$_->necessity($node->{necessity} || $self->delegate->TXN_MANDATORY); |
23
|
0
|
|
|
|
|
|
$_->payload_item($node->{item}); |
24
|
|
|
|
|
|
|
} |
25
|
0
|
|
|
|
|
|
$payload_item; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |