Class: BPMN::ConditionalEventDefinition
- Inherits:
-
EventDefinition
- Object
- Element
- EventDefinition
- BPMN::ConditionalEventDefinition
- Defined in:
- lib/bpmn/event_definition.rb
Instance Attribute Summary collapse
-
#condition ⇒ Object
Returns the value of attribute condition.
-
#variable_events ⇒ Object
Returns the value of attribute variable_events.
-
#variable_name ⇒ Object
Returns the value of attribute variable_name.
Attributes inherited from Element
#extension_elements, #id, #name
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ConditionalEventDefinition
constructor
A new instance of ConditionalEventDefinition.
Methods inherited from EventDefinition
Methods inherited from Element
Constructor Details
#initialize(attributes = {}) ⇒ ConditionalEventDefinition
Returns a new instance of ConditionalEventDefinition.
12 13 14 15 16 17 18 |
# File 'lib/bpmn/event_definition.rb', line 12 def initialize(attributes = {}) super(attributes.except(:variable_name, :variable_events, :condition)) @variable_name = moddle[:variable_name] # "var1" @variable_events = moddle[:variable_events] # "create, update" @condition = moddle[:condition] # var1 = 1 end |
Instance Attribute Details
#condition ⇒ Object
Returns the value of attribute condition.
10 11 12 |
# File 'lib/bpmn/event_definition.rb', line 10 def condition @condition end |
#variable_events ⇒ Object
Returns the value of attribute variable_events.
10 11 12 |
# File 'lib/bpmn/event_definition.rb', line 10 def variable_events @variable_events end |
#variable_name ⇒ Object
Returns the value of attribute variable_name.
10 11 12 |
# File 'lib/bpmn/event_definition.rb', line 10 def variable_name @variable_name end |