HCSC_ADT_STPINS

(SQL View)
Index Back

AWE Audit Report

Used to collect and display Step Instance level information in the AWE Audit report gnerated by XMLP.

SELECT A.PTAFPRCS_ID , A.PTAFDEFN_ID , A.PTAFTHREAD_ID , A.PTAFSTAGE_NBR , A.PTAFPATH_ID , A.PTAFSTEP_NBR , A.PTAFSTEP_INSTANCE , A.PTAFSTEP_TYPE , B.XLATLONGNAME , A.PTAFSTEP_STATUS , C.XLATLONGNAME , A.PTAFADHOC_BY FROM PS_PTAFAW_STEPINST A , PSXLATITEM B , PSXLATITEM C WHERE B.FIELDNAME = 'HCSC_STEP_TYPE' AND B.FIELDVALUE = A.PTAFSTEP_TYPE AND %EffdtCheck(PSXLATITEM,B,%CURRENTDATEIN) AND C.FIELDNAME = 'PTAFSTEP_STATUS' AND C.FIELDVALUE = A.PTAFSTEP_STATUS AND %EffdtCheck(PSXLATITEM,C,%CURRENTDATEIN)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 PTAFPRCS_ID Character(30) VARCHAR2(30) NOT NULL Approval Process ID
2 PTAFDEFN_ID Character(30) VARCHAR2(30) NOT NULL Definition ID
3 PTAFTHREAD_ID Number(10,0) DECIMAL(10) NOT NULL Thread ID
4 PTAFSTAGE_NBR Number(3,0) SMALLINT NOT NULL Stage Number
5 PTAFPATH_ID Character(30) VARCHAR2(30) NOT NULL Approval Path ID
6 PTAFSTEP_NBR Number(6,2) DECIMAL(5,2) NOT NULL Sequence number of step in its path
7 PTAFSTEP_INSTANCE Number(15,0) DECIMAL(15) NOT NULL Object id of a step instance. Generated off the main thread id for the approval process.
8 HCSC_STEP_TYPE Character(1) VARCHAR2(1) NOT NULL Type of step instance--Defined, Adhoc, Error
E=Error
H=Adhoc
N=Normal
S=Self Approved
9 STEP_TYPE_DESCR Character(30) VARCHAR2(30) NOT NULL Step Status Description
10 PTAFSTEP_STATUS Character(1) VARCHAR2(1) NOT NULL Step Instance Status
A=Approved
B=Pushed back
C=Auto Approved
D=Denied
E=Administrator denied
F=Deleted
G=Bypassed
H=On Hold
K=Skipped
L=Terminated
M=Administrator approved
N=Not Active
P=Pending
R=No longer in role
S=Skipped
T=Terminated
U=Auto approved
X=Deleted
Y=Bypassed
11 STEP_STAT_DESCR Character(30) VARCHAR2(30) NOT NULL Step Status Description
12 PTAFADHOC_BY Character(30) VARCHAR2(30) NOT NULL User ID