Module: Dynflow::Action::Cancellable
- Included in:
- V2::WithSubPlans, WithBulkSubPlans, WithSubPlans
- Defined in:
- lib/dynflow/action/cancellable.rb
Constant Summary collapse
- Cancel =
Algebrick.atom
- Abort =
Algebrick.atom
Instance Method Summary collapse
Instance Method Details
#abort! ⇒ Object
22 23 24 |
# File 'lib/dynflow/action/cancellable.rb', line 22 def abort! cancel! end |
#cancel! ⇒ Object
18 19 20 |
# File 'lib/dynflow/action/cancellable.rb', line 18 def cancel! raise NotImplementedError end |
#run(event = nil) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/dynflow/action/cancellable.rb', line 7 def run(event = nil) case event when Cancel cancel! when Abort abort! else super event end end |