Class: PlateTransferTask

Inherits:
Task show all
Defined in:
app/models/plate_transfer_task.rb

Instance Method Summary collapse

Methods inherited from Task

#create_render_element, #find_batch, #find_batch_requests, #get_descriptor_value, #get_subclass_attribute_options, get_subclass_attribute_options, #get_subclass_attribute_value, get_subclass_attributes, #get_subclass_attributes, #included_for_do_task, init_class, #set_descriptor_value, set_subclass_attribute, #set_subclass_attribute_value, #sub_events_for

Methods inherited from ApplicationRecord

convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Warren::BroadcastMessages

#broadcast, included, #queue_associated_for_broadcast, #queue_for_broadcast, #warren

Instance Method Details

#do_task(workflow, params) ⇒ Object


10
11
12
# File 'app/models/plate_transfer_task.rb', line 10

def do_task(workflow, params)
  workflow.do_plate_transfer_task(self, params)
end

#included_for_render_taskObject


18
19
20
# File 'app/models/plate_transfer_task.rb', line 18

def included_for_render_task
  [:pipeline]
end

#partialObject


14
15
16
# File 'app/models/plate_transfer_task.rb', line 14

def partial
  self.class.to_s.underscore.chomp('_task')
end

#render_task(workflow, params) ⇒ Object


4
5
6
7
8
# File 'app/models/plate_transfer_task.rb', line 4

def render_task(workflow, params)
  ActiveRecord::Base.transaction do
    workflow.render_plate_transfer_task(self, params)
  end
end