!--------------------------------------------------------------------
!
! Name: retrig_fgs.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 time trigger. 
! It runs in the HST FGS pipeline.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!            PR
!   DATE   NUMBER  User       Description
! -------- ------  ---------- -------------------------------------
! 05/03/13 73784   Sherbert   retrig in EDPS so no crossing over from SCI
!--------------------------------------------------------------------

PROCESS_NAME = retrig_fgs            ! retrigger process for many stages
TASK         = <xpoll -p $PATH_FILE -r retrig_fgs >
COMMAND      = retrigger.pl           ! Name of the command procedure

DESCRIPTION  = 'Perform retriggering of process'
SYSTEM = OTFR
CLASS = otf

TIME_RANK            = 1           !Time trigger periodically
DELTA_TIME           = 000:00:30:00
POLLING_TIME         = 60
!
! Valid exit codes for COMMAND that allow XPOLL to continue.
! All other XPOLL states will cause process to go ABSENT.
! (The labels are not used for TIME events)
XPOLL_STATE.00 = TRIG_OK

XPOLL_ERROR_COUNT = 20    ! This many errors before process goes absent
!

!
! FGS:
ENV.SEARCH_OSF.RJ  = h    ! search condition for retrigger candidate
ENV.SET_OSF.RJ     = w    ! action to take when this candidate is found

ENV.SEARCH_OSF.DC  = h    ! search condition for retrigger candidate
ENV.SET_OSF.DC     = w    ! action to take when this candidate is found

! Hoping this will never get stuck in 'infinite loop'-like situation
ENV.SEARCH_OSF.RS  = f    ! search condition for retrigger candidate
ENV.SET_OSF.RS     = w    ! action to take when this candidate is found
