!--------------------------------------------------------------------
!
!  CONTRL RESOURCE FILE
!
!       This file is used to define various values for the Update
!       Support Schedule Tables process.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!            PR
!   DATE   NUMBER  User      Description
! -------- ------  --------- ------------------------------------
! 10/24/01 44684   Goldst    Created initial version
! 01/25/02 45016   Goldst    ENV.OK_TO_UPDATE_DATABASE from path
! 03/11/02 45016   Goldst    Added OSF_TRIGGER1.DATA_ID
! 02/13/03 47570   J.Baum    Change exit status values
! 02/20/04 50403   J.Baum    Add ENV.MAX_GSA_MINUTES
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
!--------------------------------------------------------------------
!

PROCESS_NAME = contrl
TASK         = <xpoll -p $PATH_FILE -r contrl>
DESCRIPTION  = 'Update control database tables'
COMMAND      = update_control_tables.pl
SYSTEM       = PDR
CLASS        = msc

OSF_RANK           = 1      ! First trigger

OSF_TRIGGER1.MS      = c    ! Completed MSCXTR processing
OSF_TRIGGER1.CT      = w    ! Need a 'wait' flag in control processing stage
OSF_TRIGGER1.DATA_ID = msc  ! Trigger class ID
OSF_PROCESSING.CT    = p    ! Set the processing flag to 'Processing'

OSF_SUCCESS.CT       = c    ! Completion: Completed control table update
OSF_SUCCESS.NS       = w    ! Completion: Trigger for NICSAA processing
OSF_FAIL.CT          = f    ! Error: Set the trouble flag

XPOLL_ERROR.CT       = x    ! Undefined exit status

XPOLL_STATE.07     = OSF_FAIL      ! exit status 7 == OSF_FAIL state
XPOLL_STATE.09     = OSF_SUCCESS   ! exit status 9 == OSF_SUCCESS state

POLLING_TIME = 10           ! Amount of time to wait before polling for next

! forces values from path to be used

 ENV.OPUS_DB = OPUS_DB
 ENV.SPSS_DB = SPSS_DB
 ENV.DSQUERY = DSQUERY

 ENV.OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE ! Determined by path file
 ENV.MAX_GSA_MINUTES = 16  ! max minutes allowed to search for GS acq success
