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



23
24
25
# File 'lib/dynflow/action/cancellable.rb', line 23

def abort!
  cancel!
end

#cancel!Object

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/dynflow/action/cancellable.rb', line 19

def cancel!
  raise NotImplementedError
end

#run(event = nil) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/dynflow/action/cancellable.rb', line 8

def run(event = nil)
  case event
  when Cancel
    cancel!
  when Abort
    abort!
  else
    super event
  end
end