Class: Libis::Workflow::TaskRunner

Inherits:
TaskGroup show all
Defined in:
lib/libis/workflow/task_runner.rb

Overview

noinspection RubyTooManyMethodsInspection

Instance Attribute Summary

Attributes inherited from TaskGroup

#tasks

Attributes inherited from Task

#name, #parent, #processing_item, #workitem

Instance Method Summary collapse

Methods inherited from TaskGroup

#<<, #apply_options, #initialize

Methods inherited from Task

#<<, #apply_options, #initialize, #logger, #message, task_classes

Constructor Details

This class inherits a constructor from Libis::Workflow::TaskGroup

Instance Method Details

#namepathObject



16
17
18
# File 'lib/libis/workflow/task_runner.rb', line 16

def namepath
  'Run'
end

#namesObject



12
13
14
# File 'lib/libis/workflow/task_runner.rb', line 12

def names
  Array.new
end

#run(item) ⇒ Object



20
21
22
23
24
25
26
27
28
29
# File 'lib/libis/workflow/task_runner.rb', line 20

def run(item)

  check_item_type ::Libis::Workflow::Base::WorkItem, item
  self.workitem = item

  info 'Ingest run started.', item

  super

end