Vous êtes sur la page 1sur 5

TECHNICAL DOCUMENT

_____________________________________________________________________________________________
Below mentioned details needs to be move to production on Normal priority.
Created By Ankur Garg

Creation Date 11-FEB-2019

Query Raised Workflow purging process


Purpose of Change

Document Attached

Technical
Classification

DETAILS

Business Area Nil

Package Name Nil

Procedure Name Nil

View Name Nil

Custom Folder Name Nil


Nil
Function Name

Nil
Work Book Name
KFMC
Instance

Steps to Move from KFMC to Production:

Take the Back up all the Tables

WF_ACTIVITIES_TL
hr_api_transactions
applsys.wf_items
WF_ITEM_ACTIVITY_STATUSES
WF_ITEM_ACTIVITY_STATUSES_H
WF_COMMENTS
WF_NOTIFICATIONS
WF_ITEM_ATTRIBUTE_VALUES
WF_ACTIVITY_ATTR_VALUES
WF_ACTIVITY_TRANSITIONS
WF_ACTIVITIES_TL
WF_PROCESS_ACTIVITIES
WF_ACTIVITY_ATTRIBUTES_TL
WF_ACTIVITY_ATTRIBUTES
WF_ACTIVITIES
WF_NOTIFICATION_ATTRIBUTES
WF_LOCAL_USER_ROLES
WF_LOCAL_ROLES
WF_USER_ROLE_ASSIGNMENTS
TECHNICAL DOCUMENT
_____________________________________________________________________________________________
(1)

Create the below 2 procedure same as KFMC

APPS.KFSH_WF_ABORT_PROCESS_2010

APPS.KFSH_WF_ABORT_PROCESS_2011

(2)

Take the count of all the required tables.

Below are the Queries.

For 2011 just change the Dates to the ’01-Jan-2011’ and ’31-dec-2011’.

select
count(*)
from
applsys.wf_items wi
where
wi.item_type in ('HRSSA')
and wi.end_date is null
and trunc(wi.begin_date) between '01-JAN-2010' and '31-DEC-2016';

Year Before Purge After Purge Deleted Record


2016 190271 190271

select count(*) from WF_ITEM_ACTIVITY_STATUSES a


where a.BEGIN_DATE between '01-JAN-2010' and '31-DEC-2016';

Year Before Purge After Purge Deleted Record


2016 1337236

select count(*) from WF_ITEM_ACTIVITY_STATUSES_H a


where a.BEGIN_DATE between '01-JAN-2010' and '31-DEC-2016';

Year Before Purge After Purge Deleted Record


2016 419220

select count(*) from WF_COMMENTS a


where a.COMMENT_DATE between '01-JAN-2010' and '31-DEC-2016';

Year Before Purge After Purge Deleted Record


2016 221473
TECHNICAL DOCUMENT
_____________________________________________________________________________________________

select count(*) from WF_NOTIFICATIONS a


where a.BEGIN_DATE between '01-JAN-2010' and '31-DEC-2016';

Year Before Purge After Purge Deleted Record


2016 204078

select count(*) from WF_ITEM_ATTRIBUTE_VALUES a


where a.DATE_VALUE between '01-JAN-2010' and '31-DEC-2016';

Year Before Purge After Purge Deleted Record


2016 250361

select count(*) from WF_ACTIVITY_ATTR_VALUES

Year Before Purge After Purge Deleted Record


2016 81497 81497

select count(*) from WF_ACTIVITY_TRANSITIONS

Year Before Purge After Purge Deleted Record


2016 106777 106777

select count(*) from WF_PROCESS_ACTIVITIES

Year Before Purge After Purge Deleted Record


2016 77507 77507

select count(*) from WF_ACTIVITY_ATTRIBUTES_TL

Year Before Purge After Purge Deleted Record


2016 44932 44932

select count(*) from WF_ACTIVITY_ATTRIBUTES

Year Before Purge After Purge Deleted Record


2016 22466 22466

select count(*) from WF_ACTIVITIES


where BEGIN_DATE between '01-JAN-2010' and '31-DEC-2016';

Year Before Purge After Purge Deleted Record


2016 5321

select count(*) from WF_ACTIVITIES_TL

Year Before Purge After Purge Deleted Record


2016 56176
TECHNICAL DOCUMENT
_____________________________________________________________________________________________
select count(*) from WF_NOTIFICATION_ATTRIBUTES

Year Before Purge After Purge Deleted Record


2016 43358216

select count(*) from WF_LOCAL_USER_ROLES


where CREATION_DATE between '01-JAN-2010' and '31-DEC-2016';

Year Before Purge After Purge Deleted Record


2016 350287

select count(*) from WF_LOCAL_ROLES


where CREATION_DATE between '01-JAN-2010' and '31-DEC-2016';

Year Before Purge After Purge Deleted Record


2016 68950

select count(*) from WF_USER_ROLE_ASSIGNMENTS


where CREATION_DATE between '01-JAN-2010' and '31-DEC-2016';

Year Before Purge After Purge Deleted Record


2016 350476

select count(*) from hr_api_transactions


where creation_date between '01-JAN-2010' and '31-DEC-2016';

Year Before Purge After Purge Deleted Record


2016 138550

19176792

(3)
Execute the APPS.KFSH_WF_ABORT_PROCESS_2010 procedure
With the below parameters as item type in below sequence.

1. WFERROR
2. HRSFL
3. HRSSA
(4)

Run the HRSSA (Purge WF Obsolete runtime data) Con-current program.

(5)

Check the count in the relevant tables for verification.

Please confirm once done in “PRODUCTION”.


TECHNICAL DOCUMENT
_____________________________________________________________________________________________
Thanks & Regards
Evosys Support Team

Vous aimerez peut-être aussi