Class: BPMN::TimerEventDefinition
- Inherits:
-
EventDefinition
- Object
- Element
- EventDefinition
- BPMN::TimerEventDefinition
- Defined in:
- lib/bpmn/event_definition.rb
Instance Attribute Summary collapse
-
#time_cycle ⇒ Object
Returns the value of attribute time_cycle.
-
#time_date ⇒ Object
Returns the value of attribute time_date.
-
#time_duration ⇒ Object
Returns the value of attribute time_duration.
-
#time_duration_type ⇒ Object
Returns the value of attribute time_duration_type.
Attributes inherited from Element
#extension_elements, #id, #name
Instance Method Summary collapse
- #execute(execution) ⇒ Object
-
#initialize(attributes = {}) ⇒ TimerEventDefinition
constructor
A new instance of TimerEventDefinition.
Methods inherited from Element
Constructor Details
#initialize(attributes = {}) ⇒ TimerEventDefinition
Returns a new instance of TimerEventDefinition.
130 131 132 133 134 135 |
# File 'lib/bpmn/event_definition.rb', line 130 def initialize(attributes = {}) super(attributes.except(:time_date, :time_duration, :time_cycle)) @time_duration_type = attributes[:time_duration_type] @time_duration = attributes[:time_duration] end |
Instance Attribute Details
#time_cycle ⇒ Object
Returns the value of attribute time_cycle.
128 129 130 |
# File 'lib/bpmn/event_definition.rb', line 128 def time_cycle @time_cycle end |
#time_date ⇒ Object
Returns the value of attribute time_date.
128 129 130 |
# File 'lib/bpmn/event_definition.rb', line 128 def time_date @time_date end |
#time_duration ⇒ Object
Returns the value of attribute time_duration.
128 129 130 |
# File 'lib/bpmn/event_definition.rb', line 128 def time_duration @time_duration end |
#time_duration_type ⇒ Object
Returns the value of attribute time_duration_type.
128 129 130 |
# File 'lib/bpmn/event_definition.rb', line 128 def time_duration_type @time_duration_type end |
Instance Method Details
#execute(execution) ⇒ Object
137 138 139 140 141 |
# File 'lib/bpmn/event_definition.rb', line 137 def execute(execution) if execution.step.is_catching? execution.timer_expires_at = time_due end end |