Class: WorkflowRb::ExecutionResult
- Inherits:
-
Object
- Object
- WorkflowRb::ExecutionResult
- Defined in:
- lib/workflow_rb/models/execution_result.rb
Instance Attribute Summary collapse
-
#outcome_value ⇒ Object
Returns the value of attribute outcome_value.
-
#persistence_data ⇒ Object
Returns the value of attribute persistence_data.
-
#proceed ⇒ Object
Returns the value of attribute proceed.
-
#sleep_until ⇒ Object
Returns the value of attribute sleep_until.
Class Method Summary collapse
- .NextStep ⇒ Object
- .Outcome(value) ⇒ Object
- .Persist(data) ⇒ Object
- .Sleep(sleep_until, data) ⇒ Object
Instance Attribute Details
#outcome_value ⇒ Object
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_data ⇒ Object
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 |
#proceed ⇒ Object
Returns the value of attribute proceed.
4 5 6 |
# File 'lib/workflow_rb/models/execution_result.rb', line 4 def proceed @proceed end |
#sleep_until ⇒ Object
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
.NextStep ⇒ Object
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 |