Class: Libis::Workflow::WorkItem

Inherits:
Object
  • Object
show all
Includes:
Base::WorkItem
Defined in:
lib/libis/workflow/work_item.rb

Overview

In-memory implementation of ::Libis::Workflow::Base::WorkItem

Direct Known Subclasses

FileItem, Run

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Base::WorkItem

#add_item, #each, #get_item_list, #get_items, #get_parent, #get_root, #get_run, #label, #label=, #labelpath, #labels, #name, #name=, #namepath, #names, #size, #to_filename, #to_s

Methods included from Base::Logging

#<=, #add_log, #log_message

Methods included from Status

#check_status, #compare_status, #set_status, #status, #status_label, #status_progress, #status_text

Constructor Details

#initializeWorkItem

Returns a new instance of WorkItem.



17
18
19
20
21
22
23
24
# File 'lib/libis/workflow/work_item.rb', line 17

def initialize
  self.parent = nil
  self.items = []
  self.options = {}
  self.properties = {}
  self.status_log = []
  self.summary = {}
end

Instance Attribute Details

#itemsObject

Returns the value of attribute items.



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

def items
  @items
end

#optionsObject

Returns the value of attribute options.



13
14
15
# File 'lib/libis/workflow/work_item.rb', line 13

def options
  @options
end

#parentObject

Returns the value of attribute parent.



11
12
13
# File 'lib/libis/workflow/work_item.rb', line 11

def parent
  @parent
end

#propertiesObject

Returns the value of attribute properties.



13
14
15
# File 'lib/libis/workflow/work_item.rb', line 13

def properties
  @properties
end

#status_logObject

Returns the value of attribute status_log.



14
15
16
# File 'lib/libis/workflow/work_item.rb', line 14

def status_log
  @status_log
end

#summaryObject

Returns the value of attribute summary.



15
16
17
# File 'lib/libis/workflow/work_item.rb', line 15

def summary
  @summary
end

Instance Method Details

#saveObject



26
27
# File 'lib/libis/workflow/work_item.rb', line 26

def save
end

#save!Object



29
30
# File 'lib/libis/workflow/work_item.rb', line 29

def save!
end