Class: WorkflowRb::ExecutionResult

Inherits:
Object
  • Object
show all
Defined in:
lib/workflow_rb/models/execution_result.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#outcome_valueObject

Returns the value of attribute outcome_value.



5
6
7
# File 'lib/workflow_rb/models/execution_result.rb', line 5

def outcome_value
  @outcome_value
end

#persistence_dataObject

Returns the value of attribute persistence_data.



6
7
8
# File 'lib/workflow_rb/models/execution_result.rb', line 6

def persistence_data
  @persistence_data
end

#proceedObject

Returns the value of attribute proceed.



4
5
6
# File 'lib/workflow_rb/models/execution_result.rb', line 4

def proceed
  @proceed
end

#sleep_untilObject

Returns the value of attribute sleep_until.



7
8
9
# File 'lib/workflow_rb/models/execution_result.rb', line 7

def sleep_until
  @sleep_until
end

Class Method Details

.NextStepObject



9
10
11
12
13
14
# File 'lib/workflow_rb/models/execution_result.rb', line 9

def self.NextStep
  result = ExecutionResult.new
  result.proceed = true
  result.outcome_value = nil
  result
end

.Outcome(value) ⇒ Object



16
17
18
19
20
21
# File 'lib/workflow_rb/models/execution_result.rb', line 16

def self.Outcome(value)
  result = ExecutionResult.new
  result.proceed = true
  result.outcome_value = value
  result
end

.Persist(data) ⇒ Object



23
24
25
26
27
28
# File 'lib/workflow_rb/models/execution_result.rb', line 23

def self.Persist(data)
  result = ExecutionResult.new
  result.proceed = false
  result.persistence_data = data
  result
end

.Sleep(sleep_until, data) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/workflow_rb/models/execution_result.rb', line 30

def self.Sleep(sleep_until, data)
  result = ExecutionResult.new
  result.proceed = false
  result.persistence_data = data
  result.sleep_until = sleep_until
  result
end