Class: SpotFlow::Bpmn::SignalEventDefinition

Inherits:
EventDefinition show all
Defined in:
lib/spot_flow/bpmn/event_definition.rb

Instance Attribute Summary collapse

Attributes inherited from Element

#extension_elements, #id, #name

Instance Method Summary collapse

Methods inherited from EventDefinition

#execute

Methods inherited from Element

#inspect

Constructor Details

#initialize(attributes = {}) ⇒ SignalEventDefinition

Returns a new instance of SignalEventDefinition.



83
84
85
86
87
# File 'lib/spot_flow/bpmn/event_definition.rb', line 83

def initialize(attributes = {})
  super(attributes.except(:signal_ref))

  @signal_ref = moddle[:signal_ref]
end

Instance Attribute Details

#signalObject

Returns the value of attribute signal.



81
82
83
# File 'lib/spot_flow/bpmn/event_definition.rb', line 81

def signal
  @signal
end

#signal_refObject

Returns the value of attribute signal_ref.



81
82
83
# File 'lib/spot_flow/bpmn/event_definition.rb', line 81

def signal_ref
  @signal_ref
end

Instance Method Details

#signal_idObject



89
90
91
# File 'lib/spot_flow/bpmn/event_definition.rb', line 89

def signal_id
  signal&.id
end

#signal_nameObject



93
94
95
# File 'lib/spot_flow/bpmn/event_definition.rb', line 93

def signal_name
  signal&.name
end