!--------------------------------------------------------------------
!
!      CP_WF3 RESOURCE FILE
!
!
!      This file is used to construct the trigger, error, and success status
!      fields in the observation status file.
!
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!            PR
! mm/dd/yy NUMBER  Modifier   Description
! -------- ------  ---------- -------------------------------------
! 12/19/01 44438   Rose       Initial version
! 10/10/02 46769   Rose       Copy and rename the STIM files too.
! 11/11/02 46769   Rose       Stim files have .osc as extension
! 12/03/02 47036   Rose       put the CSIx back on the p_dset name
! 03/20/03 48019   Rose       flag no datasets, but continue processing
! 07/17/07         Sherbert   Errors Stop pipeline now, add retry
! 09/18/12 72255   Sherbert   get rid of DSQUERY
!
!--------------------------------------------------------------------

PROCESS_NAME = cp_wf3		! Short name for process id
TASK = <xpoll -p $PATH_FILE -r cp_wf3tv>
COMMAND = copyaux.csh    
CLASS = tv
DESCRIPTION = 'WF3 Copy AUX Files'
SYSTEM = OPUS
INSTRUMENT  = WF3

OSF_RANK = 1                    ! First Trigger
OSF_TRIGGER1.CP = w             ! Need a 'Wait' flag in Copy Aux Files
OSF_TRIGGER1.DATA_ID = wf3      ! Also need the Data_id set to WF3
OSF_TRIGGER2.CP = w             ! Need a 'Wait' flag in Copy Aux Files
OSF_TRIGGER2.DATA_ID = wdm      ! Also need the Data_id set to WF3 Dump

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

XPOLL_STATE.00 = OSF_NORMAL     ! Normal: Completed successfully
OSF_NORMAL.CP = c               ! Normal: Completed Copy Aux Files
OSF_NORMAL.GC = w               ! Normal: Waiting for Generic Conversion

XPOLL_STATE.74 = OSF_TRY_AGAIN  ! Problem: possible an incomplete copy
OSF_TRY_AGAIN.CP = r            ! Setting this will get tvretry's attention

XPOLL_STATE.01 = OSF_ERROR      ! Error during processing  
OSF_ERROR.CP  = e               ! Error: Set the trouble flag

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

POLLING_TIME  = 10              ! Wait (seconds) before polling for next 
ENV.INPATH    = POD_ARCH_DIR    ! Directory where the input files are found
ENV.OUTPATH   = WF3_SIS_DIR     ! Output directory for the WF3
MINBLOCKS     = 50000           ! blocks required on output disk

! forces values from path to be used (unless overridden in opus_login?)

ENV.OPUS_DB = OPUS_DB
ENV.SPSS_DB = SPSS_DB
ENV.OPUS_SERVER = OPUS_SERVER
ENV.SPSS_SERVER = SPSS_SERVER
ENV.LOGFILE_EXTN = .com
ENV.STIMFILE_EXTN = .osc
ENV.CSINAME = csii
