Class: SpotFlow::Bpmn::SubProcess

Inherits:
Process show all
Defined in:
lib/spot_flow/bpmn/process.rb

Direct Known Subclasses

AdHocSubProcess

Instance Attribute Summary collapse

Attributes inherited from Process

#ad_hoc_sub_processes, #associations, #boundary_events, #business_rule_tasks, #call_activities, #complex_gateways, #data_associations, #data_inputs, #data_objects, #data_outputs, #data_stores, #data_stores_references, #end_events, #event_based_gateways, #exclusive_gateways, #gateways, #inclusive_gateways, #intermediate_catch_events, #intermediate_throw_events, #is_executable, #manual_tasks, #message_flows, #parallel_gateways, #parent, #receive_tasks, #script_tasks, #send_tasks, #sequence_flows, #service_tasks, #start_events, #sub_processes, #tasks, #user_tasks

Attributes inherited from Step

#default, #default_ref, #incoming, #outgoing

Attributes inherited from Element

#extension_elements, #id, #name

Instance Method Summary collapse

Methods inherited from Process

#default_start_event, #element_by_id, #elements, #elements_by_type, #execute, #inspect, #wire_references

Methods inherited from Step

#converging?, #diverging?, #input_mappings, #leave, #outgoing_flows, #output_mappings

Methods inherited from Element

#inspect

Constructor Details

#initialize(attributes = {}) ⇒ SubProcess

Returns a new instance of SubProcess.



145
146
147
148
149
150
151
# File 'lib/spot_flow/bpmn/process.rb', line 145

def initialize(attributes = {})
  super(attributes.except(:triggered_by_event))

  @is_executable = false
  @sub_processes = []
  @triggered_by_event = attributes[:triggered_by_event]
end

Instance Attribute Details

#triggered_by_eventObject

Returns the value of attribute triggered_by_event.



143
144
145
# File 'lib/spot_flow/bpmn/process.rb', line 143

def triggered_by_event
  @triggered_by_event
end

Instance Method Details

#execution_ended(execution) ⇒ Object



153
154
155
# File 'lib/spot_flow/bpmn/process.rb', line 153

def execution_ended(execution)
  leave(execution)
end