!-------------------------------------------------------------------- 
! 
!      cdbfb 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
! -------- ------  ------ -------------------------------------
! 11/05/02 46981   MSwam  first version
! 04/17/03 48141   MSwam  make Python internal poller
! 02/25/05 51433   MSwam  Replace cdbfb_main with cdbfb
! 04/27/10 49175   MSwam  Add REFFILE_SERVER,DB and convert to XPOLLer
! 09/21/10 65811   RBelt  Changed normal next step to ML from BR 
!
!--------------------------------------------------------------------
PROCESS_NAME = cdbfb		! Short name for process id
TASK = <xpoll -p $PATH_FILE -r cdbfb>
COMMAND = cdbfb.py
DESCRIPTION = 'Provide OPUS feedback for CDBS delivery'
SYSTEM = CDBS
CLASS = cdb

OSF_RANK = 1			! First Trigger
OSF_TRIGGER1.FB = w
OSF_TRIGGER1.DATA_ID = ref

OSF_PROCESSING.FB  = p		! Set flag while 'Processing'

XPOLL_STATE.00 = OSF_NORMAL
OSF_NORMAL.FB      = c		! 
OSF_NORMAL.ML      = w		! Wait for next stage

XPOLL_STATE.01 = OSF_ERROR
OSF_ERROR.FB       = e		! Ref files not on disk or other fatal error 

XPOLL_STATE.02 = OSF_RETRY
OSF_RETRY.FB       = z          ! Archiving not ready, retrigger and retry later

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

POLLING_TIME       = 10		  ! Wait (seconds) before polling for next 
ENV.INPATH         = cdbs_input_dir
ENV.TRLPATH        = cdbs_input_dir
!
ENV.CDBS_SERVER    = CDBS_SERVER
ENV.CDBS_DB        = CDBS_DB
ENV.REFFILE_SERVER = REFFILE_SERVER
ENV.REFFILE_DB     = REFFILE_DB
ENV.OPUS_SERVER    = OPUS_SERVER
ENV.OPUS_DB        = OPUS_DB
