Class: Camunda::BpmnXML::Task
- Inherits:
-
Object
- Object
- Camunda::BpmnXML::Task
- Defined in:
- lib/camunda/bpmn_xml.rb
Overview
Wrapper for BPMN task XML node
Instance Method Summary collapse
-
#class_name ⇒ Object
Extracts class name from Task XML node.
-
#initialize(task) ⇒ Task
constructor
Stores XML node about a task.
-
#topic ⇒ Object
Extracts topic name from Task XML node.
Constructor Details
#initialize(task) ⇒ Task
Stores XML node about a task
64 65 66 |
# File 'lib/camunda/bpmn_xml.rb', line 64 def initialize(task) @task = task end |
Instance Method Details
#class_name ⇒ Object
Extracts class name from Task XML node
69 70 71 |
# File 'lib/camunda/bpmn_xml.rb', line 69 def class_name @task.attribute('id').value end |
#topic ⇒ Object
Extracts topic name from Task XML node
74 75 76 |
# File 'lib/camunda/bpmn_xml.rb', line 74 def topic @task.attribute('topic').value end |