!
! Name: clnxxx.resource
!
! Purpose: This file is used to construct the trigger, error, and 
!          success status fields in the observation status file.
!
!  This resource file uses an OSF trigger.
!  This task is intended to delete the OTFR request-specific 
!       directory when deletion of science files and science
!       OSFs and reservation OSFs for a completed OTFR request 
!       have been deleted by the unreserve.pl task (stage UR).
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!              PR
!    DATE    NUMBER  User      Description
!  -------- -------- --------- -------------------------------------
!  03/01/01 43165    MSwam     first version 
!  03/23/01 43165_07 MSwam     supply two pod locations
!  12/03/01 44598    MSwam     create SI-independent version  
!  01/29/03 43915    Sherbert  Split orig into two sep processes
!  08/15/03 47755    Sherbert  Return to original file option, while 
!                              retaining unreserve option 
!
!--------------------------------------------------------------------
PROCESS_NAME = clnxxx           ! Short name for process id
TASK         = <xpoll -p $PATH_FILE -r clnxxx>
COMMAND      = clnxxx.pl            ! Name of the command procedure
DESCRIPTION  = 'Cleanup OTFR request-specific directory'
SYSTEM = OTFR
CLASS = otf

OSF_RANK           = 1        ! First Trigger
OSF_TRIGGER1.CL    = w        ! OSF status column and

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

OSF_NORMAL.CL      = c          ! Normal: Completed

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

XPOLL_STATE.00 = OSF_NORMAL
XPOLL_STATE.01 = OSF_ERROR

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

POLLING_TIME  = 10              ! Wait (seconds) before polling for next 
ENV.OUTPATH   = all_recalib     ! OTFR location of request directories

!! If I keep these in, I can have the best of both worlds
ENV.DATA_REDUCTION_PATH = data_reduction_path  ! where science processing occurs
ENV.RESERVATION_PATH    = reservation_path     ! where science reservations occur
ENV.CALDIR              = all_cal_dir          ! location of calibrated files
ENV.SISDIR              = all_sis_dir          ! location of EDT set
ENV.POD_IN_DIR          = pod_in_dir           ! location of POD-whacked input POD
ENV.POD_OUT_DIR         = pod_out_dir          ! location of POD-whacked output POD
