Professional Documents
Culture Documents
EBenefits Life Events White Paper
EBenefits Life Events White Paper
All of the object changes are required, except for the page peoplecode change,
which is optional. 5
Within the life event guided process, is a document upload action item. The document upload action
item allows the employee to attach a document that is required for their life event process i.e. birth
certificate for an I had a baby life event.
The document can be marked as needing approval from the Benefits Administrator, based on
selecting the approve document(s) checkbox on the Life Event Rules Table page.
Currently, if a document that needs approval is uploaded, the document upload status will have a
value of complete and the icon will display as a green circle with a white check mark.
When actually, the status should be in-process (icon with green outline w/white inner), since the
Benefits Administrator has not approved the document.
After applying the workaround code listed on pages 6 - 16, the document upload status will remain as
in-process until the document is approved by the Benefits Administrator.
After the document is approved, and the employee re-enters their life event, the document upload
status will have a value of complete and the icon will display as a green circle with a white check
mark.
The workaround code will also address the case where, the employee completes their Life Event using
the complete pushbutton on the Event Completion and Exit page.
Currently, if a document that needs approval is uploaded, the status of the document is set to
complete, after clicking on the complete pushbutton. This causes the document to bypass the
approval process.
After applying the workaround code, if a document needs approval, and the employee click on
complete a message will display. The message will inform the employee that an approval is needed.
TERM DEFINITION
Action Items Defines the action the employee must take on the Life Event pagelet. Action items can be tied to a
transaction page such as a document upload, URL link, or state external websites.
Action Item Icon Icon for the action item, on the Life Event pagelet, which indicates the action item status
Approvals Process Action taken by Benefits Administrator on a document uploaded by an employee, which needs
approval
o High-level summary of the application objects that must be modified for the workaround
o Details of the code changes needed for each application object. The User implementing the
workaround should follow each these steps:
1. Locate the area where the peoplecode will be modified (code in bold text).
2. Copy and paste the code from this document into the application object (code in BLUE
text).
All of the object changes are required, except for the page peoplecode change, which is optional.
1. Record
BN_LE_ATTACH.
o Modify the record to add 2 fields to track the document upload action item.
2. Record peoplecode
FUNCLIB_W3EB.APPROVAL_INFO FieldFormula
o Add a new function, which will store the action item ID of documents being selected for
approval on Benefits > Approve Document Upload page. The ID will be stored in an
array.
o New function that will set the document upload status = complete (icon w/check mark),
on the Life Event pagelet.
W3EB_LE_WRK.COMPLETE_STS_IND.FieldChange
o New code will display message, when the employee attempts to complete a Life Event
(event completion and exit action item/page), and their uploaded document still needs
approval.
3. Page peoplecode
HR_ATT_DD_HDR.Activate
o Add code to set add attachment pushbutton to enable = false, when the uploaded
document has been approved. Setting the pushbutton = false, will not allow other
documents to be uploaded for the life event.
4. Component peoplecode
HR_ATT_DD
W3EB_ATTACH
o Add code, when document is submitted and needs approval, set the document upload
icon to in-progress (outer circle is green and inner is white).
o Add code, when document is submitted and needs approval, update the record
BN_LE_ATTACH with the document upload action item ID.
o Add code, to set the document upload icon equal to in-progress or complete, based on
variables within the code.
1. Record: BN_LE_ATTACH
Modify: Add 2 existing fields to the record.
Rem this function is used to store the itemID of rows that are being approved;
Function RowsToApprove()
If &ApprItems.Find(&pushItemID) = 0 Then
&ApprItems.Push(&pushItemID);
End-If;
End-If;
If &ApprItems.Len = 0 Then
&ApprItems.Push(&pushItemID);
End-If;
End-If;
End-For;
End-Function;
Function DocUploadIcon(&FindItemID)
&docAppr = True;
End-If;
End-If;
End-For;
End-If;
End-Function;
&list_Id = &LEGlobal_Rec.LE_INSTANCE_ID.Value;
&Item_Id = &LEGlobal_Rec.LE_ITEM_ID.Value;
Rem this will prevent other document from being added when the employee life event
document has been approved;
If &RS_DocDefns(&JJ).DERIVED_HR_ATT.W3EB_APPR_STATUS.Value =
"AP" Then
DERIVED_HR_ATT.HR_ATT_ADD_PB.Enabled = False;
End-If;
&list_id = &LEGlobal_Rec.LE_INSTANCE_ID.Value;
&item_id = &LEGlobal_Rec.LE_ITEM_ID.Value;
o File > Open > Application package > W3EB_APPR_EVT_HNDLR > Open
o Double click on appEventHandler
o File > Open > Application package > W3EB_LIFE_EVENT > Open
o Double click on IPStatus
&ObjAItem.Status = "2";
&ObjAItem.PercCompl = 50;
End-If;
o File > Open > Application package > W3EB_LIFE_EVENT > Open
o Double click on ItemStatus
o As an employee, start a life event, where approve document is checked on the Life
Event Rules page i.e. the pre-delivered adoption life event.
o Using the document upload action item, upload a document and SAVE the page
RESULTS: The document upload icon will display as green circle with white inner
color
o Click Continue Later and then re-enter the life event.
RESULTS: The document upload icon will still display as green circle with white
inner color
o Click on the Event Completion and Exit action item. Then click on the complete
pushbutton.
RESULTS: Message displays Your record will open for election once your request is
approved
o Log out and log in as Benefits Admin, and navigate to Benefits > Approve Document
Upload
o Approve the needs approval document.
o Log out and log in to the employee life event: Self Service > Benefits > Life Events >
Continue my Event
RESULTS: The document upload icon will display as green circle with a white check
mark.
o Click on the Event Completion and Exit action item. Then click on the complete
pushbutton.
blogs.oracle.com/oracle Copyright 2015, Oracle and/or its affiliates. All rights reserved. This document is provided for information purposes only, and the
contents hereof are subject to change without notice. This document is not warranted to be error-free, nor subject to any other
warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or
facebook.com/oracle fitness for a particular purpose. We specifically disclaim any liability with respect to this document, and no contractual obligations are
formed either directly or indirectly by this document. This document may not be reproduced or transmitted in any form or by any
twitter.com/oracle means, electronic or mechanical, for any purpose, without our prior written permission.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
oracle.com
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and
are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are
trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.0115