!--------------------------------------------------------------------
!
!  PNMFOF 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
! -------- ------  --------- --------------------------------------
! 05/29/98 36120   Ken S.    Created
! 01/20/99 37507   Ken S.    Process duplicate PNM files.
! 01/20/00 39109   Ken S.    Set wait status for PNM osf when complete.
! 02/04/00 39164   Ken S.    Implement shove option for duplicate data.
! 12/01/00 42449   Ken S.    Accomodate CCS pushing FOF data.
! 10/24/01 44684   Goldst    Standardized OPUS EDR pipeline version
! 01/30/02 45016   Goldst    Corrected OK_TO_UPDATE_DATABASE
! 03/11/02 45016   Goldst    Added OSF_TRIGGER1.DATA_ID
! 03/14/02 45016   Goldst    Added FOF_DATA_ID
! 03/27/02 45016   Goldst    Added "DANGLE" to keywords
! 03/29/02 45016   Goldst    Changed per new requirement
! 04/04/02 45382   Goldst    Removed LOG* keywords
! 04/08/02 45382   Goldst    Added two new keywords
! 04/24/02 45016   Goldst    Change "_" status to "©" character
! 07/18/02 46157   J.Baum    Add file trigger for transferred files, add
!                            PNM_TEST_PNM state.
! 02/27/03 47731   J.Baum    Use uppercase TXT extensions for PNM file
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
!---------------------------------------------------------------------

PROCESS_NAME = pnmfof
TASK         = <pnmfof -p $PATH_FILE -r pnmfof>
DESCRIPTION  = 'Product notification message poller'
SYSTEM       = EDR
CLASS        = pnm

OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE ! Determined by path file

INTERNAL_POLLING_PROCESS  =  TRUE   

FILE_RANK              = 1               ! First Trigger
FILE_OBJECT1           = P*.TXT          ! File specification for polling
FILE_DIRECTORY1        = EDR_RECEIPT_DIR !
FILE_OBJECT2           = *.txt_xfr       ! Alternate file specification
FILE_DIRECTORY2        = EDR_RECEIPT_DIR !

FILE_PROCESSING.DANGLE = _proc           ! Extension addition during processing
FILE_SUCCESS.DANGLE    = _done           ! Extension addition if normal processing
FILE_ERROR.DANGLE      = _bad            ! Extension addition if error
FILE_DUPLICATE.DANGLE  = _duplicate      ! Extension addition if duplicate

OSF_RANK        = 2         ! Second Trigger

OSF_TRIGGER1.PN      = s    ! OSF being shoved through
OSF_TRIGGER1.DATA_ID = pnm  ! Trigger class ID
OSF_PROCESSING.PN    = p    ! Set the processing flag to 'Processing'

!PNM Success 
PNM_CREATE.PN     = p       !PNM file create status
PNM_COMPLETE.PN   = c       !PNM file complete status
PNM_COMPLETE.ZI   = n       !Not applicable to PNM processing 
PNM_COMPLETE.CL   = v       !PNM vaiting for cleanup (set by CLNFOF)

PNM_TEST_PNM.PN  = c        !PNM  - test file complete
PNM_TEST_PNM.ZI  = n        !PNM  - no zipping 
PNM_TEST_PNM.CL  = w        !PNM  - test file ready for deletion

PNM_DUPLICATE.PN  = d       !PNM file duplicate status
PNM_DUPLICATE.ZI  = n       !PNM file duplicate status
PNM_DUPLICATE.CL  = d       !PNM file duplicate status
!############  DO NOT CHANGE THIS STATUS VALUE ######################
PNM_DUPLICATE.DL  = ©       !Reset to "_" for PNM file duplicate status
!####################################################################

PNM_FAIL.PN       = f       !PNM file failed status

FOF_COMPLETE.PN   = c       !FOF file complete status
FOF_COMPLETE.ZI   = w       !Reset for duplicate FOF processing 
!############  DO NOT CHANGE THESE STATUS VALUES #####################
FOF_COMPLETE.CL   = ©       !Reset to "_" for duplicate FOF processing
FOF_COMPLETE.DL   = ©       !Reset to "_" for duplicate FOF processing
!#####################################################################

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

PNMPATH       = EDR_RECEIPT_DIR ! Find Product notificatiuon messages(PNM) here
OUTPATH       = EDR_FOF_DIR     ! Move zipped FOF data here

MINBLOCKS     = 50000           ! blocks required on output disk

ZIPPED_EXT    = .mrg-gz         ! Zipped file extension
FOF_DATA_ID   = fof             ! Data ID for fof class OSFs 

! forces values from path to be used

 ENV.OPUS_DB = OPUS_DB
 ENV.DSQUERY = DSQUERY
