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.
56 57 58 59 60 |
# File 'lib/bpmn/event_definition.rb', line 56 def initialize(attributes = {}) super(attributes.except(:message_ref)) = attributes[:message_ref] end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
54 55 56 |
# File 'lib/bpmn/event_definition.rb', line 54 def end |
#message_ref ⇒ Object
Returns the value of attribute message_ref.
54 55 56 |
# File 'lib/bpmn/event_definition.rb', line 54 def end |
Instance Method Details
#execute(execution) ⇒ Object
62 63 64 65 66 67 68 |
# File 'lib/bpmn/event_definition.rb', line 62 def execute(execution) if execution.step.is_throwing? execution.() else execution..push end end |
#message_id ⇒ Object
70 71 72 |
# File 'lib/bpmn/event_definition.rb', line 70 def &.id end |
#message_name ⇒ Object
74 75 76 |
# File 'lib/bpmn/event_definition.rb', line 74 def &.name end |