2. Table of Contents
1. Project Description.............................................................................................................................................................................
2. All Parameters in Project.....................................................................................................................................................................
3. Project Business Flows and Cartridges................................................................................................................................................
3.1. Business Flow WorkflowArchive 7.00.1.12.33.33...........................................................................................................................
3.1.1. Business Flow Description............................................................................................................................................................
3.1.1.1. Business Flow Diagram..............................................................................................................................................................
3.1.1.2. Parameters used in Business Flow Actvities (and Model Compatibilities)...............................................................................
3.1.1.3. Order of Parameters for Business Flow Activities......................................................................................................................
3.1.2. Business Flow Activities................................................................................................................................................................
3.1.2.1. Script Activity "ValidateDate" Description................................................................................................................................
3.1.2.2. Condition Activity "CondnActivities" Description...................................................................................................................
3.1.2.2.1. Condition Activity "CondnActivities" Diagram.....................................................................................................................
3.1.2.2.2. Cartridge Activity "WFActivitiesArchive" Description..........................................................................................................
3.1.2.2.3. Cartridge Activity "WFItemsArchive" Description................................................................................................................
3.1.2.2.4. Cartridge Activity "WFLocalRolesArchive" Description.......................................................................................................
3.1.2.2.5. Interrupt Activity: "Pause".......................................................................................................................................................
3.1.2.2.6. Cartridge Activity "WFActivitiesArchive" Description..........................................................................................................
3.1.2.2.7. Cartridge Activity "WFItemsArchive" Description................................................................................................................
3.1.2.2.8. Cartridge Activity "WFLocalRolesArchive" Description.......................................................................................................
3.1.2.3. Condition Activity "CondnActivitiesNo" Description.............................................................................................................
3.1.2.3.1. Condition Activity "CondnActivitiesNo" Diagram...............................................................................................................
3.1.2.3.2. Cartridge Activity "WFItemsArchive_2" Description............................................................................................................
3.1.2.3.3. Cartridge Activity "WFLocalRolesArchive_2" Description...................................................................................................
3.1.2.3.4. Interrupt Activity: "Pause".......................................................................................................................................................
3.1.2.3.5. Cartridge Activity "WFItemsArchive_2" Description............................................................................................................
3.1.2.3.6. Cartridge Activity "WFLocalRolesArchive_2" Description...................................................................................................
3.2. Business Flow WorkflowReload 7.00.1.12.33.33............................................................................................................................
3.2.1. Business Flow Description............................................................................................................................................................
3.2.1.1. Business Flow Diagram..............................................................................................................................................................
3.2.1.2. Parameters used in Business Flow Actvities (and Model Compatibilities)...............................................................................
3.2.1.3. Order of Parameters for Business Flow Activities......................................................................................................................
3.2.2. Business Flow Activities................................................................................................................................................................
3.2.2.1. Cartridge Activity "WFItemsReload" Description....................................................................................................................
3.2.2.2. Cartridge Activity "WFActivitiesReload" Description..............................................................................................................
3.2.2.3. Cartridge Activity "WFLocalRolesReload" Description............................................................................................................
3.3. Undo Business Flow WorkflowUndo 7.00.1.12.33.33....................................................................................................................
3.3.1. Undo Business Flow Description..................................................................................................................................................
3.3.1.1. Undo Business Flow Diagram....................................................................................................................................................
3.3.2. Undo Business Flow Activities......................................................................................................................................................
3.3.2.1. Cartridge Activity "WFLocalRolesArchive_2" Description......................................................................................................
3.3.2.2. Cartridge Activity "WFItemsArchive_2" Description...............................................................................................................
3.3.2.3. Cartridge Activity "WFLocalRolesArchive" Description..........................................................................................................
3.3.2.4. Cartridge Activity "WFItemsArchive" Description...................................................................................................................
3.3.2.5. Cartridge Activity "WFActivitiesArchive" Description.............................................................................................................
3.4. Database to Database Cartridge WFActivitiesArchive 7.00.1.12.33.33...........................................................................................
2
17
20
20
20
23
23
24
24
24
24
24
25
25
26
26
26
26
26
27
27
27
27
28
28
28
28
28
29
29
29
29
29
30
30
30
30
30
31
31
31
32
32
32
32
3. 3.4.1. Cartridge details.............................................................................................................................................................................
3.4.1.1. Cartridge operations...................................................................................................................................................................
3.4.1.2. Cartridge-specific data movement key warnings.......................................................................................................................
3.4.1.3. Parameters used in the Source Model and Cartridge................................................................................................................
3.4.1.4. Rules in Cartridge.......................................................................................................................................................................
3.5. Database to Database Cartridge WFActivitiesReload 7.00.1.12.33.33............................................................................................
3.5.1. Cartridge details.............................................................................................................................................................................
3.5.1.1. Cartridge operations...................................................................................................................................................................
3.5.1.2. Cartridge-specific data movement key warnings.......................................................................................................................
3.5.1.3. Data Sources...............................................................................................................................................................................
3.5.1.4. Parameters used in the Source Model and Cartridge................................................................................................................
3.5.1.5. Rules in Cartridge.......................................................................................................................................................................
3.6. Database to Database Cartridge WFItemsArchive 7.00.1.12.33.33.................................................................................................
3.6.1. Cartridge details.............................................................................................................................................................................
3.6.1.1. Cartridge operations...................................................................................................................................................................
3.6.1.2. Cartridge-specific data movement key warnings.......................................................................................................................
3.6.1.3. Parameters used in the Source Model and Cartridge................................................................................................................
3.6.1.4. Rules in Cartridge.......................................................................................................................................................................
3.7. Database to Database Cartridge WFItemsReload 7.00.1.12.33.33..................................................................................................
3.7.1. Cartridge details.............................................................................................................................................................................
3.7.1.1. Cartridge operations...................................................................................................................................................................
3.7.1.2. Cartridge-specific data movement key warnings.......................................................................................................................
3.7.1.3. Data Sources...............................................................................................................................................................................
3.7.1.4. Parameters used in the Source Model and Cartridge................................................................................................................
3.7.1.5. Rules in Cartridge.......................................................................................................................................................................
3.8. Database to Database Cartridge WFLocalRolesArchive 7.00.1.12.33.33........................................................................................
3.8.1. Cartridge details.............................................................................................................................................................................
3.8.1.1. Cartridge operations...................................................................................................................................................................
3.8.1.2. Cartridge-specific data movement key warnings.......................................................................................................................
3.8.1.3. Parameters used in the Source Model and Cartridge................................................................................................................
3.8.1.4. Rules in Cartridge.......................................................................................................................................................................
3.9. Database to Database Cartridge WFLocalRolesReload 7.00.1.12.33.33.........................................................................................
3.9.1. Cartridge details.............................................................................................................................................................................
3.9.1.1. Cartridge operations...................................................................................................................................................................
3.9.1.2. Cartridge-specific data movement key warnings.......................................................................................................................
3.9.1.3. Data Sources...............................................................................................................................................................................
3.9.1.4. Rules in Cartridge.......................................................................................................................................................................
4. Source Models.....................................................................................................................................................................................
4.1. Source Model WorkflowActivities.................................................................................................................................................
4.1.1. ER Diagram...................................................................................................................................................................................
4.1.2. Table use List.................................................................................................................................................................................
4.1.2.1. Table use WF_ACTIVITIES......................................................................................................................................................
4.1.2.2. Table use WF_ACTIVITIES_TL...............................................................................................................................................
4.1.2.3. Table use WF_ACTIVITY_ATTRIBUTES..............................................................................................................................
4.1.2.4. Table use WF_ACTIVITY_ATTRIBUTES_TL.......................................................................................................................
4.1.2.5. Table use WF_PROCESS_ACTIVITIES..................................................................................................................................
4.1.2.6. Table use WF_ACTIVITY_ATTR_VALUES..........................................................................................................................
4.1.2.7. Table use WF_ACTIVITY_TRANSITIONS_1........................................................................................................................
4.1.2.8. Table use WF_ACTIVITY_TRANSITIONS_2........................................................................................................................
4.2. Source Model WorkflowItems........................................................................................................................................................
32
32
32
33
33
33
33
33
33
33
34
34
34
34
34
35
35
35
35
35
35
36
36
36
36
36
37
37
37
37
37
38
38
38
38
38
38
40
40
40
40
40
42
42
43
43
44
44
45
45
4. 4.2.1. ER Diagram...................................................................................................................................................................................
4.2.2. Table use List.................................................................................................................................................................................
4.2.2.1. Table use WF_ITEMS................................................................................................................................................................
4.2.2.2. Table use WF_ITEM_ACTIVITY_STATUSES.......................................................................................................................
4.2.2.3. Table use WF_NOTIFICATIONS............................................................................................................................................
4.2.2.4. Table use WF_COMMENTS....................................................................................................................................................
4.2.2.5. Table use WF_DIG_SIGS..........................................................................................................................................................
4.2.2.6. Table use WF_NOTIFICATION_ATTRIBUTES_V..............................................................................................................
4.2.2.7. Table use WF_ITEM_ACTIVITY_STATUSES_H..................................................................................................................
4.2.2.8. Table use WF_NOTIFICATIONS_2........................................................................................................................................
4.2.2.9. Table use WF_COMMENTS_2................................................................................................................................................
4.2.2.10. Table use WF_DIG_SIGS_2....................................................................................................................................................
4.2.2.11. Table use WF_NOTIFICATION_ATTRIBUTES_V_2........................................................................................................
4.2.2.12. Table use WF_ITEM_ATTRIBUTE_VALUES_V.................................................................................................................
4.3. Source Model WorkflowLocalRoles...............................................................................................................................................
4.3.1. ER Diagram...................................................................................................................................................................................
4.3.2. Table use List.................................................................................................................................................................................
4.3.2.1. Table use WF_LOCAL_ROLES................................................................................................................................................
4.3.2.2. Table use WF_LOCAL_USER_ROLES....................................................................................................................................
4.3.2.3. Table use WF_LOCAL_USERS................................................................................................................................................
4.3.2.4. Table use WF_LOCAL_USER_ROLES_2................................................................................................................................
4.3.2.5. Table use WF_USER_ROLE_ASSIGNMENTS.......................................................................................................................
4.3.2.6. Table use WF_USER_ROLE_ASSIGNMENTS_2...................................................................................................................
46
46
46
48
48
49
50
50
51
51
52
53
53
54
54
54
55
55
57
58
59
61
62
6. 3
Project Info
Annotation Patch Compatibility:
Version - Patch
12.1.3 - R12.FND.B.3
This project is used to archive/reload data for Oracle Workflow module.
Oracle Workflow delivers a complete workflow management system
that supports business process based integration. Its technology enables
modeling, automation, and continuous improvement of business
processes, routing information of any type according to user–defined
business rules. Oracle Workflow lets you define and continuously improve your
business processes using a drag–and–drop process designer. The Ebiz appspack is
designed to model this data for archive/reload processes.
Ebiz Appspack Solution – for Oracle Workflow R12
Introduction to the WF Module
Oracle Workflow 11i has standard purge program ‘Purge Obsolete Workflow Runtime Data’. This
request is submitted through ‘System Administrator’ responsibility. This concurrent program has
pl/sql code (WF_PURGE. TotalConcurrent) as executable
Following is the execution pattern for WF code
WF_PURGE.TotalConcurent calls
Wf_Purge.Total
wf_purge.items
wf_purge.activities
Wf_Purge.Directory
WF_PURGE.ITEMS deletes following WF managed tables:
1. WF_COMMENTS
2. WF_ITEM_ACTIVITY_STATUSES
3. WF_ITEM_ACTIVITY_STATUSES_H
4. WF_ITEM_ATTRIBUTE_VALUES
5. WF_ITEMS
6. WF_NOTIFICATION_ATTRIBUTES
7. WF_NOTIFICATIONS
8. WF_DIG_SIGS
WF_PURGE.ACTIVITIES deletes following WF managed tables:
9. WF_ACTIVITIES
10. WF_ACTIVITIES_TL
11. WF_ACTIVITY_ATTR_VALUES
12. WF_ACTIVITY_ATTRIBUTES
13. WF_ACTIVITY_ATTRIBUTES_TL
14. WF_ACTIVITY_TRANSITIONS
15. WF_PROCESS_ACTIVITIES
WF_PURGE.DIRECTORY deletes following WF managed tables:
16. WF_LOCAL_ROLES
17. WF_LOCAL_USERS
18. WF_LOCAL_USER_ROLES
19. WF_USER_ROLE_ASSIGNMENTS
Following is the detail of model design:
Sr. No Standard Code Model Name
01 WF_PURGE.ITEMS WorkflowItems
02 WF_PURGE.ACTIVITIES WorkflowActivities
03 WF_PURGE.DIRECTORY WorkflowLocalRoles
We have an additional parameter - prCoreWFOnly here which has values Yes or No, this determines
if the Activities Model will be archived or not.
This WF module has existing open issue where we cannot add following managed tables due to
designer constraint of using nested UDTs (user-defined-column) for WF_EVENT_T. We are
7. 4
Project Info
tracking it via Defect - QCCR2C13882. The ADM team has taken it as an Enhancement for their 6.4
Release. However, Ebiz Appspack has gone ahead to design the Archive/Reload model and Cartridges
for Oracle Workflow 11i with some workarounds for the time being. These will be removed to a more
generic solution once we have the ADM Enhancement ready in their 6.4 Release. Tables having UDTs
are -
WF_ITEM_ATTRIBUTE_VALUES
WF_NOTIFICATION_ATTRIBUTES
Before the deployment of the WF module add these grants as -
grant all on APPLSYS.wf_activities to <interface schema>;
grant all on APPLSYS.wf_process_activities to <interface schema>;
grant all on APPLSYS.wf_item_types to <interface schema>;
grant all on APPLSYS.WF_ITEMS to <interface schema>;
Known Open Issue in WF and Workaround explained
This document intends to explain the workaround required to get the Ebiz Appspack for Oracle
workflow working in sequential step by step manner after downloading the latest build of Workflow
from Release page.
Step 1 : Modify the OLTP DB to add 2 new Views
Since we cannot model these 2 tables containing the UDTs in our designer at present we need to create
corresponding views for these tables as below in OLTP DB :
CREATE OR REPLACE VIEW "APPLSYS"."WF_NOTIFICATION_ATTRIBUTES_V"
( "NOTIFICATION_ID" ,
"NAME" ,
"TEXT_VALUE" ,
"NUMBER_VALUE" ,
"DATE_VALUE" ,
"SECURITY_GROUP_ID"
)
AS select NOTIFICATION_ID, NAME, TEXT_VALUE, NUMBER_VALUE, DATE_VALUE,
SECURITY_GROUP_ID
from "APPLSYS"."WF_NOTIFICATION_ATTRIBUTES" ;
CREATE OR REPLACE VIEW "APPLSYS"."WF_ITEM_ATTRIBUTE_VALUES_V"
("ITEM_TYPE", "ITEM_KEY", "NAME", "TEXT_VALUE", "NUMBER_VALUE",
"DATE_VALUE", "SECURITY_GROUP_ID")
AS
SELECT ITEM_TYPE,
ITEM_KEY,
NAME,
TEXT_VALUE,
NUMBER_VALUE,
DATE_VALUE,
SECURITY_GROUP_ID
FROM "APPLSYS"."WF_ITEM_ATTRIBUTE_VALUES";
Step 2 : Open the Designer to check if model is valid
After creating the 2 views above, please open the Designer 6.3, against your OLTP0.2 version). Check
if your model ‘WorkflowItems’ is valid ie. None of the managed tables shown are pink in colour.
8. 5
Project Info
Step 3 : Manually creating UDTs in the HISTORY DB
a) Create the APPS schema manually by logging into the HIST DB as system/manager :
create user apps identified by apps;
and grant this user privileges by this SQL :
grant resource to apps;
b) After this next step is to create the nested levels of the UDT (User Defined Type) in the HIST DB
under APPS Schema manually as we still don’t have this support from ADM.
Login to HIST DB as apps/apps before running these SQLs. UDTS need to be created in this sequence
only – ORDER OF UDT Creation in HIST DB - APPS SCHEMA
TYPE WF_PARAMETER_T
TYPE BODY WF_PARAMETER_T
TYPE WF_PARAMETER_LIST_T
TYPE WF_AGENT_T
TYPE BODY WF_AGENT_T
TYPE WF_EVENT_T
TYPE BODY WF_EVENT_T
SQL Statements to create these are as follows :
b.1)
create or replace
TYPE "WF_PARAMETER_T" as object
(
NAME VARCHAR2(30),
VALUE VARCHAR2(2000),
MEMBER FUNCTION getName return varchar2,
MEMBER FUNCTION getValue return varchar2,
MEMBER PROCEDURE setName (pName in varchar2),
MEMBER PROCEDURE setValue(pValue in varchar2)
);
b.2)
create or replace
type body WF_PARAMETER_T as
MEMBER FUNCTION getName return varchar2 is
begin
return name;
end getName;
MEMBER FUNCTION getValue return varchar2 is
begin
return value;
9. 6
Project Info
end getValue;
MEMBER PROCEDURE setName(pName in varchar2) is
begin
name := pName;
end setName;
MEMBER PROCEDURE setValue(pValue in varchar2) is
begin
value := pValue;
end setValue;
end;
b.3)
create or replace
TYPE "WF_PARAMETER_LIST_T" is VARRAY(100) OF WF_PARAMETER_T
b.4)
create or replace
TYPE "WF_AGENT_T" as object
(
NAME VARCHAR2(30),
SYSTEM VARCHAR2(30),
MEMBER FUNCTION getName return varchar2,
MEMBER FUNCTION getSystem return varchar2,
MEMBER PROCEDURE setName (pName in varchar2),
MEMBER PROCEDURE setSystem(pSystem in varchar2)
);
b.5)
create or replace
type body WF_AGENT_T as
MEMBER FUNCTION getName return varchar2 is
begin
return name;
end getName;
MEMBER FUNCTION getSystem return varchar2 is
begin
return system;
10. 7
Project Info
end getSystem;
MEMBER PROCEDURE setName(pName in varchar2) is
begin
name := upper(pName);
end setName;
MEMBER PROCEDURE setSystem(pSystem in varchar2) is
begin
system := upper(pSystem);
end setSystem;
end;
b.6)
create or replace
TYPE "WF_EVENT_T" as object
(
PRIORITY NUMBER,
SEND_DATE DATE,
RECEIVE_DATE DATE,
CORRELATION_ID VARCHAR2(240),
PARAMETER_LIST WF_PARAMETER_LIST_T,
EVENT_NAME VARCHAR2(240),
EVENT_KEY VARCHAR2(240),
EVENT_DATA CLOB,
FROM_AGENT WF_AGENT_T,
TO_AGENT WF_AGENT_T,
ERROR_SUBSCRIPTION RAW(16),
ERROR_MESSAGE VARCHAR2(4000),
ERROR_STACK VARCHAR2(4000),
STATIC PROCEDURE initialize(new_wf_event_t IN OUT wf_event_t),
MEMBER FUNCTION getFromAgent return wf_agent_t,
MEMBER FUNCTION getToAgent return wf_agent_t,
MEMBER FUNCTION getPriority return number,
MEMBER FUNCTION getSendDate return date,
MEMBER FUNCTION getReceiveDate return date,
MEMBER FUNCTION getCorrelationID return varchar2,
MEMBER FUNCTION getParameterList return wf_parameter_list_t,
MEMBER FUNCTION getEventName return varchar2,
MEMBER FUNCTION getEventKey return varchar2,
MEMBER FUNCTION getEventData return clob,
MEMBER FUNCTION getErrorSubscription return raw,
MEMBER FUNCTION getErrorMessage return varchar2,
MEMBER FUNCTION getErrorStack return varchar2,
MEMBER PROCEDURE setFromAgent (pFromAgent in wf_agent_t),
MEMBER PROCEDURE setToAgent (pToAgent in wf_agent_t),
MEMBER PROCEDURE setPriority (pPriority in number),
MEMBER PROCEDURE setSendDate (pSendDate in date default sysdate),
MEMBER PROCEDURE setReceiveDate (pReceiveDate in date default sysdate),
MEMBER PROCEDURE setCorrelationID (pCorrelationID in varchar2),
MEMBER PROCEDURE setParameterList (pParameterList in wf_parameter_list_t),
MEMBER PROCEDURE setEventName (pEventName in varchar2),
MEMBER PROCEDURE setEventKey (pEventKey in varchar2),
MEMBER PROCEDURE setEventData (pEventData in clob),
MEMBER PROCEDURE setErrorSubscription(pErrorSubscription in raw),
MEMBER PROCEDURE setErrorMessage (pErrorMessage in varchar2),
11. 8
Project Info
MEMBER PROCEDURE setErrorStack (pErrorStack in varchar2),
MEMBER PROCEDURE Content(pName in varchar2,
pKey in varchar2,
pData in clob),
MEMBER PROCEDURE Address(pOutAgent in wf_agent_t,
pToAgent in wf_agent_t,
pPriority in number,
pSendDate in date),
MEMBER PROCEDURE AddParameterToList(pName in varchar2,
pValue in varchar2),
MEMBER FUNCTION GetValueForParameter(pName in varchar2) return varchar2
);
b.7)
create or replace
type body WF_EVENT_T as
STATIC PROCEDURE initialize(new_wf_event_t IN OUT wf_event_t) is
begin
new_wf_event_t := wf_event_t(0, -- priority
null, -- send_date
null, -- receive_date
null, -- correlation_id
null, -- parameter_list
null, -- event_name
null, -- event_key
empty_clob(), -- event_data
null, -- from_agent
null, -- to_agent
null, -- error_subscription
null, -- error_message
null); -- error_stack
end initialize;
MEMBER FUNCTION getFromAgent return wf_agent_t is
begin
return From_Agent;
end getFromAgent;
MEMBER FUNCTION getToAgent return wf_agent_t is
begin
12. 9
Project Info
return To_Agent;
end getToAgent;
MEMBER FUNCTION getPriority return number is
begin
return Priority;
end getPriority;
MEMBER FUNCTION getSendDate return date is
begin
return Send_Date;
end getSendDate;
MEMBER FUNCTION getReceiveDate return date is
begin
return Receive_Date;
end getReceiveDate;
MEMBER FUNCTION getCorrelationID return varchar2 is
begin
return Correlation_ID;
end getCorrelationID;
MEMBER FUNCTION getParameterList return wf_parameter_list_t is
begin
return Parameter_List;
end getParameterList;
MEMBER FUNCTION getEventName return varchar2 is
begin
return Event_Name;
end getEventName;
MEMBER FUNCTION getEventKey return varchar2 is
begin
return Event_Key;
13. 10
Project Info
end getEventKey;
MEMBER FUNCTION getEventData return clob is
begin
return Event_Data;
end getEventData;
MEMBER FUNCTION getErrorSubscription return raw is
begin
return error_subscription;
end getErrorSubscription;
MEMBER FUNCTION getErrorMessage return varchar2 is
begin
return error_message;
end getErrorMessage;
MEMBER FUNCTION getErrorStack return varchar2 is
begin
return error_stack;
end getErrorStack;
MEMBER PROCEDURE setFromAgent(pFromAgent in wf_agent_t) is
begin
From_Agent := pFromAgent;
end setFromAgent;
MEMBER PROCEDURE setToAgent(pToAgent in wf_agent_t) is
begin
To_Agent := pToAgent;
end setToAgent;
MEMBER PROCEDURE setPriority(pPriority in number) is
begin
Priority := pPriority;
14. 11
Project Info
end setPriority;
MEMBER PROCEDURE setSendDate(pSendDate in date default sysdate) is
begin
Send_Date := pSendDate;
end setSendDate;
MEMBER PROCEDURE setReceiveDate(pReceiveDate in date default sysdate) is
begin
Receive_Date := pReceiveDate;
end setReceiveDate;
MEMBER PROCEDURE setCorrelationID(pCorrelationID in varchar2) is
begin
Correlation_ID := pCorrelationID;
end setCorrelationID;
MEMBER PROCEDURE setParameterList(pParameterList in wf_parameter_list_t) is
begin
Parameter_List := pParameterList;
end setParameterList;
MEMBER PROCEDURE setEventName(pEventName in varchar2) is
begin
Event_Name := pEventName;
end setEventName;
MEMBER PROCEDURE setEventKey(pEventKey in varchar2) is
begin
Event_Key := pEventKey;
end setEventKey;
MEMBER PROCEDURE setEventData(pEventData in clob) is
begin
Event_Data := pEventData;
end setEventData;
15. 12
Project Info
MEMBER PROCEDURE setErrorSubscription(pErrorSubscription in raw) is
begin
error_subscription := pErrorSubscription;
end setErrorSubscription;
MEMBER PROCEDURE setErrorMessage(pErrorMessage in varchar2) is
begin
error_message := pErrorMessage;
end setErrorMessage;
MEMBER PROCEDURE setErrorStack(pErrorStack in varchar2) is
begin
error_stack := pErrorStack;
end setErrorStack;
MEMBER PROCEDURE Content(pName in varchar2,
pKey in varchar2,
pData in clob) is
begin
self.setEventName(pName);
self.setEventKey(pKey);
self.setEventData(pData);
end Content;
MEMBER PROCEDURE Address(pOutAgent in wf_agent_t,
pToAgent in wf_agent_t,
pPriority in number,
pSendDate in date) is
begin
self.setFromAgent(pOutAgent);
self.setToAgent(pToAgent);
self.setPriority(pPriority);
self.setSendDate(pSendDate);
end Address;
16. 13
Project Info
-- This method shares the same logic as WF_EVENT.AddParameterToList
-- Before we consolidate this method to single place, any change to
-- this method has to be replicated to WF_EVENT.AddParameterToList.
MEMBER PROCEDURE AddParameterToList(pName in varchar2,
pValue in varchar2) is
myList wf_parameter_list_t;
j number;
found boolean := FALSE;
begin
myList := self.getParameterList();
if (myList is null) then
myList := wf_parameter_list_t(null);
myList(1) := wf_parameter_t(pName, pValue);
else
-- parameter list exists --
-- if parameter already exists in the list, just reset its value --
j := 1;
while (NOT found AND j <= myList.COUNT ) LOOP
-- YOHUANG 3566991, make sure myList(j) is not null
-- to avoid 36025 ora error
IF (myList(j) IS NOT NULL) THEN
if (myList(j).getName() = pName) then
found := TRUE;
myList(j).setValue(pValue);
END if;
END IF;
j := j+1;
end loop;
-- otherwise, add new parameter to list --
if (NOT found) then
17. 14
Project Info
myList.EXTEND;
j := myList.COUNT;
myList(j) := wf_parameter_t(pName, pValue);
end if;
end if;
self.setParameterList(myList);
end AddParameterToList;
MEMBER FUNCTION getValueForParameter(pName in varchar2) return varchar2 is
myList wf_parameter_list_t;
pos number := 1;
begin
myList := self.getParameterList();
if (myList is null) then
return NULL;
end if;
pos := myList.LAST;
--while(pos <= myList.COUNT) loop
while(pos is not null) loop
if (myList(pos).getName() = pName) then
return myList(pos).getValue();
end if;
--pos := pos + 1;
pos := myList.PRIOR(pos);
end loop;
return NULL;
end getValueForParameter;
end;
c) COMMIT;
Step 4 : Start the Deployment of the Business Flow Files
After step 3, start the deployment of the EBSIntegration Layer (latest for 6.3) and then the 3 business
flows for WorkFlow –
18. 15
Project Info
WorkflowArchive
WorkflowUndo
WorkflowReload
Step 5 : Modify the DB Objects in the OLTP and HIST DB
Once deployment is done successfully in step 4, we need to modify the 2 views we created in
APPLSYS Schema OLTP DB earlier and the corresponding 2 tables that got created in the
APPLSYS_HIST Schema of the HIST DB. Following SQL Commands will do the same :
5.1) Login as apps/apps in OLTP DB and run the SQL :
create or replace view APPLSYS.WF_NOTIFICATION_ATTRIBUTES_V
("NOTIFICATION_ID" ,
"NAME" ,
"TEXT_VALUE" ,
"NUMBER_VALUE" ,
"DATE_VALUE" ,
"EVENT_VALUE",
"SECURITY_GROUP_ID"
) as select NOTIFICATION_ID, NAME, TEXT_VALUE, NUMBER_VALUE,
DATE_VALUE,EVENT_VALUE, SECURITY_GROUP_ID
from "APPLSYS"."WF_NOTIFICATION_ATTRIBUTES"
CREATE OR REPLACE VIEW "APPLSYS"."WF_ITEM_ATTRIBUTE_VALUES_V"
("ITEM_TYPE", "ITEM_KEY", "NAME", "TEXT_VALUE", "NUMBER_VALUE",
"DATE_VALUE","EVENT_VALUE", "SECURITY_GROUP_ID")
AS
SELECT ITEM_TYPE,
ITEM_KEY,
NAME,
TEXT_VALUE,
NUMBER_VALUE,
DATE_VALUE,
EVENT_VALUE,
SECURITY_GROUP_ID
FROM "APPLSYS"."WF_ITEM_ATTRIBUTE_VALUES";
5.2) Login as system/manager in HIST DB and run the SQL as :
alter table APPLSYS_HIST.WF_ITEM_ATTRIBUTE_VALUES_V
add EVENT_VALUE WF_EVENT_T;
alter table APPLSYS_HIST.WF_NOTIFICATION_ATTRIBUTES_V
add EVENT_VALUE WF_EVENT_T;
Step 6 : Launch the Archive / Reload / Undo Jobs
Once we have completed step 5 and committed all the SQLs, we can start launching the jobs like we
do normally for other modules. However here we need to modify a few tables using ALTER
Statements as below when we get errors.
a) For this error seen in Archive job launch –
Different number of columns in source (APPLSYS.WF_NOTIFICATION_ATTRIBUTES_V) and
destination (OBT_IF.WF_NOTIFICATION_ATTRIBUTES__IF) tables
Login to OLTP DB as OBT_IF/obt and run SQL as –
19. 16
Project Info
alter table OBT_IF.WF_NOTIFICATION_ATTRIBUTES__IF
add "EVENT_VALUE" APPS.WF_EVENT_T;
Recover the Archive job after this.
b) For this error in Archive job –
Different number of columns in source (APPLSYS.WF_NOTIFICATION_ATTRIBUTES_V) and
destination (OBT_RELOC.WF_NOTIFICATION_ATTRIBUTES__RL) tables
Login to HIST DB as OBT_ RELOC /obt and run SQL as –
alter table OBT_RELOC.WF_NOTIFICATION_ATTRIBUTES__RL
add "EVENT_VALUE" APPS.WF_EVENT_T;
Recover the Archive job after this.
c) For this error in Archive job –
Different number of columns in source (APPLSYS.WF_ITEM_ATTRIBUTE_VALUES_V) and
destination (OBT_IF.WF_ITEM_ATTRIBUTE_VALUES_V_IF) tables
Login to OLTP DB as OBT_IF/obt and run SQL as –
alter table OBT_IF.WF_ITEM_ATTRIBUTE_VALUES_V_IF
add "EVENT_VALUE" APPS.WF_EVENT_T;
Recover the Archive job after this.
d) For this error in Archive job –
Different number of columns in source (APPLSYS.WF_ITEM_ATTRIBUTE_VALUES_V) and
destination (OBT_RELOC.WF_ITEM_ATTRIBUTE_VALUES_V_RL) tables
Login to HIST DB as OBT_ RELOC /obt and run SQL as –
alter table OBT_RELOC.WF_ITEM_ATTRIBUTE_VALUES_V_RL
add "EVENT_VALUE" APPS.WF_EVENT_T;
Recover the Archive job after this.
20. 17
2. All Parameters in Project
Parameter: pcPauseAfterSelectionWF
Label Workflow : Pause after Selection?
UID 3DA4-BDDB-A225-9DEA
Parameter Type Configuration
Data Type STRING
Length 30
Default N
Validation <None>
Static List of Values Id Label
Y Yes
N No
Parameter Annotation This configuration parameter enables pausing the WorkflowArchive business flow
after the selection job has completed for the cartridges Activities, Items and Local
Roles.
Parameter: prCoreWFOnly
Label Core Workflow Only
UID 3DA4-BBE7-3B69-53B8
Parameter Type Runtime
Data Type STRING
Length 30
Default Y
Validation <None>
Static List of Values Id Label
Y Yes
N No
Parameter Annotation Decide if only Workflow and ECX data associated to a Work Item or everything
should be purged (Set to Y if data associated to Work Item alone is to be purged.
Default is everything)
Parameter: prCutOffDate
Label Cut Off Date
UID E3E9-F873-2909-8BCE
Parameter Type Runtime
Data Type DATE
Length
Default
Validation Mandatory
List of Values <None>
Parameter: prItemKey
Label Item Key
UID DC47-E28E-E1F0-17FE
Parameter Type Runtime
Data Type STRING
Length 30
Default
21. 18
Parameter: prItemKey
Validation Mandatory
List of Values <None>
Parameter Annotation Classic Parameter: ITEM KEY
This paramete accepts Item key to process.
Parameter: prItemType
Label Item Type
UID EA47-4820-492C-886A
Parameter Type Runtime
Data Type STRING
Length 30
Default
Validation Mandatory
Dynamic List Definition
DB Connection Annotation
Query Expression
Connection Query
Source ansi SELECT NAME,DISPLAY_NAME
FROM APPS.WF_ITEM_TYPES_VL
ORDER BY DISPLAY_NAME
Parameter Annotation Classic Parameter: Item Type
This paramete accepts Item type to process.
Parameter: prPersistence
Label Persistence
UID 17AA-9B6B-065F-54E5
Parameter Type Runtime
Data Type STRING
Length 100
Default TEMP
Validation Mandatory
Dynamic List Definition
DB Connection Annotation
Query Expression
Connection Query
Source ansi SELECT LOOKUP_CODE,MEANING||'-
'||DESCRIPTION
FROM apps.FND_LOOKUPS
WHERE LOOKUP_TYPE =
'FND_WF_PERSISTENCE_TYPE'
ORDER BY MEANING
Parameter Annotation Classic Parameter: Persistence Type
This parameter accepts Persistence Type of Items (Temporary or Permanent)
Parameter: prReloadFromDate
Label From Date
UID E3E9-F873-2909-8BCE
Parameter Type Runtime
Data Type DATE
Length
Default
Validation Mandatory
22. 19
Parameter: prReloadFromDate
List of Values <None>
Parameter: prReloadToDate
Label To Date
UID E3E9-F873-2909-8BCE
Parameter Type Runtime
Data Type DATE
Length
Default
Validation Mandatory
List of Values <None>
23. 20
3. Project Business Flows and Cartridges
3.1. Business Flow WorkflowArchive 7.00.1.12.33.33
3.1.1. Business Flow Description
Business Flow Info
Version 7.00.1.12.33.33
UID 29C2-4BAA-0816-25E2
Annotation Business Flow of Workflow module for Oracle Apps Version: 12.1.2
Purge Obsolete Workflow Runtime Data is used to archive:
Obsolete runtime data for completed items and processes
Obsolete activity versions
This Business Flow Archives/Purges Workflow items,activities and processes. It accepts following
parameters:
1. ITEM KEY
2. ITEM TYPE
3. AGE
4. PERSISTENCE
5. DAYS_OLD (install time parameter)
DAYS_OLD parameter is install time parameter whose validation is performed to ensure that the age
entered in the form is at least 60 days older than the current SYSDATE. The validation compares the
age entered in the parameters window to the SYSDATE.
Only if the age is older than SYSDATE – Days Old, the purge program is run.
This business flow executes following Cartidges:
1. CR_ADD_WF_ITEMS
2. CR_ADD_WF_ACT
3. CR_ADD_WF_LOCAL_RLS
Prerequisite to run this business flow for Archive/Purge:
1. All workflow items, activities and processes must be completed/ended before the workflow data can
be archived.
2. The age of the Workflow data must be older than SYSDATE minus the minimum age of data
archived. The minimum age of data archived is a parameter specified as an install parameter.
25. 22
Business Flow Info
e.printStackTrace();
throw new IllegalStateException(println(e.getMessage()));
}
def handleLibFileNew(fileName,
writetoFS, pathtoWrite,
execute, DBConntoexec,
replaceusers, appsUser, AAUser, INTFUser,apAAUser)
{
try
{
InputStream is = getClass().getResourceAsStream(fileName);
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
String line;
String sqltext = "";
while ((line = br.readLine()) != null)
{
sqltext = sqltext + line + "n";
}
br.close();
isr.close();
is.close();
if (replaceusers)
{
sqltext = sqltext.replaceAll("&package_owner",appsUser);
sqltext = sqltext.replaceAll("&AA_USER",AAUser);
sqltext = sqltext.replaceAll("&INTF_USER",INTFUser);
sqltext = sqltext.replaceAll("&AP_AA_OWNER",apAAUser)
}
if (writetoFS)
{
String compFileName = pathtoWrite + "/" + fileName
BufferedWriter wr = new BufferedWriter(new FileWriter(compFileName))
wr.writeLine(sqltext);
if ((fileName.toLowerCase()).endsWith("_ps.sql") ||
(fileName.toLowerCase()).endsWith("_pb.sql"))
{
wr.writeLine(" / ");
}
wr.close();
}
if (execute)
{
DBConntoexec.execute(sqltext);
}
}
catch (Exception e)
{
println("Exception occured in handleLibFile() for fileName: "+ fileName);
e.printStackTrace();
throw new IllegalStateException(println(e.getMessage()));
}
}
String libPath = PRODUCT_HOME + "/artifacts/" + ENVIRONMENT_NAME + "/businessflow/"
+ BUSINESS_FLOW_NAME + "/lib";
try
{
File libdir = new File(libPath);
libdir.mkdir();
}
catch (Exception e)
{
println("Exception occured while creating folders: " + libPath );
26. 23
3.1.1.1. Business Flow Diagram
3.1.1.2. Parameters used in Business Flow Actvities (and Model Compatibilities)
Business Flow Info
e.printStackTrace();
throw new IllegalStateException(println(e.getMessage()));
}
println("Create packge for WorkFlow ")
handleLibFileNew("obt_wf_activity_check_ps.sql",
true,libPath,
true,INTF_DB,
false,packageOwner, AAUser, intfOwner,apAAUser);
handleLibFileNew("obt_wf_activity_check_pb.sql",
true,libPath,
true,INTF_DB,
false,packageOwner, AAUser, intfOwner,apAAUser);
if (!(utils.objectExists(INTF_DB,packageOwner,"SYNONYM","OBT_WF_ACTIVITY_CHECK"))
){
String a2 ="""create synonym ${packageOwner}.OBT_WF_ACTIVITY_CHECK for
OBT_WF_ACTIVITY_CHECK """
INTF_DB.execute(a2);
}
ArchiveAccessConfiguration.createSession(" ",ENVIRONMENT_NAME);
ArchiveAccessConfiguration.addObjectOwnerPair(null, packageOwner, null, AAUser, true, null);
ArchiveAccessConfiguration.addObjectOwnerPair(null, fndOwner, null, fndOwner+"_AA", true,
null);
Install annotation Not Applicable
27. 24
3.1.1.3. Order of Parameters for Business Flow Activities
3.1.2. Business Flow Activities
3.1.2.1. Script Activity "ValidateDate" Description
3.1.2.2. Condition Activity "CondnActivities" Description
3.1.2.2.1. Condition Activity "CondnActivities" Diagram
Parameters used
pcPauseAfterSelectionWF,
prCoreWFOnly,
prCutOffDate,
prItemKey,
prItemType,
prPersistence
Parameter Order
prCutOffDate,
prItemKey,
prItemType,
pcPauseAfterSelectionWF,
prCoreWFOnly,
prPersistence
Code
println('Can not purge item before its defined persistence period')
Code
prCoreWFOnly == 'N'
Annotation
This is the condition based on which the Activities model archives. If conition is No, Activities archive will happen.
31. 28
3.1.2.3.4. Interrupt Activity: "Pause"
3.1.2.3.5. Cartridge Activity "WFItemsArchive_2" Description
3.1.2.3.6. Cartridge Activity "WFLocalRolesArchive_2" Description
3.2. Business Flow WorkflowReload 7.00.1.12.33.33
3.2.1. Business Flow Description
Interrupt Activity
Type Pause
Message Job Paused
Condition
pcPauseAfterSelectionWF == 'Y'
Cartridge Activity Info
Method Transactional
Subjobs Archive,
Clean Up
Cartridge reference Cartridge "WFItemsArchive" definition
Cartridge Activity Info
Method Transactional
Subjobs Archive,
Clean Up
Cartridge reference Cartridge "WFLocalRolesArchive" definition
Business Flow Info
Version 7.00.1.12.33.33
UID D4BF-18DC-4938-BF29
Annotation Business Flow of Workflow module for Oracle Apps Version: 12.1.2
This Business Flow reloads workflow items,activities and processes. It accepts following parameters:
1. ITEM KEY
2. ITEM TYPE
3. AGE
4. PERSISTENCE
This business flow executes following Cartidges:
1. CR_RDD_WF_ITEMS
2. CR_RDD_WF_ACT
3. CR_RDD_WF_LOCAL_RLS
Install annotation Not Applicable
32. 29
3.2.1.1. Business Flow Diagram
3.2.1.2. Parameters used in Business Flow Actvities (and Model Compatibilities)
3.2.1.3. Order of Parameters for Business Flow Activities
3.2.2. Business Flow Activities
3.2.2.1. Cartridge Activity "WFItemsReload" Description
Parameters used
prItemKey,
prItemType,
prReloadFromDate,
prReloadToDate
Parameter Order
prItemKey,
prItemType,
prReloadFromDate,
prReloadToDate
Cartridge Activity Info
Method Transactional
Subjobs <All SubJobs>
Cartridge reference Cartridge "WFItemsReload" definition
33. 30
3.2.2.2. Cartridge Activity "WFActivitiesReload" Description
3.2.2.3. Cartridge Activity "WFLocalRolesReload" Description
3.3. Undo Business Flow WorkflowUndo 7.00.1.12.33.33
3.3.1. Undo Business Flow Description
3.3.1.1. Undo Business Flow Diagram
Cartridge Activity Info
Method Transactional
Subjobs <All SubJobs>
Cartridge reference Cartridge "WFActivitiesReload" definition
Cartridge Activity Info
Method Transactional
Subjobs <All SubJobs>
Cartridge reference Cartridge "WFLocalRolesReload" definition
Undo Business Flow Info
Version 7.00.1.12.33.33
Base Business Flow WorkflowArchive
UID CE7C-C4F8-F11B-FADC
34. 31
3.3.2. Undo Business Flow Activities
3.3.2.1. Cartridge Activity "WFLocalRolesArchive_2" Description
3.3.2.2. Cartridge Activity "WFItemsArchive_2" Description
Cartridge Activity Info
Method Undo Database to Database
Subjobs <All SubJobs>
Cartridge reference Cartridge "WFLocalRolesArchive" definition
Cartridge Activity Info
Method Undo Database to Database
Subjobs <All SubJobs>
Cartridge reference Cartridge "WFItemsArchive" definition
35. 32
3.3.2.3. Cartridge Activity "WFLocalRolesArchive" Description
3.3.2.4. Cartridge Activity "WFItemsArchive" Description
3.3.2.5. Cartridge Activity "WFActivitiesArchive" Description
3.4. Database to Database Cartridge WFActivitiesArchive 7.00.1.12.33.33
3.4.1. Cartridge details
3.4.1.1. Cartridge operations
3.4.1.2. Cartridge-specific data movement key warnings
Cartridge Activity Info
Method Undo Database to Database
Subjobs <All SubJobs>
Cartridge reference Cartridge "WFLocalRolesArchive" definition
Cartridge Activity Info
Method Undo Database to Database
Subjobs <All SubJobs>
Cartridge reference Cartridge "WFItemsArchive" definition
Cartridge Activity Info
Method Undo Database to Database
Subjobs <All SubJobs>
Cartridge reference Cartridge "WFActivitiesArchive" definition
Cartridge Info
Source Model reference WorkflowActivities
Version 7.00.1.12.33.33
UID D795-3071-2928-8031
Annotation This cartridge uses model MD_WF_ACTIVITIES for archive/purge of WF module.
Table use name Copy Purge Annotation
WF_ACTIVITIES Yes Yes
WF_ACTIVITIES_TL Yes Yes
WF_ACTIVITY_ATTR_VALUES Yes Yes
WF_ACTIVITY_ATTRIBUTES Yes Yes
WF_ACTIVITY_ATTRIBUTES_TL Yes Yes
WF_ACTIVITY_TRANSITIONS_1 Yes Yes
WF_ACTIVITY_TRANSITIONS_2 Yes Yes
WF_PROCESS_ACTIVITIES Yes Yes
36. 33
3.4.1.3. Parameters used in the Source Model and Cartridge
3.4.1.4. Rules in Cartridge
3.5. Database to Database Cartridge WFActivitiesReload 7.00.1.12.33.33
3.5.1. Cartridge details
3.5.1.1. Cartridge operations
3.5.1.2. Cartridge-specific data movement key warnings
3.5.1.3. Data Sources
Data movement key warnings
Reload could result in duplicate rows. This is because some tables in the cartridge do not have a unique key set or auto-chosen
as the data movement key.
Parameters used
prCutOffDate,
prItemType,
prPersistence
Included Rules Excluded Rules
ItemTypeParam ReloadBetweenDates
isChildRule
Cartridge Info
Source Model reference WorkflowActivities
Version 7.00.1.12.33.33
UID CF3A-E0B6-7D8F-4EEB
Annotation This cartridge uses model MD_WF_ACTIVITIES for reload of WF module.
Table use name Copy Purge Annotation
WF_ACTIVITIES Yes Yes
WF_ACTIVITIES_TL Yes Yes
WF_ACTIVITY_ATTR_VALUES Yes Yes
WF_ACTIVITY_ATTRIBUTES Yes Yes
WF_ACTIVITY_ATTRIBUTES_TL Yes Yes
WF_ACTIVITY_TRANSITIONS_1 Yes Yes
WF_ACTIVITY_TRANSITIONS_2 Yes Yes
WF_PROCESS_ACTIVITIES Yes Yes
Data movement key warnings
Reload could result in duplicate rows. This is because some tables in the cartridge do not have a unique key set or auto-chosen
as the data movement key.
37. 34
3.5.1.4. Parameters used in the Source Model and Cartridge
3.5.1.5. Rules in Cartridge
3.6. Database to Database Cartridge WFItemsArchive 7.00.1.12.33.33
3.6.1. Cartridge details
3.6.1.1. Cartridge operations
Table use name Data Source Annotation
WF_ACTIVITIES History
WF_ACTIVITIES_TL History
WF_ACTIVITY_ATTR_VALUES History
WF_ACTIVITY_ATTRIBUTES History
WF_ACTIVITY_ATTRIBUTES_TL History
WF_ACTIVITY_TRANSITIONS_1 History
WF_ACTIVITY_TRANSITIONS_2 History
WF_PROCESS_ACTIVITIES History
Parameters used
prItemType,
prReloadFromDate,
prReloadToDate
Included Rules Excluded Rules
ItemTypeParam isChildRule
ReloadBetweenDates
Cartridge Info
Source Model reference WorkflowItems
Version 7.00.1.12.33.33
UID 973F-BCBB-8939-5524
Annotation This cartridge uses model MD_WF_ITEMS for archive/purge of WF module.
Table use name Copy Purge Annotation
WF_COMMENTS Yes Yes
WF_COMMENTS_2 Yes Yes
WF_DIG_SIGS Yes Yes
WF_DIG_SIGS_2 Yes Yes
WF_ITEM_ACTIVITY_STATUSES Yes Yes
WF_ITEM_ACTIVITY_STATUSES_H Yes Yes
WF_ITEM_ATTRIBUTE_VALUES_V Yes Yes
WF_ITEMS Yes Yes
WF_NOTIFICATION_ATTRIBUTES_V Yes Yes
WF_NOTIFICATION_ATTRIBUTES_V_2 Yes Yes
WF_NOTIFICATIONS Yes Yes
WF_NOTIFICATIONS_2 Yes Yes
38. 35
3.6.1.2. Cartridge-specific data movement key warnings
3.6.1.3. Parameters used in the Source Model and Cartridge
3.6.1.4. Rules in Cartridge
3.7. Database to Database Cartridge WFItemsReload 7.00.1.12.33.33
3.7.1. Cartridge details
3.7.1.1. Cartridge operations
Data movement key warnings
Reload could result in duplicate rows. This is because some tables in the cartridge do not have a unique key set or auto-chosen
as the data movement key.
Parameters used
prCutOffDate,
prItemKey,
prItemType,
prPersistence
Included Rules Excluded Rules
WfItemParam WfItemsReloadRule
Wit
SelfJoin
Notification
Notification1
Cartridge Info
Source Model reference WorkflowItems
Version 7.00.1.12.33.33
UID ED00-EB15-02D0-C02A
Annotation This cartridge uses model MD_WF_ITEMS for reload of WF module.
Table use name Copy Purge Annotation
WF_COMMENTS Yes Yes
WF_COMMENTS_2 Yes Yes
WF_DIG_SIGS Yes Yes
WF_DIG_SIGS_2 Yes Yes
WF_ITEM_ACTIVITY_STATUSES Yes Yes
WF_ITEM_ACTIVITY_STATUSES_H Yes Yes
WF_ITEM_ATTRIBUTE_VALUES_V Yes Yes
WF_ITEMS Yes Yes
WF_NOTIFICATION_ATTRIBUTES_V Yes Yes
WF_NOTIFICATION_ATTRIBUTES_V_2 Yes Yes
WF_NOTIFICATIONS Yes Yes
39. 36
3.7.1.2. Cartridge-specific data movement key warnings
3.7.1.3. Data Sources
3.7.1.4. Parameters used in the Source Model and Cartridge
3.7.1.5. Rules in Cartridge
3.8. Database to Database Cartridge WFLocalRolesArchive 7.00.1.12.33.33
Table use name Copy Purge Annotation
WF_NOTIFICATIONS_2 Yes Yes
Data movement key warnings
Reload could result in duplicate rows. This is because some tables in the cartridge do not have a unique key set or auto-chosen
as the data movement key.
Table use name Data Source Annotation
WF_COMMENTS History
WF_COMMENTS_2 History
WF_DIG_SIGS History
WF_DIG_SIGS_2 History
WF_ITEM_ACTIVITY_STATUSES History
WF_ITEM_ACTIVITY_STATUSES_H History
WF_ITEM_ATTRIBUTE_VALUES_V History
WF_ITEMS History
WF_NOTIFICATION_ATTRIBUTES_V History
WF_NOTIFICATION_ATTRIBUTES_V_2 History
WF_NOTIFICATIONS History
WF_NOTIFICATIONS_2 History
Parameters used
prItemKey,
prItemType,
prReloadFromDate,
prReloadToDate
Included Rules Excluded Rules
WfItemsReloadRule WfItemParam
Wit
SelfJoin
Notification
Notification1
40. 37
3.8.1. Cartridge details
3.8.1.1. Cartridge operations
3.8.1.2. Cartridge-specific data movement key warnings
3.8.1.3. Parameters used in the Source Model and Cartridge
3.8.1.4. Rules in Cartridge
Cartridge Info
Source Model reference WorkflowLocalRoles
Version 7.00.1.12.33.33
UID A255-F3AE-B723-292D
Annotation This cartridge uses model MD_WF_LOCAL_RLS for archive/purge of WF module.
Table use name Copy Purge Annotation
WF_LOCAL_ROLES Yes Yes
WF_LOCAL_USER_ROLES Yes Yes
WF_LOCAL_USER_ROLES_2 Yes Yes
WF_LOCAL_USERS Yes Yes
WF_USER_ROLE_ASSIGNMENTS Yes Yes
WF_USER_ROLE_ASSIGNMENTS_2 Yes Yes
Data movement key warnings
Reload could result in duplicate rows. This is because some tables in the cartridge do not have a unique key set or auto-chosen
as the data movement key.
Parameters used
prCutOffDate
Included Rules Excluded Rules
WfRoles
RoleRuleSelfJoin
UserFlag1
ExpiredRelation
ExpiredRelationOrigSystem
UserFlag
ExpiredRelation1
ExpiredRelationOrigSystem1
ExpiredRelationRoleAssgn
ExpiredRelationOrigSysRoleAssg
UserFlag2
ExpiredRelationOrigSysRoleAss1
ExpiredRelationRoleAssg1
UserFlag3
41. 38
3.9. Database to Database Cartridge WFLocalRolesReload 7.00.1.12.33.33
3.9.1. Cartridge details
3.9.1.1. Cartridge operations
3.9.1.2. Cartridge-specific data movement key warnings
3.9.1.3. Data Sources
3.9.1.4. Rules in Cartridge
Cartridge Info
Source Model reference WorkflowLocalRoles
Version 7.00.1.12.33.33
UID 5019-6ED6-008F-6967
Annotation This cartridge uses model MD_WF_LOCAL_RLS for reload of WF module.
Table use name Copy Purge Annotation
WF_LOCAL_ROLES Yes Yes
WF_LOCAL_USER_ROLES Yes Yes
WF_LOCAL_USER_ROLES_2 Yes Yes
WF_LOCAL_USERS Yes Yes
WF_USER_ROLE_ASSIGNMENTS Yes Yes
WF_USER_ROLE_ASSIGNMENTS_2 Yes Yes
Data movement key warnings
Reload could result in duplicate rows. This is because some tables in the cartridge do not have a unique key set or auto-chosen
as the data movement key.
Table use name Data Source Annotation
WF_LOCAL_ROLES History
WF_LOCAL_USER_ROLES History
WF_LOCAL_USER_ROLES_2 History
WF_LOCAL_USERS History
WF_USER_ROLE_ASSIGNMENTS History
WF_USER_ROLE_ASSIGNMENTS_2 History
Included Rules Excluded Rules
WfRoles
RoleRuleSelfJoin
UserFlag1
ExpiredRelation
ExpiredRelationOrigSystem
UserFlag
ExpiredRelation1
ExpiredRelationOrigSystem1
ExpiredRelationRoleAssgn
ExpiredRelationOrigSysRoleAssg
42. 39
Included Rules Excluded Rules
UserFlag2
ExpiredRelationOrigSysRoleAss1
ExpiredRelationRoleAssg1
UserFlag3
43. 40
4. Source Models
4.1. Source Model WorkflowActivities
4.1.1. ER Diagram
4.1.2. Table use List
4.1.2.1. Table use WF_ACTIVITIES
Source Model Info
UID A47F-E5AD-EC25-B8D5
Annotation This Model Contains:
Driving Table: APPLSYS.WF_ACTIVITIES
Transaction Tables:
APPLSYS.WF_ACTIVITIES_TL
APPLSYS.WF_ACTIVITY_ATTRIBUTES
APPLSYS.WF_ACTIVITY_ATTRIBUTES_TL
APPLSYS.WF_PROCESS_ACTIVITIES
APPLSYS.WF_ACTIVITY_TRANSITIONS
APPLSYS.WF_ACTIVITY_ATTR_VALUES
WF_ACTIVITIES
Table Name APPLSYS.WF_ACTIVITIES
Table Alias WF_ACTIVITIES
Use Type Transactional (Driving)
44. 41
WF_ACTIVITIES
Annotation Product: FND - Application Object Library
Description: Defines a unit of work that contributes to the accomplishment of a
process.
Data movement key for WF_ACTIVITIES
DM Key name <Row ID>
DM Key Info "WF_ACTIVITIES" is set to have data movement done by row ID.
Rules on WF_ACTIVITIES
Name Attributes Annotation
ItemTypeParam Category:
Analytics: Disabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
WF_ACTIVITIES.ITEM_TYPE = :prItemType
Name Attributes Annotation
isChildRule Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
("WF_ACTIVITIES"."NAME","WF_ACTIVITIES"."BEGIN_DATE","WF_ACTIVITIES"."END_DATE") in
(
select activity_name,begin_date,end_date from
(
select WA.NAME activity_name,WA.BEGIN_DATE begin_date, WA.END_DATE end_date,
obt_wf_activity_check.FindItems(WA.NAME,WA.ITEM_TYPE,WA.BEGIN_DATE,WA.END_DATE) RETURNVAL
from applsys.WF_ACTIVITIES WA
where WA.ITEM_TYPE = :prItemType
and WA.NAME in (select distinct WA.NAME
from applsys.WF_ACTIVITIES WA
where WA.ITEM_TYPE = :prItemType)
and exists
(select null
from applsys.WF_ITEM_TYPES WIT
where WA.END_DATE+nvl(WIT.PERSISTENCE_DAYS,0)<= :prCutOffDate
and WA.ITEM_TYPE = WIT.NAME
and WIT.PERSISTENCE_TYPE = :prPersistence)
order by activity_name,VERSION)
where RETURNVAL = 1)
Name Attributes Annotation
ReloadBetweenDates Category:
Analytics: Disabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
45. 42
4.1.2.2. Table use WF_ACTIVITIES_TL
4.1.2.3. Table use WF_ACTIVITY_ATTRIBUTES
Rules on WF_ACTIVITIES
Query
"WF_ACTIVITIES"."END_DATE" between :prReloadFromDate and :prReloadToDate
WF_ACTIVITIES_TL
Table Name APPLSYS.WF_ACTIVITIES_TL
Table Alias WF_ACTIVITIES_TL
Use Type Transactional (foreign key is on this table)
Annotation Product: FND - Application Object Library
Description: Translations for WF_ACTIVITIES
Relation between WF_ACTIVITIES_TL and parent WF_ACTIVITIES
Parent Table Name APPLSYS.WF_ACTIVITIES
Parent Table Alias WF_ACTIVITIES
Unique Key Name WF_ACTIVITIES_PK
Unique Key Type Physical
Foreign Key Name WF_ACTIVITIES_WF_ACTIVITIES_TL_FK
Foreign Key Type Virtual
UK Columns (UK is on parent) FK Columns
ITEM_TYPE ITEM_TYPE
NAME NAME
VERSION VERSION
Data movement key for WF_ACTIVITIES_TL
DM Key name <Row ID>
DM Key Info "WF_ACTIVITIES_TL" is set to have data movement done by row ID.
WF_ACTIVITY_ATTRIBUTES
Table Name APPLSYS.WF_ACTIVITY_ATTRIBUTES
Table Alias WF_ACTIVITY_ATTRIBUTES
Use Type Transactional (foreign key is on this table)
Annotation Product: FND - Application Object Library
Description: Defines attributes for activities
Relation between WF_ACTIVITY_ATTRIBUTES and parent WF_ACTIVITIES
Parent Table Name APPLSYS.WF_ACTIVITIES
Parent Table Alias WF_ACTIVITIES
Unique Key Name WF_ACTIVITIES_PK
Unique Key Type Physical
Foreign Key Name WF_ACTIVITIES_WF_ACTIVITY_ATTRIBUTES_FK
Foreign Key Type Virtual
46. 43
4.1.2.4. Table use WF_ACTIVITY_ATTRIBUTES_TL
4.1.2.5. Table use WF_PROCESS_ACTIVITIES
Relation between WF_ACTIVITY_ATTRIBUTES and parent WF_ACTIVITIES
UK Columns (UK is on parent) FK Columns
ITEM_TYPE ACTIVITY_ITEM_TYPE
NAME ACTIVITY_NAME
VERSION ACTIVITY_VERSION
Data movement key for WF_ACTIVITY_ATTRIBUTES
DM Key name <Row ID>
DM Key Info "WF_ACTIVITY_ATTRIBUTES" is set to have data movement done by row ID.
WF_ACTIVITY_ATTRIBUTES_TL
Table Name APPLSYS.WF_ACTIVITY_ATTRIBUTES_TL
Table Alias WF_ACTIVITY_ATTRIBUTES_TL
Use Type Transactional (foreign key is on this table)
Annotation Product: FND - Application Object Library
Description: Translations for WF_ACTIVITY_ATTRIBUTES
Relation between WF_ACTIVITY_ATTRIBUTES_TL and parent WF_ACTIVITIES
Parent Table Name APPLSYS.WF_ACTIVITIES
Parent Table Alias WF_ACTIVITIES
Unique Key Name WF_ACTIVITIES_PK
Unique Key Type Physical
Foreign Key Name WF_ACTIVITIES_WF_ACTIVITY_ATTRIBUTES_TL_FK
Foreign Key Type Virtual
UK Columns (UK is on parent) FK Columns
ITEM_TYPE ACTIVITY_ITEM_TYPE
NAME ACTIVITY_NAME
VERSION ACTIVITY_VERSION
Data movement key for WF_ACTIVITY_ATTRIBUTES_TL
DM Key name <Row ID>
DM Key Info "WF_ACTIVITY_ATTRIBUTES_TL" is set to have data movement done by row
ID.
WF_PROCESS_ACTIVITIES
Table Name APPLSYS.WF_PROCESS_ACTIVITIES
Table Alias WPA
Use Type Transactional (foreign key is on this table)
Relation between WF_PROCESS_ACTIVITIES and parent WF_ACTIVITIES
Parent Table Name APPLSYS.WF_ACTIVITIES
Parent Table Alias WF_ACTIVITIES
47. 44
4.1.2.6. Table use WF_ACTIVITY_ATTR_VALUES
4.1.2.7. Table use WF_ACTIVITY_TRANSITIONS_1
Relation between WF_PROCESS_ACTIVITIES and parent WF_ACTIVITIES
Unique Key Name WF_ACTIVITIES_PK
Unique Key Type Physical
Foreign Key Name WF_ACTIVITIES_WF_PROCESS_ACTIVITIES_FK
Foreign Key Type Virtual
UK Columns (UK is on parent) FK Columns
ITEM_TYPE PROCESS_ITEM_TYPE
NAME PROCESS_NAME
VERSION PROCESS_VERSION
Data movement key for WF_PROCESS_ACTIVITIES
DM Key name <Row ID>
DM Key Info "WF_PROCESS_ACTIVITIES" is set to have data movement done by row ID.
WF_ACTIVITY_ATTR_VALUES
Table Name APPLSYS.WF_ACTIVITY_ATTR_VALUES
Table Alias WF_ACTIVITY_ATTR_VALUES
Use Type Transactional (foreign key is on this table)
Relation between WF_ACTIVITY_ATTR_VALUES and parent WF_PROCESS_ACTIVITIES
Parent Table Name APPLSYS.WF_PROCESS_ACTIVITIES
Parent Table Alias WPA
Unique Key Name WF_PROCESS_ACTIVITIES_PK
Unique Key Type Physical
Foreign Key Name WF_PROCESS_ACTIVITIES_WF_ACTIVITY_ATTR_VALUES_FK
Foreign Key Type Virtual
UK Columns (UK is on parent) FK Columns
INSTANCE_ID PROCESS_ACTIVITY_ID
Data movement key for WF_ACTIVITY_ATTR_VALUES
DM Key name <Row ID>
DM Key Info "WF_ACTIVITY_ATTR_VALUES" is set to have data movement done by row ID.
WF_ACTIVITY_TRANSITIONS_1
Table Name APPLSYS.WF_ACTIVITY_TRANSITIONS
Table Alias WF_ACTIVITY_TRANSITIONS_1
Use Type Transactional (foreign key is on this table)
Relation between WF_ACTIVITY_TRANSITIONS_1 and parent WF_PROCESS_ACTIVITIES
Parent Table Name APPLSYS.WF_PROCESS_ACTIVITIES
Parent Table Alias WPA
Unique Key Name WF_PROCESS_ACTIVITIES_PK
Unique Key Type Physical
48. 45
4.1.2.8. Table use WF_ACTIVITY_TRANSITIONS_2
4.2. Source Model WorkflowItems
Relation between WF_ACTIVITY_TRANSITIONS_1 and parent WF_PROCESS_ACTIVITIES
Foreign Key Name WF_PROCESS_ACTIVITIES_WF_ACTIVITY_TRANSITIONS_FK
Foreign Key Type Virtual
UK Columns (UK is on parent) FK Columns
INSTANCE_ID FROM_PROCESS_ACTIVITY
Conditional Relationship on foreign key
Database Code
ansi ${FK_ALIAS}.FROM_PROCESS_ACTIVITY = ${FK_ALIAS}.TO_PROCESS_ACTIVITY
Data movement key for WF_ACTIVITY_TRANSITIONS_1
DM Key name <Row ID>
DM Key Info "WF_ACTIVITY_TRANSITIONS_1" is set to have data movement done by row
ID.
WF_ACTIVITY_TRANSITIONS_2
Table Name APPLSYS.WF_ACTIVITY_TRANSITIONS
Table Alias WF_ACTIVITY_TRANSITIONS_2
Use Type Transactional (foreign key is on this table)
Relation between WF_ACTIVITY_TRANSITIONS_2 and parent WF_PROCESS_ACTIVITIES
Parent Table Name APPLSYS.WF_PROCESS_ACTIVITIES
Parent Table Alias WPA
Unique Key Name WF_PROCESS_ACTIVITIES_PK
Unique Key Type Physical
Foreign Key Name WF_PROCESS_ACTIVITIES_WF_ACTIVITY_TRANSITIONS_FK_2
Foreign Key Type Virtual
UK Columns (UK is on parent) FK Columns
INSTANCE_ID TO_PROCESS_ACTIVITY
Conditional Relationship on foreign key
Database Code
ansi ${FK_ALIAS}.FROM_PROCESS_ACTIVITY != ${FK_ALIAS}.TO_PROCESS_ACTIVITY
Data movement key for WF_ACTIVITY_TRANSITIONS_2
DM Key name <Row ID>
DM Key Info "WF_ACTIVITY_TRANSITIONS_2" is set to have data movement done by row
ID.
Source Model Info
UID 0619-CA01-0472-EC4A
49. 46
4.2.1. ER Diagram
4.2.2. Table use List
4.2.2.1. Table use WF_ITEMS
Source Model Info
Annotation This Model Contains:
Driving Table: APPLSYS.WF_ITEMS
Transaction Tables:
APPLSYS.WF_ITEM_ACTIVITY_STATUSES
APPLSYS.WF_ITEM_ACTIVITY_STATUSES_H
APPLSYS.WF_NOTIFICATIONS
APPLSYS.WF_COMMENTS
APPLSYS.WF_DIG_SIGS
WF_ITEMS
Table Name APPLSYS.WF_ITEMS
Table Alias WF_ITEMS
Use Type Transactional (Driving)
Annotation Product: FND - Application Object Library
Description: Workflow runtime table
50. 47
Data movement key for WF_ITEMS
DM Key name <Row ID>
DM Key Info "WF_ITEMS" is set to have data movement done by row ID.
Rules on WF_ITEMS
Name Attributes Annotation
WfItemParam Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
WF_ITEMS.ITEM_TYPE = :prItemType
AND WF_ITEMS.ITEM_KEY = :prItemKey
AND WF_ITEMS.END_DATE <= :prCutOffDate
Name Attributes Annotation
Wit Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
EXISTS
(SELECT NULL
FROM ${SOURCE.APPLSYS.WF_ITEM_TYPES} WIT
WHERE WF_ITEMS.END_DATE+NVL(WIT.PERSISTENCE_DAYS,0)<= :prCutOffDate
AND WF_ITEMS.ITEM_TYPE = WIT.NAME
AND WIT.PERSISTENCE_TYPE = :prPersistence)
Name Attributes Annotation
SelfJoin Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
NOT EXISTS
(SELECT NULL
FROM ${SOURCE.APPLSYS.WF_ITEMS} WI2
WHERE WI2.END_DATE IS NULL
START WITH WI2.ITEM_TYPE = WF_ITEMS.ITEM_TYPE
AND WI2.ITEM_KEY = WF_ITEMS.ITEM_KEY
CONNECT BY PRIOR WI2.ITEM_TYPE = WI2.PARENT_ITEM_TYPE
AND PRIOR WI2.ITEM_KEY = WI2.PARENT_ITEM_KEY
UNION ALL
select null
from ${SOURCE.APPLSYS.WF_ITEMS} WI2
WHERE WI2.END_DATE IS NULL
START WITH WI2.ITEM_TYPE = WF_ITEMS.ITEM_TYPE
AND WI2.ITEM_KEY = WF_ITEMS.ITEM_KEY
CONNECT BY PRIOR WI2.PARENT_ITEM_TYPE = WI2.ITEM_TYPE
AND PRIOR WI2.PARENT_ITEM_KEY = WI2.ITEM_KEY)
Name Attributes Annotation
51. 48
4.2.2.2. Table use WF_ITEM_ACTIVITY_STATUSES
4.2.2.3. Table use WF_NOTIFICATIONS
Rules on WF_ITEMS
WfItemsReloadRule Category:
Analytics: Disabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
WF_ITEMS.ITEM_TYPE = :prItemType
AND WF_ITEMS.ITEM_KEY = :prItemKey
AND WF_ITEMS.END_DATE between :prReloadFromDate and :prReloadToDate
WF_ITEM_ACTIVITY_STATUSES
Table Name APPLSYS.WF_ITEM_ACTIVITY_STATUSES
Table Alias WF_ITEM_ACTIVITY_STATUSES
Use Type Transactional (foreign key is on this table)
Annotation Product: FND - Application Object Library
Description: Runtime table for a work item
Relation between WF_ITEM_ACTIVITY_STATUSES and parent WF_ITEMS
Parent Table Name APPLSYS.WF_ITEMS
Parent Table Alias WF_ITEMS
Unique Key Name WF_ITEMS_PK
Unique Key Type Physical
Foreign Key Name WF_ITEMS_WF_ITEM_ACTIVITY_STATUSES_FK
Foreign Key Type Virtual
UK Columns (UK is on parent) FK Columns
ITEM_TYPE ITEM_TYPE
ITEM_KEY ITEM_KEY
Data movement key for WF_ITEM_ACTIVITY_STATUSES
DM Key name <Row ID>
DM Key Info "WF_ITEM_ACTIVITY_STATUSES" is set to have data movement done by row
ID.
WF_NOTIFICATIONS
Table Name APPLSYS.WF_NOTIFICATIONS
Table Alias WF_NOTIFICATIONS
Use Type Transactional (foreign key is on this table)
Annotation Product: FND - Application Object Library
Description: Runtime table of messages sent
52. 49
4.2.2.4. Table use WF_COMMENTS
Relation between WF_NOTIFICATIONS and parent WF_ITEM_ACTIVITY_STATUSES
Parent Table Name APPLSYS.WF_ITEM_ACTIVITY_STATUSES
Parent Table Alias WF_ITEM_ACTIVITY_STATUSES
Unique Key Name WF_ITEM_ACTIVITY_STATUSES_UK
Unique Key Type Virtual
Foreign Key Name WF_ITEM_ACTIVITY_STATUSES_WF_NOTIFICATIONS_FK
Foreign Key Type Virtual
UK Columns (UK is on parent) FK Columns
NOTIFICATION_ID NOTIFICATION_ID
Data movement key for WF_NOTIFICATIONS
DM Key name <Row ID>
DM Key Info "WF_NOTIFICATIONS" is set to have data movement done by row ID.
Rules on WF_NOTIFICATIONS
Name Attributes Annotation
Notification Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
"WF_NOTIFICATIONS"."NOTIFICATION_ID" in
(select WN.NOTIFICATION_ID
from ${SOURCE.APPLSYS.WF_ITEM_ACTIVITY_STATUSES} WIASH,
${SOURCE.APPLSYS.WF_NOTIFICATIONS} WN
where WIASH.ITEM_TYPE = :prItemType
and WIASH.ITEM_KEY = :prItemKey
and WIASH.NOTIFICATION_ID = WN.GROUP_ID
and ((0 = 1)
or not exists
(select null
from ${SOURCE.APPLSYS.WF_DIG_SIGS} WDS
where SIG_OBJ_TYPE = 'WF_NTF'
and SIG_OBJ_ID = WN.NOTIFICATION_ID)))
WF_COMMENTS
Table Name APPLSYS.WF_COMMENTS
Table Alias WF_COMMENTS
Use Type Transactional (foreign key is on this table)
Annotation Product: FND - Application Object Library
Description: This is a table for notification comments
53. 50
4.2.2.5. Table use WF_DIG_SIGS
4.2.2.6. Table use WF_NOTIFICATION_ATTRIBUTES_V
Relation between WF_COMMENTS and parent WF_NOTIFICATIONS
Parent Table Name APPLSYS.WF_NOTIFICATIONS
Parent Table Alias WF_NOTIFICATIONS
Unique Key Name WF_NOTIFICATIONS_PK
Unique Key Type Physical
Foreign Key Name WF_NOTIFICATIONS_WF_COMMENTS_FK
Foreign Key Type Virtual
UK Columns (UK is on parent) FK Columns
NOTIFICATION_ID NOTIFICATION_ID
Data movement key for WF_COMMENTS
DM Key name <Row ID>
DM Key Info "WF_COMMENTS" is set to have data movement done by row ID.
WF_DIG_SIGS
Table Name APPLSYS.WF_DIG_SIGS
Table Alias WF_DIG_SIGS
Use Type Transactional (foreign key is on this table)
Annotation Product: FND - Application Object Library
Description: digital signatures table
Relation between WF_DIG_SIGS and parent WF_NOTIFICATIONS
Parent Table Name APPLSYS.WF_NOTIFICATIONS
Parent Table Alias WF_NOTIFICATIONS
Unique Key Name WF_NOTIFICATIONS_PK
Unique Key Type Physical
Foreign Key Name WF_NOTIFICATIONS_WF_DIG_SIGS_FK
Foreign Key Type Virtual
UK Columns (UK is on parent) FK Columns
NOTIFICATION_ID SIG_OBJ_ID
Conditional Relationship on foreign key
Database Code
ansi ${FK_ALIAS}.SIG_OBJ_TYPE = 'WF_NTF'
Data movement key for WF_DIG_SIGS
DM Key name <Row ID>
DM Key Info "WF_DIG_SIGS" is set to have data movement done by row ID.
WF_NOTIFICATION_ATTRIBUTES_V
Table, View, or Queryable Synonym
Name
APPLSYS.WF_NOTIFICATION_ATTRIBUTES_V
Table, View, or Queryable Synonym
Alias
WF_NOTIFICATION_ATTRIBUTES_V
54. 51
4.2.2.7. Table use WF_ITEM_ACTIVITY_STATUSES_H
4.2.2.8. Table use WF_NOTIFICATIONS_2
WF_NOTIFICATION_ATTRIBUTES_V
Use Type Transactional (foreign key is on this table, view, or queryable synonym)
Relation between WF_NOTIFICATION_ATTRIBUTES_V and parent WF_NOTIFICATIONS
Parent Table Name APPLSYS.WF_NOTIFICATIONS
Parent Table Alias WF_NOTIFICATIONS
Foreign Key Name WF_NOTIFICATIONS_WF_NOTIFICATION_ATTRIBUTES_V_FK
Foreign Key Error <Unknown> (Foreign Key not found)
Data movement key for WF_NOTIFICATION_ATTRIBUTES_V
DM Key name <Unresolved>
DM Key Columns <Table not found; can't determine columns>
WF_ITEM_ACTIVITY_STATUSES_H
Table Name APPLSYS.WF_ITEM_ACTIVITY_STATUSES_H
Table Alias WF_ITEM_ACTIVITY_STATUSES_H
Use Type Transactional (foreign key is on this table)
Annotation Product: FND - Application Object Library
Description: Stores history of WF_ITEM_ACTIVITY_STATUSES
Relation between WF_ITEM_ACTIVITY_STATUSES_H and parent WF_ITEMS
Parent Table Name APPLSYS.WF_ITEMS
Parent Table Alias WF_ITEMS
Unique Key Name WF_ITEMS_PK
Unique Key Type Physical
Foreign Key Name WF_ITEMS_WF_ITEM_ACTIVITY_STATUSES_H_FK
Foreign Key Type Virtual
UK Columns (UK is on parent) FK Columns
ITEM_TYPE ITEM_TYPE
ITEM_KEY ITEM_KEY
Data movement key for WF_ITEM_ACTIVITY_STATUSES_H
DM Key name <Row ID>
DM Key Info "WF_ITEM_ACTIVITY_STATUSES_H" is set to have data movement done by
row ID.
WF_NOTIFICATIONS_2
Table Name APPLSYS.WF_NOTIFICATIONS
Table Alias WF_NOTIFICATIONS_2
Use Type Transactional (foreign key is on this table)
Annotation Product: FND - Application Object Library
Description: Runtime table of messages sent
55. 52
4.2.2.9. Table use WF_COMMENTS_2
Relation between WF_NOTIFICATIONS_2 and parent WF_ITEM_ACTIVITY_STATUSES_H
Parent Table Name APPLSYS.WF_ITEM_ACTIVITY_STATUSES_H
Parent Table Alias WF_ITEM_ACTIVITY_STATUSES_H
Unique Key Name WF_ITEM_ACTIVITY_STATUSES_H_UK
Unique Key Type Virtual
Foreign Key Name WF_ITEM_ACTIVITY_STATUSES_H_WF_NOTIFICATIONS_FK
Foreign Key Type Virtual
UK Columns (UK is on parent) FK Columns
NOTIFICATION_ID NOTIFICATION_ID
Data movement key for WF_NOTIFICATIONS_2
DM Key name <Row ID>
DM Key Info "WF_NOTIFICATIONS_2" is set to have data movement done by row ID.
Rules on WF_NOTIFICATIONS_2
Name Attributes Annotation
Notification1 Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
"WF_NOTIFICATIONS_2"."NOTIFICATION_ID" in
(select WN.NOTIFICATION_ID
from ${SOURCE.APPLSYS.WF_ITEM_ACTIVITY_STATUSES_H} WIASH,
${SOURCE.APPLSYS.WF_NOTIFICATIONS} WN
where WIASH.ITEM_TYPE = :prItemType
and WIASH.ITEM_KEY = :prItemKey
and WIASH.NOTIFICATION_ID = WN.GROUP_ID
and ((0 = 1)
or not exists
(select null
from ${SOURCE.APPLSYS.WF_DIG_SIGS} WDS
where SIG_OBJ_TYPE = 'WF_NTF'
and SIG_OBJ_ID = WN.NOTIFICATION_ID)))
WF_COMMENTS_2
Table Name APPLSYS.WF_COMMENTS
Table Alias WF_COMMENTS_2
Use Type Transactional (foreign key is on this table)
Annotation Product: FND - Application Object Library
Description: This is a table for notification comments
56. 53
4.2.2.10. Table use WF_DIG_SIGS_2
4.2.2.11. Table use WF_NOTIFICATION_ATTRIBUTES_V_2
Relation between WF_COMMENTS_2 and parent WF_NOTIFICATIONS_2
Parent Table Name APPLSYS.WF_NOTIFICATIONS
Parent Table Alias WF_NOTIFICATIONS_2
Unique Key Name WF_NOTIFICATIONS_PK
Unique Key Type Physical
Foreign Key Name WF_NOTIFICATIONS_WF_COMMENTS_FK
Foreign Key Type Virtual
UK Columns (UK is on parent) FK Columns
NOTIFICATION_ID NOTIFICATION_ID
Data movement key for WF_COMMENTS_2
DM Key name <Row ID>
DM Key Info "WF_COMMENTS_2" is set to have data movement done by row ID.
WF_DIG_SIGS_2
Table Name APPLSYS.WF_DIG_SIGS
Table Alias WF_DIG_SIGS_2
Use Type Transactional (foreign key is on this table)
Annotation Product: FND - Application Object Library
Description: digital signatures table
Relation between WF_DIG_SIGS_2 and parent WF_NOTIFICATIONS_2
Parent Table Name APPLSYS.WF_NOTIFICATIONS
Parent Table Alias WF_NOTIFICATIONS_2
Unique Key Name WF_NOTIFICATIONS_PK
Unique Key Type Physical
Foreign Key Name WF_NOTIFICATIONS_WF_DIG_SIGS_FK
Foreign Key Type Virtual
UK Columns (UK is on parent) FK Columns
NOTIFICATION_ID SIG_OBJ_ID
Conditional Relationship on foreign key
Database Code
ansi ${FK_ALIAS}.SIG_OBJ_TYPE = 'WF_NTF'
Data movement key for WF_DIG_SIGS_2
DM Key name <Row ID>
DM Key Info "WF_DIG_SIGS_2" is set to have data movement done by row ID.
WF_NOTIFICATION_ATTRIBUTES_V_2
Table, View, or Queryable Synonym
Name
APPLSYS.WF_NOTIFICATION_ATTRIBUTES_V
Table, View, or Queryable Synonym
Alias
WF_NOTIFICATION_ATTRIBUTES_2
57. 54
4.2.2.12. Table use WF_ITEM_ATTRIBUTE_VALUES_V
4.3. Source Model WorkflowLocalRoles
4.3.1. ER Diagram
WF_NOTIFICATION_ATTRIBUTES_V_2
Use Type Transactional (foreign key is on this table, view, or queryable synonym)
Relation between WF_NOTIFICATION_ATTRIBUTES_V_2 and parent WF_NOTIFICATIONS_2
Parent Table Name APPLSYS.WF_NOTIFICATIONS
Parent Table Alias WF_NOTIFICATIONS_2
Foreign Key Name WF_NOTIFICATIONS_WF_NOTIFICATION_ATTRIBUTES_V_FK_2
Foreign Key Error <Unknown> (Foreign Key not found)
Data movement key for WF_NOTIFICATION_ATTRIBUTES_V_2
DM Key name <Unresolved>
DM Key Columns <Table not found; can't determine columns>
WF_ITEM_ATTRIBUTE_VALUES_V
Table, View, or Queryable Synonym
Name
APPLSYS.WF_ITEM_ATTRIBUTE_VALUES_V
Table, View, or Queryable Synonym
Alias
WF_ITEM_ATTRIBUTE_VALUES_V
Use Type Transactional (foreign key is on this table, view, or queryable synonym)
Relation between WF_ITEM_ATTRIBUTE_VALUES_V and parent WF_ITEMS
Parent Table Name APPLSYS.WF_ITEMS
Parent Table Alias WF_ITEMS
Foreign Key Name WF_ITEMS_WF_ITEM_ATTRIBUTE_VALUES_V_FK
Foreign Key Error <Unknown> (Foreign Key not found)
Data movement key for WF_ITEM_ATTRIBUTE_VALUES_V
DM Key name <Unresolved>
DM Key Columns <Table not found; can't determine columns>
Source Model Info
UID 18E2-36D2-DF30-6511
Annotation This Model Contains:
Driving Table: APPLSYS.WF_LOCAL_ROLES
Transaction Tables:
APPLSYS.WF_LOCAL_USER_ROLES
APPLSYS.WF_LOCAL_USERS
APPLSYS.WF_USER_ROLE_ASSIGNMENTS
58. 55
4.3.2. Table use List
4.3.2.1. Table use WF_LOCAL_ROLES
WF_LOCAL_ROLES
Table Name APPLSYS.WF_LOCAL_ROLES
Table Alias WF_LOCAL_ROLES
Use Type Transactional (Driving)
Annotation Product: FND - Application Object Library
Description: Local Roles table
Data movement key for WF_LOCAL_ROLES
DM Key name <Row ID>
DM Key Info "WF_LOCAL_ROLES" is set to have data movement done by row ID.
Rules on WF_LOCAL_ROLES
Name Attributes Annotation
WfRoles Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
59. 56
Rules on WF_LOCAL_ROLES
WF_LOCAL_ROLES.PARTITION_ID = 0
AND (WF_LOCAL_ROLES.ORIG_SYSTEM is null OR WF_LOCAL_ROLES.ORIG_SYSTEM IN
('WF_LOCAL_ROLES', 'WF_LOCAL_USERS'))
AND (:prCutOffDate is null OR WF_LOCAL_ROLES.EXPIRATION_DATE <= :prCutOffDate)
AND NOT EXISTS
(SELECT NULL
FROM ${SOURCE.APPLSYS.WF_ROLE_HIERARCHIES} WRH
WHERE WRH.SUPER_NAME = WF_LOCAL_ROLES.NAME
OR WRH.SUB_NAME = WF_LOCAL_ROLES.NAME)
AND NOT EXISTS
(SELECT NULL
FROM ${SOURCE.APPLSYS.WF_USER_ROLE_ASSIGNMENTS} WA
WHERE WA.USER_NAME = WF_LOCAL_ROLES.NAME
AND WA.RELATIONSHIP_ID <> -1)
AND NOT EXISTS
(SELECT NULL
FROM ${SOURCE.APPLSYS.WF_NOTIFICATIONS} WN
WHERE WN.RECIPIENT_ROLE = WF_LOCAL_ROLES.NAME
OR WN.ORIGINAL_RECIPIENT = WF_LOCAL_ROLES.NAME)
AND NOT EXISTS
(SELECT NULL
FROM ${SOURCE.APPLSYS.WF_ITEMS} WI
WHERE WI.OWNER_ROLE = WF_LOCAL_ROLES.NAME)
Name Attributes Annotation
RoleRuleSelfJoin Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
EXISTS
(select WF_LOCAL_ROLES.* from
(
select WF_LOCAL_ROLES.NAME, WF_LOCAL_ROLES.ORIG_SYSTEM, WF_LOCAL_ROLES.ORIG_SYSTEM_ID,
WF_LOCAL_ROLES.USER_FLAG
from ${SOURCE.APPLSYS.WF_LOCAL_ROLES}
where PARTITION_ID = 0
and ORIG_SYSTEM is null
and (:prCutOffDate is NULL or EXPIRATION_DATE <= :prCutOffDate)
and not exists
(select NULL
from ${SOURCE.APPLSYS.WF_ROLE_HIERARCHIES}
where SUPER_NAME = WF_LOCAL_ROLES.NAME
or SUB_NAME = WF_LOCAL_ROLES.NAME)
and not exists
(select NULL
from ${SOURCE.APPLSYS.WF_USER_ROLE_ASSIGNMENTS}
where USER_NAME = WF_LOCAL_ROLES.NAME
and RELATIONSHIP_ID <> -1)
and not exists
(select NULL
from ${SOURCE.APPLSYS.WF_NOTIFICATIONS} wn
where wn.RECIPIENT_ROLE = WF_LOCAL_ROLES.NAME
or wn.ORIGINAL_RECIPIENT = WF_LOCAL_ROLES.NAME)
and not exists
(select NULL
from ${SOURCE.APPLSYS.WF_ITEMS} wi
where wi.OWNER_ROLE = WF_LOCAL_ROLES.NAME)
) rcurs2
where WF_LOCAL_ROLES.NAME = rcurs2.name
and WF_LOCAL_ROLES.ORIG_SYSTEM = rcurs2.orig_system
and WF_LOCAL_ROLES.ORIG_SYSTEM_ID = rcurs2.orig_system_id
)
60. 57
4.3.2.2. Table use WF_LOCAL_USER_ROLES
WF_LOCAL_USER_ROLES
Table Name APPLSYS.WF_LOCAL_USER_ROLES
Table Alias WF_LOCAL_USER_ROLES
Use Type Transactional (foreign key is on this table)
Annotation Product: FND - Application Object Library
Description: Local User Roles table
Relation between WF_LOCAL_USER_ROLES and parent WF_LOCAL_ROLES
Parent Table Name APPLSYS.WF_LOCAL_ROLES
Parent Table Alias WF_LOCAL_ROLES
Unique Key Name WF_LOCAL_ROLES_UK_2
Unique Key Type Virtual
Foreign Key Name WF_LOCAL_ROLES_WF_LOCAL_USER_ROLES_FK
Foreign Key Type Virtual
UK Columns (UK is on parent) FK Columns
NAME USER_NAME
ORIG_SYSTEM USER_ORIG_SYSTEM
ORIG_SYSTEM_ID USER_ORIG_SYSTEM_ID
Data movement key for WF_LOCAL_USER_ROLES
DM Key name <Row ID>
DM Key Info "WF_LOCAL_USER_ROLES" is set to have data movement done by row ID.
Rules on WF_LOCAL_USER_ROLES
Name Attributes Annotation
UserFlag1 Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
EXISTS
(SELECT NULL
FROM ${SOURCE.APPLSYS.WF_LOCAL_ROLES} WR
WHERE WR.USER_FLAG = 'Y')
Name Attributes Annotation
ExpiredRelation Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
61. 58
4.3.2.3. Table use WF_LOCAL_USERS
Rules on WF_LOCAL_USER_ROLES
EXISTS
(select WF_LOCAL_USER_ROLES.* from
(
select wlur.user_name, wlur.user_orig_system, wlur.user_orig_system_id,
wlur.role_name, wlur.role_orig_system, wlur.role_orig_system_id
from ${SOURCE.APPLSYS.WF_LOCAL_USER_ROLES} WLUR
where (WLUR.ROLE_ORIG_SYSTEM='WF_LOCAL_ROLES' or
WLUR.USER_ORIG_SYSTEM='WF_LOCAL_USERS')
and WLUR.PARTITION_ID = 0
and WLUR.EFFECTIVE_END_DATE <= :prCutOffDate
)rcurs3
where WF_LOCAL_USER_ROLES.USER_NAME = rcurs3.USER_NAME
and WF_LOCAL_USER_ROLES.USER_ORIG_SYSTEM = rcurs3.USER_ORIG_SYSTEM
and WF_LOCAL_USER_ROLES.USER_ORIG_SYSTEM_ID = rcurs3.USER_ORIG_SYSTEM_ID
and WF_LOCAL_USER_ROLES.ROLE_NAME = rcurs3.ROLE_NAME
and WF_LOCAL_USER_ROLES.ROLE_ORIG_SYSTEM = rcurs3.ROLE_ORIG_SYSTEM
and WF_LOCAL_USER_ROLES.ROLE_ORIG_SYSTEM_ID = rcurs3.ROLE_ORIG_SYSTEM_ID
)
Name Attributes Annotation
ExpiredRelationOrigSystem Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
EXISTS
(Select WF_LOCAL_USER_ROLES.* from
(
select wlur.user_name, wlur.user_orig_system, wlur.user_orig_system_id,
wlur.role_name, wlur.role_orig_system, wlur.role_orig_system_id
from ${SOURCE.APPLSYS.WF_LOCAL_USER_ROLES} WLUR, ${SOURCE.APPLSYS.WF_LOCAL_ROLES} WLR
where WLR.ORIG_SYSTEM = null
and ((WLR.NAME=WLUR.USER_NAME and WLR.ORIG_SYSTEM=WLUR.USER_ORIG_SYSTEM)
or
(WLR.NAME=WLUR.ROLE_NAME and WLR.ORIG_SYSTEM=WLUR.ROLE_ORIG_SYSTEM))
and WLUR.PARTITION_ID = 0
and WLUR.EFFECTIVE_END_DATE <= :prCutOffDate
) rcurs4
where WF_LOCAL_USER_ROLES.USER_NAME = rcurs4.USER_NAME
and WF_LOCAL_USER_ROLES.USER_ORIG_SYSTEM = rcurs4.USER_ORIG_SYSTEM
and WF_LOCAL_USER_ROLES.USER_ORIG_SYSTEM_ID = rcurs4.USER_ORIG_SYSTEM_ID
and WF_LOCAL_USER_ROLES.ROLE_NAME = rcurs4.ROLE_NAME
and WF_LOCAL_USER_ROLES.ROLE_ORIG_SYSTEM = rcurs4.ROLE_ORIG_SYSTEM
and WF_LOCAL_USER_ROLES.ROLE_ORIG_SYSTEM_ID = rcurs4.ROLE_ORIG_SYSTEM_ID
)
WF_LOCAL_USERS
Table Name APPLSYS.WF_LOCAL_USERS
Table Alias WF_LOCAL_USERS
Use Type Transactional (foreign key is on this table)
Annotation Product: FND - Application Object Library
Description: Local Users table
Relation between WF_LOCAL_USERS and parent WF_LOCAL_ROLES
Parent Table Name APPLSYS.WF_LOCAL_ROLES
Parent Table Alias WF_LOCAL_ROLES
62. 59
4.3.2.4. Table use WF_LOCAL_USER_ROLES_2
Relation between WF_LOCAL_USERS and parent WF_LOCAL_ROLES
Unique Key Name WF_LOCAL_ROLES_UK_2
Unique Key Type Virtual
Foreign Key Name WF_LOCAL_ROLES_WF_LOCAL_USERS_FK
Foreign Key Type Virtual
UK Columns (UK is on parent) FK Columns
NAME NAME
ORIG_SYSTEM ORIG_SYSTEM
ORIG_SYSTEM_ID ORIG_SYSTEM_ID
Data movement key for WF_LOCAL_USERS
DM Key name <Row ID>
DM Key Info "WF_LOCAL_USERS" is set to have data movement done by row ID.
WF_LOCAL_USER_ROLES_2
Table Name APPLSYS.WF_LOCAL_USER_ROLES
Table Alias WF_LOCAL_USER_ROLES_2
Use Type Transactional (foreign key is on this table)
Annotation Product: FND - Application Object Library
Description: Local User Roles table
Relation between WF_LOCAL_USER_ROLES_2 and parent WF_LOCAL_ROLES
Parent Table Name APPLSYS.WF_LOCAL_ROLES
Parent Table Alias WF_LOCAL_ROLES
Unique Key Name WF_LOCAL_ROLES_UK_2
Unique Key Type Virtual
Foreign Key Name WF_LOCAL_ROLES_WF_LOCAL_USER_ROLES_FK_2
Foreign Key Type Virtual
UK Columns (UK is on parent) FK Columns
NAME ROLE_NAME
ORIG_SYSTEM ROLE_ORIG_SYSTEM
ORIG_SYSTEM_ID ROLE_ORIG_SYSTEM_ID
Data movement key for WF_LOCAL_USER_ROLES_2
DM Key name <Row ID>
DM Key Info "WF_LOCAL_USER_ROLES_2" is set to have data movement done by row ID.
Rules on WF_LOCAL_USER_ROLES_2
Name Attributes Annotation
UserFlag Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
63. 60
Rules on WF_LOCAL_USER_ROLES_2
Query
EXISTS
(SELECT NULL
FROM ${SOURCE.APPLSYS.WF_LOCAL_ROLES} WR
WHERE WR.USER_FLAG <> 'Y')
Name Attributes Annotation
ExpiredRelation1 Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
EXISTS
(select WF_LOCAL_USER_ROLES.* from
(
select wlur.user_name, wlur.user_orig_system, wlur.user_orig_system_id,
wlur.role_name, wlur.role_orig_system, wlur.role_orig_system_id
from ${SOURCE.APPLSYS.WF_LOCAL_USER_ROLES} WLUR
where (WLUR.ROLE_ORIG_SYSTEM='WF_LOCAL_ROLES' or
WLUR.USER_ORIG_SYSTEM='WF_LOCAL_USERS')
and WLUR.PARTITION_ID = 0
and WLUR.EFFECTIVE_END_DATE <= :prCutOffDate
)rcurs3
where WF_LOCAL_USER_ROLES_2.USER_NAME = rcurs3.USER_NAME
and WF_LOCAL_USER_ROLES_2.USER_ORIG_SYSTEM = rcurs3.USER_ORIG_SYSTEM
and WF_LOCAL_USER_ROLES_2.USER_ORIG_SYSTEM_ID = rcurs3.USER_ORIG_SYSTEM_ID
and WF_LOCAL_USER_ROLES_2.ROLE_NAME = rcurs3.ROLE_NAME
and WF_LOCAL_USER_ROLES_2.ROLE_ORIG_SYSTEM = rcurs3.ROLE_ORIG_SYSTEM
and WF_LOCAL_USER_ROLES_2.ROLE_ORIG_SYSTEM_ID = rcurs3.ROLE_ORIG_SYSTEM_ID
)
Name Attributes Annotation
ExpiredRelationOrigSystem1 Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
EXISTS
(Select WF_LOCAL_USER_ROLES.* from
(
select wlur.user_name, wlur.user_orig_system, wlur.user_orig_system_id,
wlur.role_name, wlur.role_orig_system, wlur.role_orig_system_id
from ${SOURCE.APPLSYS.WF_LOCAL_USER_ROLES} WLUR, ${SOURCE.APPLSYS.WF_LOCAL_ROLES} WLR
where WLR.ORIG_SYSTEM = null
and ((WLR.NAME=WLUR.USER_NAME and WLR.ORIG_SYSTEM=WLUR.USER_ORIG_SYSTEM)
or
(WLR.NAME=WLUR.ROLE_NAME and WLR.ORIG_SYSTEM=WLUR.ROLE_ORIG_SYSTEM))
and WLUR.PARTITION_ID = 0
and WLUR.EFFECTIVE_END_DATE <= :prCutOffDate
) rcurs4
where WF_LOCAL_USER_ROLES_2.USER_NAME = rcurs4.USER_NAME
and WF_LOCAL_USER_ROLES_2.USER_ORIG_SYSTEM = rcurs4.USER_ORIG_SYSTEM
and WF_LOCAL_USER_ROLES_2.USER_ORIG_SYSTEM_ID = rcurs4.USER_ORIG_SYSTEM_ID
and WF_LOCAL_USER_ROLES_2.ROLE_NAME = rcurs4.ROLE_NAME
and WF_LOCAL_USER_ROLES_2.ROLE_ORIG_SYSTEM = rcurs4.ROLE_ORIG_SYSTEM
and WF_LOCAL_USER_ROLES_2.ROLE_ORIG_SYSTEM_ID = rcurs4.ROLE_ORIG_SYSTEM_ID
)
64. 61
4.3.2.5. Table use WF_USER_ROLE_ASSIGNMENTS
WF_USER_ROLE_ASSIGNMENTS
Table Name APPLSYS.WF_USER_ROLE_ASSIGNMENTS
Table Alias WF_USER_ROLE_ASSIGNMENTS
Use Type Transactional (foreign key is on this table)
Annotation Product: FND - Application Object Library
Description: USER ROLE ASSIGNMENTS
Relation between WF_USER_ROLE_ASSIGNMENTS and parent WF_LOCAL_ROLES
Parent Table Name APPLSYS.WF_LOCAL_ROLES
Parent Table Alias WF_LOCAL_ROLES
Unique Key Name WF_LOCAL_ROLES_UK_2
Unique Key Type Virtual
Foreign Key Name WF_LOCAL_ROLES_WF_USER_ROLE_ASSIGNMENTS_FK_3
Foreign Key Type Virtual
UK Columns (UK is on parent) FK Columns
NAME USER_NAME
ORIG_SYSTEM USER_ORIG_SYSTEM
ORIG_SYSTEM_ID USER_ORIG_SYSTEM_ID
Data movement key for WF_USER_ROLE_ASSIGNMENTS
DM Key name <Row ID>
DM Key Info "WF_USER_ROLE_ASSIGNMENTS" is set to have data movement done by row
ID.
Rules on WF_USER_ROLE_ASSIGNMENTS
Name Attributes Annotation
ExpiredRelationRoleAssgn Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
EXISTS
(select WF_USER_ROLE_ASSIGNMENTS.* from
(
select wlur.user_name, wlur.user_orig_system, wlur.user_orig_system_id,
wlur.role_name, wlur.role_orig_system, wlur.role_orig_system_id
from ${SOURCE.APPLSYS.WF_LOCAL_USER_ROLES} WLUR
where (WLUR.ROLE_ORIG_SYSTEM='WF_LOCAL_ROLES' or
WLUR.USER_ORIG_SYSTEM='WF_LOCAL_USERS')
and WLUR.PARTITION_ID = 0
and WLUR.EFFECTIVE_END_DATE <= sysdate
)rcurs3
where WF_USER_ROLE_ASSIGNMENTS.USER_NAME = rcurs3.USER_NAME
and WF_USER_ROLE_ASSIGNMENTS.USER_ORIG_SYSTEM = rcurs3.USER_ORIG_SYSTEM
and WF_USER_ROLE_ASSIGNMENTS.USER_ORIG_SYSTEM_ID = rcurs3.USER_ORIG_SYSTEM_ID
and WF_USER_ROLE_ASSIGNMENTS.ROLE_NAME = rcurs3.ROLE_NAME
and WF_USER_ROLE_ASSIGNMENTS.ROLE_ORIG_SYSTEM = rcurs3.ROLE_ORIG_SYSTEM
and WF_USER_ROLE_ASSIGNMENTS.ROLE_ORIG_SYSTEM_ID = rcurs3.ROLE_ORIG_SYSTEM_ID
)
Name Attributes Annotation
65. 62
4.3.2.6. Table use WF_USER_ROLE_ASSIGNMENTS_2
Rules on WF_USER_ROLE_ASSIGNMENTS
ExpiredRelationOrigSysRoleAssg Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
EXISTS
(
select WF_USER_ROLE_ASSIGNMENTS.* from
(
select wlur.user_name, wlur.user_orig_system, wlur.user_orig_system_id,
wlur.role_name, wlur.role_orig_system, wlur.role_orig_system_id
from ${SOURCE.APPLSYS.WF_LOCAL_USER_ROLES} WLUR, ${SOURCE.APPLSYS.WF_LOCAL_ROLES} WLR
where WLR.ORIG_SYSTEM = 'JRES_IND'
and ((WLR.NAME=WLUR.USER_NAME and WLR.ORIG_SYSTEM=WLUR.USER_ORIG_SYSTEM)
or
(WLR.NAME=WLUR.ROLE_NAME and WLR.ORIG_SYSTEM=WLUR.ROLE_ORIG_SYSTEM))
and WLUR.PARTITION_ID = 0
and WLUR.EFFECTIVE_END_DATE <= :prCutOffDate
) rcurs4
where WF_USER_ROLE_ASSIGNMENTS.USER_NAME = rcurs4.USER_NAME
and WF_USER_ROLE_ASSIGNMENTS.USER_ORIG_SYSTEM = rcurs4.USER_ORIG_SYSTEM
and WF_USER_ROLE_ASSIGNMENTS.USER_ORIG_SYSTEM_ID = rcurs4.USER_ORIG_SYSTEM_ID
and WF_USER_ROLE_ASSIGNMENTS.ROLE_NAME = rcurs4.ROLE_NAME
and WF_USER_ROLE_ASSIGNMENTS.ROLE_ORIG_SYSTEM = rcurs4.ROLE_ORIG_SYSTEM
and WF_USER_ROLE_ASSIGNMENTS.ROLE_ORIG_SYSTEM_ID = rcurs4.ROLE_ORIG_SYSTEM_ID
)
Name Attributes Annotation
UserFlag2 Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
EXISTS
(SELECT NULL
FROM ${SOURCE.APPLSYS.WF_LOCAL_ROLES} WR
WHERE WR.USER_FLAG = 'Y')
WF_USER_ROLE_ASSIGNMENTS_2
Table Name APPLSYS.WF_USER_ROLE_ASSIGNMENTS
Table Alias WF_USER_ROLE_ASSIGNMENTS_2
Use Type Transactional (foreign key is on this table)
Relation between WF_USER_ROLE_ASSIGNMENTS_2 and parent WF_LOCAL_ROLES
Parent Table Name APPLSYS.WF_LOCAL_ROLES
Parent Table Alias WF_LOCAL_ROLES
Unique Key Name WF_LOCAL_ROLES_UK_4
Unique Key Type Virtual
Foreign Key Name WF_LOCAL_ROLES_WF_USER_ROLE_ASSIGNMENTS_FK_4
Foreign Key Type Virtual
66. 63
Relation between WF_USER_ROLE_ASSIGNMENTS_2 and parent WF_LOCAL_ROLES
UK Columns (UK is on parent) FK Columns
NAME ROLE_NAME
ORIG_SYSTEM ROLE_ORIG_SYSTEM
ORIG_SYSTEM_ID ROLE_ORIG_SYSTEM_ID
Data movement key for WF_USER_ROLE_ASSIGNMENTS_2
DM Key name <Row ID>
DM Key Info "WF_USER_ROLE_ASSIGNMENTS_2" is set to have data movement done by row
ID.
Rules on WF_USER_ROLE_ASSIGNMENTS_2
Name Attributes Annotation
ExpiredRelationOrigSysRoleAss1 Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
EXISTS
(
select WF_USER_ROLE_ASSIGNMENTS.* from
(
select wlur.user_name, wlur.user_orig_system, wlur.user_orig_system_id,
wlur.role_name, wlur.role_orig_system, wlur.role_orig_system_id
from ${SOURCE.APPLSYS.WF_LOCAL_USER_ROLES} WLUR, ${SOURCE.APPLSYS.WF_LOCAL_ROLES} WLR
where WLR.ORIG_SYSTEM = 'JRES_IND'
and ((WLR.NAME=WLUR.USER_NAME and WLR.ORIG_SYSTEM=WLUR.USER_ORIG_SYSTEM)
or
(WLR.NAME=WLUR.ROLE_NAME and WLR.ORIG_SYSTEM=WLUR.ROLE_ORIG_SYSTEM))
and WLUR.PARTITION_ID = 0
and WLUR.EFFECTIVE_END_DATE <= :prCutOffDate
) rcurs4
where WF_USER_ROLE_ASSIGNMENTS_2.USER_NAME = rcurs4.USER_NAME
and WF_USER_ROLE_ASSIGNMENTS_2.USER_ORIG_SYSTEM = rcurs4.USER_ORIG_SYSTEM
and WF_USER_ROLE_ASSIGNMENTS_2.USER_ORIG_SYSTEM_ID = rcurs4.USER_ORIG_SYSTEM_ID
and WF_USER_ROLE_ASSIGNMENTS_2.ROLE_NAME = rcurs4.ROLE_NAME
and WF_USER_ROLE_ASSIGNMENTS_2.ROLE_ORIG_SYSTEM = rcurs4.ROLE_ORIG_SYSTEM
and WF_USER_ROLE_ASSIGNMENTS_2.ROLE_ORIG_SYSTEM_ID = rcurs4.ROLE_ORIG_SYSTEM_ID
)
Name Attributes Annotation
ExpiredRelationRoleAssg1 Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
67. 64
Rules on WF_USER_ROLE_ASSIGNMENTS_2
EXISTS
(select WF_USER_ROLE_ASSIGNMENTS.* from
(
select wlur.user_name, wlur.user_orig_system, wlur.user_orig_system_id,
wlur.role_name, wlur.role_orig_system, wlur.role_orig_system_id
from ${SOURCE.APPLSYS.WF_LOCAL_USER_ROLES} WLUR
where (WLUR.ROLE_ORIG_SYSTEM='WF_LOCAL_ROLES' or
WLUR.USER_ORIG_SYSTEM='WF_LOCAL_USERS')
and WLUR.PARTITION_ID = 0
and WLUR.EFFECTIVE_END_DATE <= sysdate
)rcurs3
where WF_USER_ROLE_ASSIGNMENTS_2.USER_NAME = rcurs3.USER_NAME
and WF_USER_ROLE_ASSIGNMENTS_2.USER_ORIG_SYSTEM = rcurs3.USER_ORIG_SYSTEM
and WF_USER_ROLE_ASSIGNMENTS_2.USER_ORIG_SYSTEM_ID = rcurs3.USER_ORIG_SYSTEM_ID
and WF_USER_ROLE_ASSIGNMENTS_2.ROLE_NAME = rcurs3.ROLE_NAME
and WF_USER_ROLE_ASSIGNMENTS_2.ROLE_ORIG_SYSTEM = rcurs3.ROLE_ORIG_SYSTEM
and WF_USER_ROLE_ASSIGNMENTS_2.ROLE_ORIG_SYSTEM_ID = rcurs3.ROLE_ORIG_SYSTEM_ID
)
Name Attributes Annotation
UserFlag3 Category:
Analytics: Enabled
Mode: Exclusive
Customization: Optional
Query Expression
Database ansi
Query
EXISTS
(SELECT NULL
FROM ${SOURCE.APPLSYS.WF_LOCAL_ROLES} WR
WHERE WR.USER_FLAG <> 'Y')