Class: ProcessEngine::Parser::ComplexGateway

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

Instance Method Summary collapse

Constructor Details

#initialize(element) ⇒ ComplexGateway

Returns a new instance of ComplexGateway.



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

def initialize(element)
  super(element)
end

Instance Method Details

#extension_elementsObject



6
7
8
9
# File 'app/models/process_engine/parser/complex_gateway.rb', line 6

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

#to_hObject



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

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

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