!-------------------------------------------------------------------------------
!
!   DE_WF3 (Document EDTs for WF3) RESOURCE FILE
!
!
!   This file is used to construct the trigger, error, and success status
!   fields in the observation status file.
!
!
!-------------------------------------------------------------------------------
!                          REVISION HISTORY
!-------------------------------------------------------------------------------
!   DATE     PR   Developer  Description
! -------- ------ ---------- ---------------------------------------------------
! 11/20/12 71304  Sherbert   archive EDT
! 03/27/13 71304  Sherbert   do NOT specify extensions
!
!------------------------------------------------------------------------------- 

PROCESS_NAME = DE_WF3           ! Short name for process id
TASK = <xpoll -p $PATH_FILE -r de_wf3>
COMMAND = edt_archive.py        ! OPUS provides necessary parameters
CLASS = WF3
DESCRIPTION = 'WF3 EDT archive/ingest '
SYSTEM = OPUS

OSF_RANK        = 1             ! File Triggers
OSF_TRIGGER1.DE = w             ! Consider EDT set for ingest/archive
OSF_TRIGGER1.DATA_ID = wf3      ! exposure data_id

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

XPOLL_STATE.00 = OSF_NORMAL     ! Normal: Completed EDT archive successfully
OSF_NORMAL.DE = c               ! exposure Completed Document (Archive) EDT
OSF_NORMAL.SS = w               ! exposure Waiting for Support Schedules

XPOLL_STATE.02 = OSF_NO_ARCH    ! Normal: Completed EDT archive successfully
OSF_NO_ARCH.DE = n              ! Don't archive the EDT set for exposure
OSF_NO_ARCH.SS = w              ! exposure Waiting for Support Schedules

XPOLL_STATE.01 = OSF_ERROR      ! Error during EDT archive
OSF_ERROR.DE   = e              ! exposure Error: Set the trouble flag
XPOLL_STATE.09 = OSF_FATAL      ! Error during EDT archive
OSF_FATAL.DE   = f              ! exposure Error: fatal 
XPOLL_ERROR.DE = x              ! Set osf to this if exit state is undefined.

POLLING_TIME  = 10              ! Wait (seconds) before polling for next 
MINBLOCKS     = big_MINBLOCKS   ! blocks required on output disk
ENV.INPATH    = WF3_SIS_DIR     ! Directory where the input files are found
ENV.OUTPATH   = EDT_ARCH_DIR    ! Directory where EDT set is archived from

ENV.ARCHIVE_EDT_SET         = ARCHIVE_EDT_SET ! allow path-specific TRUE or FALSE
ENV.EDT_OSF_STAGE           = RQ    ! stage used to send EDT to ingest/archive
ENV.EDT_OSF_STATUS          = w     ! status used to send EDT to ingest/archive

