SCC_RULE_CAL4VW(SQL View) |
Index Back |
---|---|
Rules Engine CalculationsThis view is used for generating reports on the rules engine using BI Publisher |
SELECT A.SCC_RULE_ID , A.SCC_RULE_VERSION , A.SCC_RULE_SEQNUM , A.SCC_RULE_STMT_SEQ , A.SCC_RULE_ORDER , A.SCC_RULE_STATEMENT , B.SCC_RULE_STMT_NAME , A.SCC_RULE_CONNECTOR , ' ' , A.SCC_RULE_FLEX_TYP1 , X.XLATLONGNAME , A.SCC_RULE_FLEX_OBJ1 , ' ' , A.SCC_RULE_OPERATOR , XX.XLATLONGNAME , A.SCC_RULE_FLEX_TYP2 , XXX.XLATLONGNAME , A.SCC_RULE_FLEX_OBJ2 , ' ' , A.SCC_RULE_PARENS , A.SCC_RULE_ARGUMENT , A.SCC_RULE_RETURN FROM PS_SCC_RULE_CALC A ,PS_SCC_RULE_ST_TBL B ,PSXLATITEM X ,PSXLATITEM XX ,PSXLATITEM XXX WHERE A.SCC_RULE_STATEMENT = B.SCC_RULE_STATEMENT AND X.FIELDNAME = 'SCC_RULE_FLEX_TYP1' AND X.FIELDVALUE = A.SCC_RULE_FLEX_TYP1 AND X.EFFDT = ( SELECT MAX(X1.EFFDT) FROM PSXLATITEM X1 WHERE X1.FIELDNAME = X.FIELDNAME AND X1.FIELDVALUE = X.FIELDVALUE AND X1.EFFDT <= %CurrentDateIn AND X1.EFF_STATUS = 'A') AND XX.FIELDNAME = 'SCC_RULE_OPERATOR' AND XX.FIELDVALUE = A.SCC_RULE_OPERATOR AND XX.EFFDT = ( SELECT MAX(XX1.EFFDT) FROM PSXLATITEM XX1 WHERE XX1.FIELDNAME = XX.FIELDNAME AND XX1.FIELDVALUE = XX.FIELDVALUE AND XX1.EFFDT <= %CurrentDateIn AND XX1.EFF_STATUS = 'A') AND XXX.FIELDNAME = 'SCC_RULE_FLEX_TYP2' AND XXX.FIELDVALUE = A.SCC_RULE_FLEX_TYP2 AND XXX.EFFDT = ( SELECT MAX(XXX1.EFFDT) FROM PSXLATITEM XXX1 WHERE XXX1.FIELDNAME = XXX.FIELDNAME AND XXX1.FIELDVALUE = XXX.FIELDVALUE AND XXX1.EFFDT <= %CurrentDateIn AND XXX1.EFF_STATUS = 'A') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SCC_RULE_ID | Character(40) | VARCHAR2(40) NOT NULL | This field is the Rule ID for rules used in the Rules Engine |
2 | SCC_RULE_VERSION | Number(3,0) | SMALLINT NOT NULL | This field is the version of a rule or rule group in the rules engine. |
3 | SCC_RULE_SEQNUM | Number(4,0) | SMALLINT NOT NULL | This field is a sequence number used to create a unqiue key in the Rules Engine setup |
4 | SCC_RULE_STMT_SEQ | Number(3,0) | SMALLINT NOT NULL | This field is used as a unique key for unique statement ids for the rules engine. |
5 | SCC_RULE_ORDER | Number(4,0) | SMALLINT NOT NULL | This field is used to identify the order of the rows in the rules engine setup for the Rules Engine |
6 | SCC_RULE_STATEMENT | Character(40) | VARCHAR2(40) NOT NULL | This field is used to identify the type of statement used in the rules calculation for the Rules Engine |
7 | SCC_RULE_STMT_NAME | Character(30) | VARCHAR2(30) NOT NULL | This field is the name of the statement used in the rule engine. |
8 | SCC_RULE_CONNECTOR | Character(3) | VARCHAR2(3) NOT NULL |
This field is the connector value used in defining rules in the Rules Engine
AND=And OR=Or |
9 | SCC_RULE_CON_DESCR | Character(30) | VARCHAR2(30) NOT NULL | This field is used for the rules engine report for the connector description |
10 | SCC_RULE_FLEX_TYP1 | Character(2) | VARCHAR2(2) NOT NULL |
This field is used to identify the type of object for the following value in the rules engine
10=Text 20=Number 30=Datetime 40=Date 50=Time 55=True/False 60=Entity 65=Data Set 70=Property 75=Data Set Property 80=Variable |
11 | SCC_RULE_FL1_DESCR | Character(30) | VARCHAR2(30) NOT NULL | This field is used for the rules engine report for the rule flex type description |
12 | SCC_RULE_FLEX_OBJ1 | Character(91) | VARCHAR2(91) NOT NULL | This field is the value of the used in the processing of rules for the Rules Engine |
13 | SCC_RULE_OB1_DESCR | Character(30) | VARCHAR2(30) NOT NULL | This field is used for the rules engine report for the rule flex object description |
14 | SCC_RULE_OPERATOR | Character(2) | VARCHAR2(2) NOT NULL |
This field is the operator used in the defintion of rules in the Rules Engine
<=Less Than <==Less Than or Equal To <>=Not Equal ==Equal >=Greater Than >==Greater Than or Equal To AD=As Of Date EX=Exists IN=In LI=Like NE=Not Exists NI=Not In NL=Not Like SF=First Effective Sequence SL=Last Effective Sequence Default Value: = |
15 | SCC_RULE_OPR_DESCR | Character(30) | VARCHAR2(30) NOT NULL | This field is used for the rules engine report for the operator description |
16 | SCC_RULE_FLEX_TYP2 | Character(2) | VARCHAR2(2) NOT NULL |
This field is used to identify the type of object for the following value in the rules engine
10=Text 20=Number 30=Datetime 40=Date 50=Time 55=True/False 60=Entity 65=Data Set 70=Property 75=Data Set Property 80=Variable |
17 | SCC_RULE_FL2_DESCR | Character(30) | VARCHAR2(30) NOT NULL | This field is used for the rules engine report for the rule flex type description |
18 | SCC_RULE_FLEX_OBJ2 | Character(91) | VARCHAR2(91) NOT NULL | This field is the value of the used in the processing of rules for the Rules Engine |
19 | SCC_RULE_OB2_DESCR | Character(30) | VARCHAR2(30) NOT NULL | This field is used for the rules engine report for the rule flex object description |
20 | SCC_RULE_PARENS | Character(5) | VARCHAR2(5) NOT NULL | This field is used to hold the parenthesis values used in processing rules for the Rules Engine |
21 | SCC_RULE_ARGUMENT | Character(1) | VARCHAR2(1) NOT NULL |
This is a Y/N field used to identify if a variable in the rules engine is also used as an argument for the rule.
Y/N Table Edit Default Value: N |
22 | SCC_RULE_RETURN | Character(1) | VARCHAR2(1) NOT NULL |
This field is a Y/N field used to identify if a variable in the rules engine is also going to be returned to the calling rule.
Y/N Table Edit Default Value: N |