Class: Libis::Workflow::WorkItem
- Inherits:
-
Object
- Object
- Libis::Workflow::WorkItem
- Includes:
- Base::WorkItem
- Defined in:
- lib/libis/workflow/work_item.rb
Overview
In-memory implementation of ::Libis::Workflow::Base::WorkItem
Instance Attribute Summary collapse
-
#items ⇒ Object
Returns the value of attribute items.
-
#options ⇒ Object
Returns the value of attribute options.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#properties ⇒ Object
Returns the value of attribute properties.
-
#status_log ⇒ Object
Returns the value of attribute status_log.
-
#summary ⇒ Object
Returns the value of attribute summary.
Instance Method Summary collapse
-
#initialize ⇒ WorkItem
constructor
A new instance of WorkItem.
- #save ⇒ Object
- #save! ⇒ Object
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
Methods included from Status
#check_status, #compare_status, #set_status, #status, #status_label, #status_progress, #status_text
Constructor Details
#initialize ⇒ WorkItem
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. = {} self.properties = {} self.status_log = [] self.summary = {} end |
Instance Attribute Details
#items ⇒ Object
Returns the value of attribute items.
12 13 14 |
# File 'lib/libis/workflow/work_item.rb', line 12 def items @items end |
#options ⇒ Object
Returns the value of attribute options.
13 14 15 |
# File 'lib/libis/workflow/work_item.rb', line 13 def @options end |
#parent ⇒ Object
Returns the value of attribute parent.
11 12 13 |
# File 'lib/libis/workflow/work_item.rb', line 11 def parent @parent end |
#properties ⇒ Object
Returns the value of attribute properties.
13 14 15 |
# File 'lib/libis/workflow/work_item.rb', line 13 def properties @properties end |
#status_log ⇒ Object
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 |
#summary ⇒ Object
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
#save ⇒ Object
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 |