Class: SolidFlow::Task::TaskContext
- Inherits:
-
Object
- Object
- SolidFlow::Task::TaskContext
- Defined in:
- lib/solid_flow/task.rb
Instance Attribute Summary collapse
-
#attempt ⇒ Object
readonly
Returns the value of attribute attempt.
-
#execution_id ⇒ Object
readonly
Returns the value of attribute execution_id.
-
#idempotency_key ⇒ Object
readonly
Returns the value of attribute idempotency_key.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#step_name ⇒ Object
readonly
Returns the value of attribute step_name.
-
#workflow_name ⇒ Object
readonly
Returns the value of attribute workflow_name.
Instance Method Summary collapse
-
#initialize(execution_id:, step_name:, attempt:, idempotency_key:, workflow_name:, metadata:) ⇒ TaskContext
constructor
A new instance of TaskContext.
Constructor Details
#initialize(execution_id:, step_name:, attempt:, idempotency_key:, workflow_name:, metadata:) ⇒ TaskContext
Returns a new instance of TaskContext.
118 119 120 121 122 123 124 125 |
# File 'lib/solid_flow/task.rb', line 118 def initialize(execution_id:, step_name:, attempt:, idempotency_key:, workflow_name:, metadata:) @execution_id = execution_id @step_name = step_name @attempt = attempt @idempotency_key = idempotency_key @workflow_name = workflow_name @metadata = end |
Instance Attribute Details
#attempt ⇒ Object (readonly)
Returns the value of attribute attempt.
116 117 118 |
# File 'lib/solid_flow/task.rb', line 116 def attempt @attempt end |
#execution_id ⇒ Object (readonly)
Returns the value of attribute execution_id.
116 117 118 |
# File 'lib/solid_flow/task.rb', line 116 def execution_id @execution_id end |
#idempotency_key ⇒ Object (readonly)
Returns the value of attribute idempotency_key.
116 117 118 |
# File 'lib/solid_flow/task.rb', line 116 def idempotency_key @idempotency_key end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
116 117 118 |
# File 'lib/solid_flow/task.rb', line 116 def @metadata end |
#step_name ⇒ Object (readonly)
Returns the value of attribute step_name.
116 117 118 |
# File 'lib/solid_flow/task.rb', line 116 def step_name @step_name end |
#workflow_name ⇒ Object (readonly)
Returns the value of attribute workflow_name.
116 117 118 |
# File 'lib/solid_flow/task.rb', line 116 def workflow_name @workflow_name end |