Class: ProcessEngine::Parser::SequenceFlow
- Inherits:
-
XmlNode
- Object
- XmlNode
- ProcessEngine::Parser::SequenceFlow
- Defined in:
- app/models/process_engine/parser/sequence_flow.rb
Instance Method Summary collapse
- #condition_expression ⇒ Object
- #extension_elements ⇒ Object
-
#initialize(element) ⇒ SequenceFlow
constructor
A new instance of SequenceFlow.
- #source_ref ⇒ Object
- #target_ref ⇒ Object
- #to_h ⇒ Object
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_expression ⇒ Object
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_elements ⇒ Object
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_ref ⇒ Object
6 7 8 |
# File 'app/models/process_engine/parser/sequence_flow.rb', line 6 def source_ref element["sourceRef"] end |
#target_ref ⇒ Object
10 11 12 |
# File 'app/models/process_engine/parser/sequence_flow.rb', line 10 def target_ref element["targetRef"] end |
#to_h ⇒ Object
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 |