Class: BPMN::ConditionalEventDefinition

Inherits:
EventDefinition show all
Defined in:
lib/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 = {}) ⇒ 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

#conditionObject

Returns the value of attribute condition.



10
11
12
# File 'lib/bpmn/event_definition.rb', line 10

def condition
  @condition
end

#variable_eventsObject

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_nameObject

Returns the value of attribute variable_name.



10
11
12
# File 'lib/bpmn/event_definition.rb', line 10

def variable_name
  @variable_name
end