CONTENT UPLOAD CONFIGURATION GUIDE (Day 1)

This document includes following topics:

Creating folder for holding files

Note: We are not providing files out of the box. Please provide files for different documents as per your requirement. Makes sure that proper file names use during procedure execution (Refer to section 1.5.3 column ‘Proc Execution Statement’ for more detail)

Creating global database variable

GRANT READ, WRITE ON DIRECTORY CONTENT_FILES TO &&schema_name;

Creating Procedure

For Origination Disclosure Configuration:

create or replace procedure add_disclosure(
p_file_path in varchar2,
p_file_name in varchar2,
p_mime_type in varchar2,
p_disclosure_code in varchar2,
p_disclosure_name in varchar2,
p_disclosure_desc in varchar2,
p_product_subclass in varchar2)
as
l_blob        blob;
l_file_content             bfile := bfilename(p_file_path, p_file_name);
l_max_val number;
begin
select NVL((max(ID)+1),1) into l_max_val from DIGX_CM_CONTENT;
Insert into DIGX_CM_CONTENT (ID,DOCUMENT_CHECKLIST_ID,TITLE,MIME_TYPE,CONTENT_CATEGORY,CONTENT_TYPE,CONTENT_SIZE,OBJECT_VERSION_NUMBER,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE,OBJECT_STATUS,PARTY_ID,SHARED_FLAG) values
(l_max_val,'1',p_disclosure_name,p_mime_type,null,'FILE',6,null,'obdxuser',sysdate,null,null,null,null,null);
 
insert into DIGX_OR_SUBMISSION_DISCLOSURES (PRODUCT_CLASS, PRODUCT_SUBCLASS, NAME, CONTENT_ID, DESCRIPTION, REFERENCE_ID, DISCLOSURE_CODE)
values ('LOANS', p_product_subclass, p_disclosure_name, l_max_val, p_disclosure_desc, l_max_val, p_disclosure_code);
 
update DIGX_CM_CONTENT set FILE_CONTENT = empty_blob() WHERE ID = l_max_val;
SELECT FILE_CONTENT into l_blob FROM DIGX_CM_CONTENT WHERE ID = l_max_val;
dbms_lob.open(l_file_content, dbms_lob.lob_readonly);
dbms_lob.open(l_blob, dbms_lob.lob_readwrite);
dbms_lob.loadfromfile(dest_lob      => l_blob,
src_lob       => l_file_content,
amount        => dbms_lob.getlength(l_file_content));
dbms_lob.close(l_file_content);
dbms_lob.close(l_blob);
commit;
end;
/

For User Print Document Configuration:

create or replace procedure add_content(
p_file_path in varchar2,
p_file_name in varchar2,
p_mime_type in varchar2,
p_document_name in varchar2
)
as
l_blob        blob;
l_file_content             bfile := bfilename(p_file_path, p_file_name);
l_max_val number;
begin
select NVL((max(ID)+1),1) into l_max_val from DIGX_CM_CONTENT;
Insert into DIGX_CM_CONTENT (ID,DOCUMENT_CHECKLIST_ID,TITLE,MIME_TYPE,CONTENT_CATEGORY,CONTENT_TYPE,CONTENT_SIZE,OBJECT_VERSION_NUMBER,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE,OBJECT_STATUS,PARTY_ID,SHARED_FLAG) values
(l_max_val,'1',p_document_name,p_mime_type,null,'FILE',6,null,'obdxuser',sysdate,null,null,null,null,null);
insert into DIGX_UM_USERPRINTDOCS(CODE, NAME)values (l_max_val, p_document_name);
update DIGX_CM_CONTENT set FILE_CONTENT = empty_blob() WHERE ID = l_max_val;
SELECT FILE_CONTENT into l_blob FROM DIGX_CM_CONTENT WHERE ID = l_max_val;
dbms_lob.open(l_file_content, dbms_lob.lob_readonly);
dbms_lob.open(l_blob, dbms_lob.lob_readwrite);
dbms_lob.loadfromfile(dest_lob      => l_blob,
src_lob       => l_file_content,
amount        => dbms_lob.getlength(l_file_content));
dbms_lob.close(l_file_content);
dbms_lob.close(l_blob);
commit;
end;
/

Verifying DB State Before Procedure Execution

For Origination Disclosure Configuration:

select *  from DIGX_CM_CONTENT;
select *  from DIGX_OR_SUBMISSION_DISCLOSURES;

For User Print Document Configuration:

select *  from DIGX_CM_CONTENT;
select  *  from DIGX_UM_USERPRINTDOCS;

Executing procedure

For Origination Disclosure Configuration:

begin
add_disclosure (
<Variable name for File’s registered path>,
<Files’ Name>,
<CONTENT’S MIME TYPE>,
<DISCLOSURE CODE>,
<DISCLOSURE NAME>,
<DISCLOSURE DESCRIPTION>,
<PRODUCT SUBCLASS>
);
end;
/

For User Print Document Configuration:

begin
add_content (
<Variable name for File’s registered path>,
<Files’ Name>,
<CONTENT’S MIME TYPE>,
<DOCUMENT NAME>
);
end;
/

For Origination Disclosure Configuration:

Sub-Class

Code

Name

Description

MIME Type

Proc Execution Statement

AUTOLOANFLL

ESIGNDISCLOSURE

E-SIGN Disclosure

E-SIGN_ Disclosure

application/pdf

begin
add_disclosure(
'CONTENT_FILES',
'fileName1.pdf',
'application/pdf',
'ESIGNDISCLOSURE',
'E-SIGN Disclosure',
'E-SIGN_Disclosure',
'AUTOLOANFLL' );
end;
/

AUTOLOANFLL

PRIVACYPOLICY

Privacy Policy

Privacy_ Policy

application/pdf

begin
add_disclosure(
'CONTENT_FILES',
'fileName2.pdf',
'application/pdf',
'PRIVACYPOLICY',
'Privacy Policy', 'Privacy_Policy',
'AUTOLOANFLL' );
end;
/

AUTOLOANFLL

LOANACCOUNTAGREEMENT

Loan Account Agreement

Loan_ Account_Agreement

application/pdf

begin
add_disclosure(
'CONTENT_FILES',
'fileName3.pdf',
'application/pdf', 'LOANACCOUNTAGREEMENT',
'Loan Account Agreement', 'Loan_Account_Agreement',
'AUTOLOANFLL' );
end;
/

PAYDAY

ESIGNDISCLOSURE

E-SIGN Disclosure

E-SIGN_ Disclosure

application/pdf

begin
add_disclosure(
'CONTENT_FILES',
'fileName4.pdf',
'application/pdf',
'ESIGNDISCLOSURE',
'E-SIGN Disclosure',
'E-SIGN_Disclosure',
'PAYDAY');
end;
/

PAYDAY

PRIVACYPOLICY

Privacy Policy

Privacy_ Policy

application/pdf

begin
add_disclosure(
'CONTENT_FILES',
'fileName5.pdf',
'application/pdf', 'PRIVACYPOLICY',
'Privacy Policy',
'Privacy_Policy',
'PAYDAY');
end;
/

PAYDAY

LOANACCOUNTAGREEMENT

Loan Account Agreement

Loan_ Account_Agreement

application/pdf

begin
add_disclosure(
'CONTENT_FILES',
'fileName6.pdf',
'application/pdf',  'LOANACCOUNTAGREEMENT',
'Loan Account Agreement', 'Loan_Account_Agreement',  'PAYDAY');
end;
/

Note: fileName1.pdf - fileName6.pdf must be present at the location mentioned in step 1.1.2.

For User Print Document Configuration:

Name

MIME Type

Proc Execution Statement

Promotional Offer

application/pdf

begin
add_content(
'CONTENT_FILES',
'PromotionalOffer.pdf',
'application/pdf',
'Promotional OfferClosedOffers are different variants of a product offered to the customer. Usually, the behavioral characteristics of the product remain the same, while the marketing attributes differ among offers.');
end;
/

Terms and Conditions

application/pdf

begin
add_content(
'CONTENT_FILES',
'TnC.pdf',
'application/pdf',
'Terms and Conditions');
end;
/

Welcome Letter

application/pdf

begin
add_content(
'CONTENT_FILES',
'WelcomeLetter.pdf',
'application/pdf',
'Welcome Letter');
end;
/

Note: PromotionalOffer.pdf - TnC.pdf- WelcomeLetter.pdf must be present at the location mentioned in step 1.1.2.

Verifying DB State After Procedure Execution

For Origination Disclosure Configuration:

select *  from DIGX_CM_CONTENT;
select *  from DIGX_OR_SUBMISSION_DISCLOSURES;

For User Print Document Configuration:

select *  from DIGX_CM_CONTENT;
select  *  from DIGX_UM_USERPRINTDOCS;

Delete created directory, variable and procedure

For Origination Disclosure Configuration:

drop procedure add_disclosure;

For User Print Document Configuration:

drop procedure add_content;

ATM/Branch Locator

3.1 Maintaining Default Radius

Default Radius of ATMClosedAutomated Teller Machine terminal allows customers having an ATM or debit card to perform several banking transactions such as cash withdrawal, balance inquiry, funds transfer, and so on./Branch Search is 2.5 Kms which can be changed by updating the value of DEFAULT_SEARCH_RADIUS in digx_fw_config_all_b. The updated value will be in effect post server restart.

Home