!--------------------------------------------------------------------
!
!  fgsrsp RESOURCE FILE
!
!      This file is used to construct the trigger, error, and success 
!      status fields in the observation status file.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!  MOD             PR
! LEVEL   DATE   NUMBER  User      Description
! ----- -------- ------  ------    -------------------------------------
!  000  07/01/99 39404   Heller    UNIX version of resource file
!  001  10/24/01 44684   Goldst    Standardized OPUS FGS pipeline version
!  002  01/30/02 45016   Goldst    Corrected OK_TO_UPDATE_DATABASE
!  003  02/11/02 45016   Goldst    Update per John Baum's requirements
!  004  12/03/02 46669   Goldst    Added additional keywords for EPC
!  005  11/13/03 49564   Rose      Install catalog population in the pipeline
!  006  03/17/04 50429   Goldst    Updated to support Unix Ingest
!  007  04/04/04 50429   Goldst    Corrected FGS_LOG_DIR
!  008  04/14/04 50429   Goldst    Corrected .RG to .RS
!  009  05/04/04 50429   Goldst    Corrected OSF_INGEST_ERR settings
!  010  07/20/04 35725   jschultz  change value of OSF_ERROR.RS mnemomic 
!                                  from 'e' to 'f'
!       08/12/10 64432   MSwam     use path-defined DB_TYPE (SYBASE or MSSQL)
!       08/16/10 64432   MSwam     add DADS_CLASSPATH to pick up MSSQL jars
!--------------------------------------------------------------------

!---------------------
! General process Info
!---------------------
PROCESS_NAME = fgsrsp
TASK         = <java -classpath ${OPUS_CLASSPATH}\:${DADS_CLASSPATH} INGRESPONSE/IngestResponse -p $PATH_FILE -r fgsrsp>
DESCRIPTION  = 'Obslogs archive response processing'
SYSTEM       = FGS
CLASS        = fgs
MISSION      = HST
INTERNAL_POLLING_PROCESS  =  TRUE
POLLING_TIME = 10            ! Response time of the application.
OSF_RANK = 1                 ! First Trigger

!--------------------------
! OSF triggers and settings
!--------------------------
OSF_TRIGGER1.RS      = w     ! Trigger for succesful archiving
OSF_TRIGGER1.RQ      = c     ! Trigger for succesful archiving
OSF_TRIGGER2.RS      = b     ! Trigger for error in archiving
OSF_PROCESSING.RS    = p     ! Ingest reponse processing
OSF_ERROR.RS         = f     ! Ingest response error
OSF_SUCCESS.RS       = c     ! Ingest response successful completion
OSF_SUCCESS.SC       = w     ! Trigger science catalog extraction

OSF_INGEST_ERR.RS    = e     ! Error archiving, ingest response complete

LOG_DIR = FGS_LOG_DIR        ! Directory for archiving log files

!------------------------
! Message reporting level
!------------------------
MSG_RPT_LVL = JMSG_REPORT_LEVEL    ! Message report level use. Set
                                   ! MSG_RPT_LVL equal to JMSG_REPORT_LEVEL
				   ! to cause the report level to be set
				   ! to the value in the pipeline path file.
				   ! Otherwise set MSG_RPT_LVL = to one of the 
				   ! following: ALL, NONE, DIAG, INFO, WARN,
				   ! ERROR, and FATAL
!--------------
! Database info
!--------------
DB_TYPE              = DB_TYPE     ! Database type in use.
OPUS_DB_SERVER       = OPUS_SERVER ! OPUS database server to use. Set 
                                   ! OPUS_DB_SERVER  equal to OPUS_SERVER. This
				   ! will cause the server to be set to the 
				   ! that OPUS_DB_SERVER is set to in the path
				   ! file.
ARCH_DB_SERVER       = ARCH_SERVER ! ARCH database server to use. Set 
                                   ! ARCH_DB_SERVER  equal to ARCH_SERVER. This
				   ! will cause the sever to be set to the
				   ! value that ARCH_DB_SERVER is set to in the path
				   ! file.
OPUS_DB_NAME         = OPUS_DB     ! OPUS database to use.Set OPUS_DB_NAME  
                                   ! equal to OPUS_DB. This will cause
				   ! the database to be set to the value
				   ! that OPUS_DB is set to in the path file.
ARCH_DB_NAME         = ARCH_DB     ! ARCH database to use. Set ARCH_DB_NAME
                                   ! equal to ARCH_DB. This will cause
				   ! the database to be set to the value
				   ! that ARCH_DB is set to in the path file.
!----------------------
! Archive response info
!----------------------
UPDATE_OPUS.fgs    = Y
VIRTUAL_FILES.fgs  = N
DATASET_DIR.fgs    = NONE
DATASET_FILTER.fgs = NONE

UPDATE_OPUS.fas    = Y 
VIRTUAL_FILES.fas  = N
DATASET_DIR.fas    = NONE
DATASET_FILTER.fas = NONE

UPDATE_OPUS.epc    = Y 
VIRTUAL_FILES.epc  = N
DATASET_DIR.epc    = NONE
DATASET_FILTER.epc = NONE
!-----------------------------------
! Forces values from path to be used
!-----------------------------------
ENV.OPUS_DB = OPUS_DB
ENV.ARCH_DB = ARCH_DB
ENV.OPUS_SERVER = OPUS_SERVER
ENV.ARCH_SERVER = ARCH_SERVER
ENV.OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE
