Class: Camunda::BpmnXML::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/camunda/bpmn_xml.rb

Overview

Wrapper for BPMN task XML node

Instance Method Summary collapse

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_nameObject

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

#topicObject

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