Class: ProcessEngine::Parser::EndEvent

Inherits:
XmlNode
  • Object
show all
Defined in:
app/models/process_engine/parser/end_event.rb

Instance Method Summary collapse

Constructor Details

#initialize(element) ⇒ EndEvent

Returns a new instance of EndEvent.



2
3
4
# File 'app/models/process_engine/parser/end_event.rb', line 2

def initialize(element)
  super(element)
end

Instance Method Details

#extension_elementsObject



7
8
9
10
# File 'app/models/process_engine/parser/end_event.rb', line 7

def extension_elements
  # support [executionListener], [property], :inputs_outputs
  custom_extension_elements(:execution_listeners, :properties, :inputs_outputs)
end

#to_hObject



12
13
14
15
16
17
18
19
20
# File 'app/models/process_engine/parser/end_event.rb', line 12

def to_h
  custom_ext = custom_extension_elements_hash(:execution_listeners, :properties, :inputs_outputs)

  super.merge({
    extension: {
      common: custom_ext
    }
  })
end