Class: ProcessEngine::Parser::ExclusiveGateway

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

Instance Method Summary collapse

Constructor Details

#initialize(element) ⇒ ExclusiveGateway

Returns a new instance of ExclusiveGateway.



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

def initialize(element)
  super(element)
end

Instance Method Details

#default_flowObject



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

def default_flow
  element["default"]
end

#extension_elementsObject



10
11
12
13
# File 'app/models/process_engine/parser/exclusive_gateway.rb', line 10

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

#to_hObject



15
16
17
18
19
20
21
22
23
24
# File 'app/models/process_engine/parser/exclusive_gateway.rb', line 15

def to_h
  custom_ext = custom_extension_elements_hash(:execution_listeners, :properties)
  
  super.merge({
    extension: {
      common: custom_ext,
      default_flow: default_flow
    }
  })
end