!--------------------------------------------------------------------
!
! Name: clnopus.resource
!
! Purpose: This file is used to construct the trigger, error, and
!          success status fields in the observation status file for
!          the stage CL, which is being used twice.  This file will
!          describe the criteria for deciding what data to delete
!          for an OSF whose CL stage has been manually changed to 'd'.
!          It is designed to replace the Motif OMG's Manage..Delete
!          function and its accompanying [pipe_]osf_delete.dat file.
!
! For ease of use, an override opus_science_pipeline.stage file is
!     required so that the CL column can be set to 'd'.  Will have
!     to be delivered with 46805.
!
! This should be usable in any SYSTEM = OPUS path that defines all 
! the necessary definitions for resource files of CLASS 
! ACS, DMP, NIC, STI, WF2.  Case matters!
!
!       This resource file uses an OSF trigger.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!           PR
! DATE     NUMBER  User      Description
! ------   ------  --------- ------------------------------
! 02/10/01 42443   Heller    first version
! Jul 02    --     Sherbert  Must use in path that can process any SI
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
!
!--------------------------------------------------------------------

PROCESS_NAME = cldata
TASK = <cleandata -p $PATH_FILE -r clnopus>
CLASS = ALL
DESCRIPTION = 'Delete files related to an ACS, DMP, NIC, STI, or WF2 OSF'
SYSTEM = OPUS

!---------------------------------------------------------------------------
! EVNT resource.
!---------------------------------------------------------------------------

POLLING_TIME = 5		! Response time of the application
OSF_RANK = 1			! OSF event ordering.
OSF_TRIGGER1.CL = d		! is triggered by CL = W

OSF_SUCCESS.CL = c		! Completed data deletion trigger OSF deletion
OSF_PROCESSING.CL = p		! Processing OSF 
OSF_ERROR.CL = e		! Error processing

!---------------------------------------------------------------------------
! Application Specific resource
!---------------------------------------------------------------------------

! Do NOT confuse CLASS with DATA_ID
! (which is only used to compare the OSF to the stage's process resource file)

CLASS_GROUPING.01 = ACS
CLASS_GROUPING.02 = NIC
CLASS_GROUPING.03 = STI
CLASS_GROUPING.04 = WF2
CLASS_GROUPING.05 = DMP
CLASS_GROUPING.06 = acs
CLASS_GROUPING.07 = nic
CLASS_GROUPING.08 = sti
CLASS_GROUPING.09 = wf2
CLASS_GROUPING.10 = dmp
CLASS_GROUPING.11 = stis

DEFAULT_FILTER = <OSF_DATASET_8>*
! The above will not work for mama data therefore the mama resource files must
! contain DELETE_DATA_LOCATION.nn and DELETE_DATA_FILTER.nn
! However, I find now that...
! Neither DELETE_DATA_LOCATION nor DELETE_DATA_FILTER = <OSF_DATASET>*
! will help remove the mama data because the OSF_TRIGGER1.DATA_ID = acs	
! whereas the data_id of the OSF is NOT acs.
