!--------------------------------------------------------------------
!
!  rcheck.resource 
!
!      External Poller using xpoll    
!
!      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
! -------- ------  --------- -------------------------------------
! 10/24/01 44684   Goldst    Created initial version
! 01/15/02 45016   Goldst    Corrected Trigger
! 03/11/02 45016   Goldst    Added OSF_TRIGGER1.DATA_ID
! 03/15/02 45016   Goldst    Remove OSF_GSA_WAIT.GA = v
! 04/30/03 46669   Goldst    Change JT to GN
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
!--------------------------------------------------------------------

PROCESS_NAME = rcheck 		
TASK         = <xpoll -p $PATH_FILE -r rcheck>
DESCRIPTION  = 'Determine whether or not rawjit is run'
COMMAND      = rawjit_check.pl      ! Name of the perl script
SYSTEM       = FGS
CLASS        = fgs

OSF_RANK = 1                    ! First Trigger

OSF_TRIGGER1.RJ         = w     ! Trigger
OSF_TRIGGER1.DATA_ID    = fgs   ! Trigger class ID
OSF_PROCESSING.RJ       = p     ! Processing
OSF_FAILURE.RJ          = f     ! Failure setting

OSF_NO_SCIENCE.GA       = n
OSF_NO_SCIENCE.RJ       = n
OSF_NO_SCIENCE.GN       = n
OSF_NO_SCIENCE.DC       = n
OSF_NO_SCIENCE.AN       = n
OSF_NO_SCIENCE.RQ       = n
OSF_NO_SCIENCE.RS       = n
OSF_NO_SCIENCE.CL       = n
OSF_NO_SCIENCE.FN       = w

OSF_HOLD_FOR_SCIENCE.RJ = h

OSF_NO_GSA_REQUIRED.GA  = n
OSF_NO_GSA_REQUIRED.RJ  = s

OSF_GSA_READY.GA        = c
OSF_GSA_READY.RJ        = g

OSF_GSA_WAIT.RJ         = g

XPOLL_ERROR.RJ          = x   ! Undefined exit status

XPOLL_STATE.09    = OSF_NO_SCIENCE
XPOLL_STATE.11    = OSF_HOLD_FOR_SCIENCE
XPOLL_STATE.15    = OSF_NO_GSA_REQUIRED
XPOLL_STATE.17    = OSF_GSA_WAIT
XPOLL_STATE.19    = OSF_GSA_READY

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

! forces values from path to be used

 ENV.OPUS_DB = OPUS_DB
 ENV.DSQUERY = DSQUERY
