Top Level Namespace

Defined Under Namespace

Modules: EsourceConstants, NdrWorkflow Classes: EAction, EBatch, EWorkflow, ZeActiontype, ZeType, Zlookup, ZlookupCached, Zprovider, Zuser

Constant Summary collapse

PERMITTED_LISTS_FROM_LOOKUPS =

Constants that are used in a number of e-source-related programs. The model classes corresponding to 'e_type' strings in e_batch records

[:laterality]
ERROR_INFO =
{
  :started => ['Action in progress', 'The action has been started by someone else.'],
  :nobatch => ['Invalid batch', 'Unable to find certain batch in database.'],
  :nocommit => ['Invalid access', "You didn't specify an valid operation."],
  :perform => ['Invalid operation', "You didn't specify an valid operation."],
  :yaml => ['Yaml file', 'Failed to load mapping file.'],
  :wrongdate => ['Invalid date', 'Incorrect file received date.'],
  :nofile => ['Invalid file', 'No file selected.'],
  :nolibrary => ['Missing software', 'Cannot understand this file as no software driver was found.'],
  :wrongformat => ['Invalid file format', 'File format is not accepted by this source.'],
  :fileexisted => ['File existed', 'The file is currently being processed.'],
  :digest => ['File existed', 'File with same digest has been found in repository.'],
  :extinrep => ['File existed', 'File with same name has been found in repository.'],
  :batch => ['Create Batch', 'Failed to create a batch record.'],
  :action_create => ['Create Action', 'Failed to create an action record.'],
  :action_update => ['Update Action', 'Failed to update an action record.'],
  :imported => ['Import', 'This table has already been imported.'],
  :pattern => ['Pattern error', "Data doesn't match the pattern specified in yaml file."],
  :nomapping => ['Unrecognised batch', 'No columns mapping provided for this source.'],
  :nodatereference => ['Invalid date', 'Unspecified date reference.'],
  :baddatereference => ['Invalid date', 'Bad date(s) specified in Date Reference field. '],
  :password => ['Invalid password', "Password doesn't match selected xls file."],
  :blankfile => ['Blank file', 'No data found in specified file.'],
  :header => ['Header line error', 'No header line found or header line conflicts with specified source'],
  :difference => ['Uneven records', 'Some records have at least 3 columns less than others in that batch']
}
DATA_MEDIA =
['Email', 'Floppy Disk', 'CD/DVD', 'Others']
MATCH_STATUS =
{
	:perfect => 'Definite Match', 		# AMCH_STATUS
	:possible => 'Possible Matches',  # AMCH_STATUS
  :none => 'No Match',							# AMCH_STATUS
  :alias => 'Alias',								# MMCH_STATUS
  :new => 'New',										# MMCH_STATUS & DEDU_STATUS
  :manual => 'Manual',							# MMCH_STATUS & DEDU_STATUS
  :match => 'Match',								# MMCH_STATUS & DEDU_STATUS
  :reset => nil			  							# MMCH_STATUS & DEDU_STATUS, used for "change this decision"
}