Class: TagGroupsTask

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

Defined Under Namespace

Classes: TagGroupsData

Instance Method Summary collapse

Methods inherited from Task

#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, #included_for_render_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

#create_render_element(request) ⇒ Object


9
10
11
# File 'app/models/tag_groups_task.rb', line 9

def create_render_element(request)
  request.asset && TagGroupsData.new(request)
end

#do_task(_workflow, _params) ⇒ Object


22
23
24
# File 'app/models/tag_groups_task.rb', line 22

def do_task(_workflow, _params)
  true
end

#partialObject


13
14
15
# File 'app/models/tag_groups_task.rb', line 13

def partial
  'tag_groups_batches'
end

#render_task(workflow, params) ⇒ Object


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

def render_task(workflow, params)
  super
  workflow.render_tag_groups_task(self, params)
end