Module: Smith::Workflow::SplitStepPersistence::Execution

Defined in:
lib/smith/workflow/split_step_persistence/execution.rb

Instance Method Summary collapse

Instance Method Details

#execute_prepared_step!Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/smith/workflow/split_step_persistence/execution.rb', line 7

def execute_prepared_step!
  execution_started = false
  step = nil
  claim_split_step_execution_verification!
  begin
    verify_split_step_preparation_available!
    activate_split_step_execution!
    execution_started = true
    step = execute_claimed_split_step_transition!
  ensure
    execution_started ? finish_split_step_execution!(step) : restore_unverified_execution!
  end
  step
end

#prepared_persisted_step?Boolean

Returns:

  • (Boolean)


22
# File 'lib/smith/workflow/split_step_persistence/execution.rb', line 22

def prepared_persisted_step? = @split_step_mutex.synchronize { @split_step_phase == :prepared }