Class: SpotFlow::Bpmn::MessageEventDefinition
- Inherits:
-
EventDefinition
- Object
- Element
- EventDefinition
- SpotFlow::Bpmn::MessageEventDefinition
- Defined in:
- lib/spot_flow/bpmn/event_definition.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#message_ref ⇒ Object
Returns the value of attribute message_ref.
Attributes inherited from Element
#extension_elements, #id, #name
Instance Method Summary collapse
- #execute(execution) ⇒ Object
-
#initialize(attributes = {}) ⇒ MessageEventDefinition
constructor
A new instance of MessageEventDefinition.
- #message_id ⇒ Object
- #message_name ⇒ Object
Methods inherited from Element
Constructor Details
#initialize(attributes = {}) ⇒ MessageEventDefinition
Returns a new instance of MessageEventDefinition.
57 58 59 60 61 |
# File 'lib/spot_flow/bpmn/event_definition.rb', line 57 def initialize(attributes = {}) super(attributes.except(:message_ref)) @message_ref = attributes[:message_ref] end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
55 56 57 |
# File 'lib/spot_flow/bpmn/event_definition.rb', line 55 def @message end |
#message_ref ⇒ Object
Returns the value of attribute message_ref.
55 56 57 |
# File 'lib/spot_flow/bpmn/event_definition.rb', line 55 def @message_ref end |
Instance Method Details
#execute(execution) ⇒ Object
63 64 65 66 67 68 69 |
# File 'lib/spot_flow/bpmn/event_definition.rb', line 63 def execute(execution) if execution.step.is_throwing? execution.() else execution..push end end |
#message_id ⇒ Object
71 72 73 |
# File 'lib/spot_flow/bpmn/event_definition.rb', line 71 def &.id end |
#message_name ⇒ Object
75 76 77 |
# File 'lib/spot_flow/bpmn/event_definition.rb', line 75 def &.name end |