!--------------------------------------------------------------------
!
!      SET_CAT_LOCK 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
! -------- ------ --------- -------------------------------------
! 08/03/04 51692  J.Baum    Initial version
! 09/11/08 59821  MSwam     add FT trigger state
!--------------------------------------------------------------------

PROCESS_NAME = set_cat_lock		! Short name for process id
TASK = <xpoll -p $PATH_FILE -r set_cat_lock>
CLASS = pod
DESCRIPTION = 'Set cataloging lock for POD file.'
COMMAND      = set_catalog_lock.pl
SYSTEM = OPUS

OSF_RANK             = 1     ! Only OSF triggers for this task

OSF_TRIGGER1.IN      = l     ! waiting for lock (L) processing
OSF_TRIGGER1.FT      = n     ! Fastrak can be bypassed 
OSF_TRIGGER1.DATA_ID = pod   ! only POD files have locks

OSF_TRIGGER2.IN      = l     ! waiting for lock (L) processing
OSF_TRIGGER2.FT      = c     ! Fastrak can also be completed
OSF_TRIGGER2.DATA_ID = pod   ! only POD files have locks

OSF_PROCESSING.IN    = p     ! Set the processing flag to 'Processing'
OSF_NORMAL.IN        = c     ! Normal: Completed lock creation
OSF_NORMAL.RQ        = w     ! Normal: trigger next stage
OSF_ERROR.IN         = e     ! Error:  Set the trouble flag

XPOLL_STATE.07 = OSF_ERROR   ! exit status 7 == OSF_ERROR state
XPOLL_STATE.09 = OSF_NORMAL  ! exit status 9 == OSF_NORMAL state

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

! parameters passed to script by ENV variables
ENV.CATALOG_LOCK_DIR = CATALOG_LOCK_DIR
ENV.OPUS_DB = OPUS_DB
ENV.OPUS_SERVER = OPUS_SERVER
