!--------------------------------------------------------------------
!
! Name: colsti.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/03/00          MSwam     first version 
! 03/12/01 43165_05 MSwam     move indirection to path
! 11/26/01 44598_01 MSwam     parameterize calibration stage name
! 04/03/02 45563    MSwam     ops changes + new 2G stage
!
!-------------------------------------------------------------------------------
PROCESS_NAME = colsti           ! Short name for process id
TASK = <xpoll -p $PATH_FILE -r colsti>
COMMAND  = reqcst.pl            ! Name of the command procedure
DESCRIPTION = 'Collects calibration for return to DADS'
SYSTEM = OTFR
CLASS = otf 

OSF_RANK             = 1        ! First Trigger
                                
OSF_TRIGGER1.DC      = w        ! OSF status column and
OSF_TRIGGER1.DATA_ID = sti      ! OSF data_id field

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

OSF_NORMAL.DC        = c        ! Normal: Completed
OSF_NORMAL.2G        = n        ! skip GEIS conversion
OSF_NORMAL.2F        = w        ! Normal: Waiting for next stage

OSF_NOT_READY.DC     = z        ! Not ready: sleep and try later

OSF_ERROR.DC         = e        ! Error:  Set the error flag

FLUSHING.DC          = f        ! Timeout occurred: flushing this request
FLUSHING.2G          = n        !         skip GEIS conversion
FLUSHING.2F          = w        !         Waiting for next stage

XPOLL_STATE.00       = OSF_NORMAL
XPOLL_STATE.01       = OSF_ERROR
XPOLL_STATE.03       = OSF_NOT_READY
XPOLL_STATE.04       = FLUSHING

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

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

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

ENV.OUTPATH          = stis_recalib             ! root directory for instrument calibration
MINBLOCKS            = 500000                  ! enough for several POD files

ENV.CAL_DIR              = stis_cal_dir         ! location of cal products
ENV.DATA_REDUCTION_PATH  = data_reduction_path ! path for data reduction pipeline
ENV.TIMEOUT_INTERVAL     = max_time_for_otfsci ! timeout if otfsci not complete
ENV.ARCH_SERVER          = ARCH_SERVER
ENV.ARCH_DB              = ARCH_DB
ENV.CAL_STAGE_NAME       = cal_stage_name
