!--------------------------------------------------------------------
!
! Name: polcos.resource
!
! Purpose: This file is used to construct the trigger, error, and 
!          success status fields in the observation status file.
!
!	This resource file uses a file trigger.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!            PR
!   DATE   NUMBER Developer  Description
! -------- ------ ---------- ----------------------------------------
! 04/01/08 59478  Sherbert   Add COS, WFC3 to OTFR
!--------------------------------------------------------------------

PROCESS_NAME = polcos           ! Short name for process id
TASK = <xpoll -p $PATH_FILE -r polcos>
COMMAND  = polxxx.csh           ! Name of the command procedure
DESCRIPTION = 'Starts archive-retrieved data in the OTFC pipeline'
SYSTEM = OTFR
CLASS = otf 

FILE_RANK       = 1             ! First Trigger
                                ! where the OTFC request files are found
FILE_DIRECTORY1 = DADS_request_dir
FILE_OBJECT1    = *_l*.req        ! File specification for searches
FILE_PROCESSING = _checking     ! Extension addition during processing
FILE_SUCCESS    = _working      ! Extension addition if normal processing
FILE_ERROR      = _bad          ! Extension addition if error
FILE_ACTION     = 'rm ^f'
FILE_ACTION_OK  = 0             ! status returned that triggers FILE_ACTION

XPOLL_STATE.00 = FILE_SUCCESS
XPOLL_STATE.01 = FILE_ERROR

XPOLL_ERROR_COUNT = 1           ! exit if any error occurs (for now)

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

ENV.OUTPATH      = cos_recalib    ! root directory for instrument calibration
MINBLOCKS        = 100            ! don't need much to create OSFs

ENV.OSF_START_STATUS = cw             ! status field for OSF creation
ENV.ARCH_SERVER      = ARCH_SERVER
ENV.ARCH_DB          = ARCH_DB
ENV.STSCI_SITE       = STSCI_SITE     ! tells OTFR where its run
