!--------------------------------------------------------------------
!
!      PI_CLEAN 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
! -------- ------  --------- -------------------------------------
! 02/02/98 35798   WMiller   Unix version
! 05/28/98 36899   WMiller   Synchronize with VMS version
! 07/08/98 37055   WMiller   Clean LONG DDN obs that bypass swapper
! 03/04/99 38143   WMiller   Add trigger for tape inputs
! 06/24/99 38324   WMiller   Set ENV vars
! 07/12/00 42044   WMiller   Prepare for UNIX Ops
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
!
!--------------------------------------------------------------------

PROCESS_NAME = CLNFTP            ! Short name for process id
TASK = <xpoll -p $PATH_FILE -r clnftp>
CLASS = PAC
DESCRIPTION = 'PACOR interface cleanup'
SYSTEM = PACOR
COMMAND = pi_clean.csh ! Name of the command procedure
OK_TO_UPDATE_DATABASE = BLANK   ! Determined by PATH

OSF_RANK = 1                    ! First Trigger
OSF_TRIGGER1.AN    = c          ! DAN processing complete
OSF_TRIGGER1.AA	   = c		! DAA processing complete
OSF_TRIGGER1.FT    = c          ! File has been transferred (FTP)
OSF_TRIGGER1.DN    = c		! DDN sent
OSF_TRIGGER1.DA    = c		! DDA received
OSF_TRIGGER1.SW    = c		! POD file has been swapped
OSF_TRIGGER1.CL    = w		! Waiting for the clean operation
OSF_TRIGGER2.AN    = c          ! DAN processing complete
OSF_TRIGGER2.AA	   = c		! DAA processing complete
OSF_TRIGGER2.FT    = c          ! File has been transferred (FTP)
OSF_TRIGGER2.DN    = c		! DDN sent
OSF_TRIGGER2.DA    = c		! DDA received
OSF_TRIGGER2.SW    = n		! LONG DDN sent, so swapper bypassed
OSF_TRIGGER2.CL    = w		! Waiting for the clean operation
OSF_TRIGGER3.AN    = n
OSF_TRIGGER3.AA	   = n
OSF_TRIGGER3.FT    = n
OSF_TRIGGER3.DN    = n
OSF_TRIGGER3.DA    = n
OSF_TRIGGER3.SW    = c		! POD file has been swapped
OSF_TRIGGER3.CL    = w		! Waiting for the clean operation
OSF_PROCESSING.CL  = p          ! Set the processing flag to 'Processing'

XPOLL_STATE.01 = OSF_NORMAL     ! Normal: Completed the Clean step
OSF_NORMAL.CL      = c          ! Normal: Set the status to complete
XPOLL_STATE.03 = OSF_ERROR	! Error:  Unable to delete files
OSF_ERROR.CL       = e		! Error:  Set OSF to E
XPOLL_ERROR.CL     = x          ! Set osf to this if exit state is undefined.

POLLING_TIME       = 10         ! Wait (seconds) before polling for next
ENV.OUTPATH        = OPUS_DDF_DIR:   ! Output directory for the STIS
                                ! OUTPATH must end with a colon!
MINBLOCKS          = 50000        ! blocks required on output disk

ENV.OPUS_DB = OPUS_DB
ENV.SPSS_DB = SPSS_DB
ENV.DSQUERY = DSQUERY
ENV.ASSIST_DB = ASSIST_DB

ENV.OPUS_DDF_DIR = OPUS_DDF_DIR
ENV.OPUS_RT_DIR  = OPUS_RT_DIR
