Class: BPMN::MessageEventDefinition
- Inherits:
-
EventDefinition
- Object
- Element
- EventDefinition
- BPMN::MessageEventDefinition
- Defined in:
- lib/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.
79 80 81 82 83 |
# File 'lib/bpmn/event_definition.rb', line 79 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.
77 78 79 |
# File 'lib/bpmn/event_definition.rb', line 77 def @message end |
#message_ref ⇒ Object
Returns the value of attribute message_ref.
77 78 79 |
# File 'lib/bpmn/event_definition.rb', line 77 def @message_ref end |
Instance Method Details
#execute(execution) ⇒ Object
85 86 87 88 89 90 91 |
# File 'lib/bpmn/event_definition.rb', line 85 def execute(execution) if execution.step.is_throwing? execution.() else execution..push end end |
#message_id ⇒ Object
93 94 95 |
# File 'lib/bpmn/event_definition.rb', line 93 def &.id end |
#message_name ⇒ Object
97 98 99 |
# File 'lib/bpmn/event_definition.rb', line 97 def &.name end |