Class: ProcessEngine::Consumer::ConsumerTask
- Inherits:
-
Object
- Object
- ProcessEngine::Consumer::ConsumerTask
- Defined in:
- app/models/process_engine/consumer/consumer_task.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#node_extension ⇒ Object
readonly
Returns the value of attribute node_extension.
-
#process_task ⇒ Object
readonly
Returns the value of attribute process_task.
Instance Method Summary collapse
- #external_ref ⇒ Object
-
#initialize(process_task) ⇒ ConsumerTask
constructor
A new instance of ConsumerTask.
Constructor Details
#initialize(process_task) ⇒ ConsumerTask
Returns a new instance of ConsumerTask.
5 6 7 8 9 |
# File 'app/models/process_engine/consumer/consumer_task.rb', line 5 def initialize(process_task) @process_task = process_task @node = process_task.process_instance.process_definition.schema.node(process_task.state) @node_extension = @node.node_extension end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
3 4 5 |
# File 'app/models/process_engine/consumer/consumer_task.rb', line 3 def node @node end |
#node_extension ⇒ Object (readonly)
Returns the value of attribute node_extension.
3 4 5 |
# File 'app/models/process_engine/consumer/consumer_task.rb', line 3 def node_extension @node_extension end |
#process_task ⇒ Object (readonly)
Returns the value of attribute process_task.
3 4 5 |
# File 'app/models/process_engine/consumer/consumer_task.rb', line 3 def process_task @process_task end |
Instance Method Details
#external_ref ⇒ Object
11 12 13 |
# File 'app/models/process_engine/consumer/consumer_task.rb', line 11 def external_ref node_extension.common_properties_kv[:external_ref] end |