Class: ProcessEngine::Parser::SequenceFlow

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

Instance Method Summary collapse

Constructor Details

#initialize(element) ⇒ SequenceFlow

Returns a new instance of SequenceFlow.



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

def initialize(element)
  super(element)
end

Instance Method Details

#condition_expressionObject



14
15
16
# File 'app/models/process_engine/parser/sequence_flow.rb', line 14

def condition_expression
  ProcessEngine::Parser::Extension::ConditionExpression.factory(element)
end

#extension_elementsObject



18
19
20
21
# File 'app/models/process_engine/parser/sequence_flow.rb', line 18

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

#source_refObject



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

def source_ref
  element["sourceRef"]
end

#target_refObject



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

def target_ref
  element["targetRef"]
end

#to_hObject



23
24
25
26
27
28
29
30
31
32
33
34
# File 'app/models/process_engine/parser/sequence_flow.rb', line 23

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

  super.merge({
    extension: {
      common: custom_ext,
      condition_expression: condition_expression.to_h
    },
    source_ref: source_ref,
    target_ref: target_ref,
  })
end