diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-05-19 14:28:05 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-05-19 14:28:05 +0200 |
commit | 01d09b5e812dca0578e9ae8523c7edc952a53316 (patch) | |
tree | 3197e798fc3911585f79c609f51d4ef7e1c5f68f /lib/Kratos/DFADriver | |
parent | 4f11a6625e5efe8e4289de3454e2c4acc9c91438 (diff) |
Model: Support custom extra transitions by state (e.g. VCOM toggle in ENABLED)
Diffstat (limited to 'lib/Kratos/DFADriver')
-rw-r--r-- | lib/Kratos/DFADriver/Model.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Kratos/DFADriver/Model.pm b/lib/Kratos/DFADriver/Model.pm index db428e0..ba3855f 100644 --- a/lib/Kratos/DFADriver/Model.pm +++ b/lib/Kratos/DFADriver/Model.pm @@ -81,6 +81,14 @@ sub new_from_repo { push( @states, $attrib ); push( @{ $transition{ $function->{name} }{dst} }, $attrib ); } + elsif ( $attrib =~ s{ ^ required_in_ }{}x ) { + push( + @{ + $self->{custom_code}{after_transition_by_state}{$attrib} + }, + $function->{name} + ); + } elsif ( $attrib =~ m{ ^ epilogue $ }x ) { $transition{ $function->{name} }{level} = 'epilogue'; } |