Module: Libis::Workflow::Action

Defined in:
lib/libis/workflow/action.rb

Constant Summary collapse

RUN =
0
CONTINUE =
1
RETRY =
2
ALWAYS_RUN =
3
FAILED =
4

Instance Method Summary collapse

Instance Method Details

#next_success_action(action) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/libis/workflow/action.rb', line 11

def next_success_action(action)
  case action
    when :run, :continue, :retry, :always_run
      :always_run
    when :failed
      :failed
    else
      :failed
  end
end