!-------------------------------------------------------------------------------
!
!      DP_WF2 RESOURCE FILE
!
!
!      This file is used to construct the trigger, error, and success status
!      fields in the observation status file.
!
!
!-------------------------------------------------------------------------------
!                          REVISION HISTORY
!-------------------------------------------------------------------------------
!   DATE     PR  Developer  Description
! -------- ----- ---------- ----------------------------------------------------
! 07/30/99 39511  Heller    Created for TRU64
! 01/14/00 39307  Heller    Use POD_ARCH_DIR in the path file
! 04/11/00 39897  MSwam     Add PODNAMES_CHECK
! 01/14/02 44949  Slowinski allow for real time pods
! 06/17/02 45261  Slowinski Make the podnames check path dependent
! 09/10/02 46357  Sherbert  Changed PROCESS_NAME and FILE_OBJECT1 
!                           to remove need for Ops overrides
! 05/20/04 51278  Sherbert  Increase MINBLOCKS to 200 million blocks (100 GB)
! 06/24/04 51412  Sherbert  For PR 50437 Remove DISPLAY_ORDER
! 08/03/04 51692  J.Baum    Change POD_SUCCESS to set IN stage
! 02/22/06 54699  MSwam     Parameterize to for tufnel,smalls,sthubbins
! 07/19/06 52625  Sherbert  Remove extraneous FILE_RANK entries
! 09/11/08 59821  MSwam     Adjust POD_OSF_SUCCESS setting
! 11/30/10 38534  MSwam     Use new TASK name
!-------------------------------------------------------------------------------

PROCESS_NAME = DP_WF2! Short name for process id
TASK = <dpu_partition_pod  -p $PATH_FILE -r dp_wf2>
CLASS = wf2
SYSTEM = OPUS
DESCRIPTION = 'Partition WF2 POD files'

INSTRUMENT = WF2

OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE   ! Determined by PATH

FILE_RANK       = 1             ! File Triggers
FILE_DIRECTORY1 = POD_IN_DIR    ! Where the POD files start
FILE_OBJECT1    = ??_a2*.pod    ! File specification for searches
FILE_DIRECTORY2 = POD_IN_DIR    ! Where the RT POD files start
FILE_OBJECT2    = rt_xxxx*.pod  ! File specification for searches
FILE_PROCESSING = _proc         ! Extension addition during processing
FILE_SUCCESS    = _done         ! Extension addition if normal processing
FILE_ERROR      = _bad          ! Extension addition if error
FILE_DUPLICATE.DANGLE  = _duplicate ! Ext addition if duplicate file event

OSF_PROCESSING.DP  = p          ! Set the processing flag to 'Processing'
OSF_MISSING_PACKETS.DP  = m     ! Error:  Set the trouble flag
OSF_ERROR.DP  = e               ! Error:  Set the trouble flag
OSF_FATAL.DP  = f               ! Error:  in ingest rules

OSF_SUCCESS.DP = c              ! Normal: Completed Data Partitioning
OSF_SUCCESS.DE = w              ! Normal: No Data Quality Editing required

OSF_DOFILL.DP = c               ! Do Fill: Completed Data Partitioning
OSF_DOFILL.DE = w               ! Do Fill: Data Quality Editing required

POD_SUCCESS.DP = c              ! Successfully processed the POD file
POD_SUCCESS.FT = n
POD_SUCCESS.IN = l              ! Trigger the set_lock task first

OSF_NO_ARCH.DP = c              ! Successfully processed POD file - no archiving
POD_ERROR.DP = e                ! Error processing POD file
POD_INSERT_ERROR.DP = c         ! Successfully processed POD file - Error
POD_INSERT_ERROR.IN = e         ! inserting pod file into pipeline
POD_DUPLICATE.DP = d            ! Duplicate POD file



POLLING_TIME  = 10! Wait (seconds) before polling for next 

INPATH        = WF2_SIS_DIR     ! Directory where the input files are found
OUTPATH       = WF2_SIS_DIR     ! checks for minblocks on this device
POD_ARCH_DIR  = POD_ARCH_DIR    ! Where the POD files are archived from

MINBLOCKS 	  = big_MINBLOCKS ! blocks required on output disk
EXTENSION     = .pod            ! This input file extension must exist

PODNAMES_CHECK = PODNAMES_CHECK ! test for existing podnames db entries

! forces values from path to be used

 ENV.OPUS_DB = OPUS_DB
 ENV.SPSS_DB = SPSS_DB
 ENV.DSQUERY = DSQUERY

