!--------------------------------------------------------------------
!
!      refcos RESOURCE FILE
!
!
!      This file is used to construct the trigger, error, and success status
!      fields in the observation status file.
!
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!            PR
!   DATE   NUMBER  User      Description
! -------- ------  --------- -------------------------------------
! 11/15/02 46981    MSwam    first version
! 03/04/03 46981_01 MSwam    add TRLPATH
! 05/22/03 48726    MSwam    add DB_RETRY_INTERVAL
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
! 02/25/05 51433   MSwam  Replace bestref_main with bestref
! 07/13/07 55484    MSwam    Trigger data collector next
! 10/12/09 63764    MSwam    Make an external poller
! 04/27/10 49175   MSwam  replace CDBS_SERVER,DB with REFFILE
!
!--------------------------------------------------------------------

PROCESS_NAME = refcos		! Short name for process id
TASK = <xpoll -p $PATH_FILE -r refcos>
COMMAND = bestref.py
CLASS = COS
DESCRIPTION = 'COS reference files'
SYSTEM = OPUS

OSF_RANK = 1			! First Trigger
OSF_TRIGGER1.RF = w		! Need a 'Wait' flag in Generic Conversion
OSF_TRIGGER1.DATA_ID = cos	! Also need the Data_id set to COS

OSF_PROCESSING.RF  = p		! Set the processing flag to 'Processing'

XPOLL_STATE.00 = OSF_NORMAL     !
OSF_NORMAL.RF          = c		! Completed Generic Conversion
OSF_NORMAL.DC          = v		! Waiting for data collector

XPOLL_STATE.01 = OSF_ERROR      ! Return status of 01 indicates error.
OSF_ERROR.RF       = e		! Error:  Set the error flag

XPOLL_ERROR.RF = x              ! Set osf to this if exit state is undefined.

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

ENV.INPATH  	   = COS_CAL_DIR ! Directory where the input files are found
ENV.TRLPATH        = COS_SIS_DIR ! Directory where trailer is found
ENV.REF_SELECT_FILE = REF_SELECT_FILE
ENV.ARCH_SERVER    = ARCH_SERVER
ENV.ARCH_DB        = ARCH_DB
ENV.REFFILE_SERVER    = REFFILE_SERVER
ENV.REFFILE_DB        = REFFILE_DB
ENV.KW_SERVER      = KW_SERVER
ENV.KW_DB          = KW_DB
