Class: Workflow

Inherits:
ApplicationRecord show all
Defined in:
app/models/workflow.rb

Overview

A workflow describes a series of Tasks which are processed as part of taking a Batch through a Pipeline

Instance Method Summary collapse

Methods inherited from ApplicationRecord

alias_association, convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Squishify

extended

Instance Method Details

#assetsObject



25
26
27
# File 'app/models/workflow.rb', line 25

def assets
  []
end

#batch_limit?Boolean

Returns:

  • (Boolean)


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

def batch_limit?
  item_limit.present?
end

#source_is_internal?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'app/models/workflow.rb', line 21

def source_is_internal?
  locale == 'Internal'
end