1 Package Body ghr_custom_wgi_validation as
2 /* $Header: ghcuswgi.pkb 115.1 99/10/18 00:34:31 porting ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- | Private Global Definitions |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package varchar2(33) := 'ghr_custom_wgi_validation.'; -- Global package name
9 --
10 -- ----------------------------------------------------------------------------
11 -- |-------------------------------< custom_wgi_criteria >--------------------------|
12 -- ----------------------------------------------------------------------------
13 --
14 procedure custom_wgi_criteria
15 (p_wgi_in_data_rec IN GHR_WGI_PKG.wgi_in_rec_type
16 ,p_wgi_out_data_rec IN OUT GHR_WGI_PKG.wgi_out_rec_type
17 ) IS
18 --
19 l_proc varchar2(72) := g_package||'custom_wgi_criteria';
20 --
21 Begin
22 hr_utility.set_location('Entering:'||l_proc, 5);
23 --
24 /*************** Add custom code here **************/
25 -- /**************** EXAMPLE *********************************
26 -- below is an example of what you may code if you what criteria to check.
27 -- This critera could do some additional eligiblity check on top of the
28 -- ones done by the GHR Auto WGI process.
29 -- If < Customer validation fails > then
30 -- Do not process the WGI for the person
31 -- p_wgi_out_data_rec.process_person := FALSE;
32 -- return;
33 -- else
34 -- Process the WGI for the person
35 -- p_wgi_out_data_rec.process_person := TRUE;
36 -- return;
37 -- end if;
38 --
39 -- NOTE: You need to set process_person to TRUE or FALSE.
40 --
41 -- If you set process_person to FALSE based on your check the
42 -- The Auto WGI process will not process this person for giving
43 -- Auto WGI.
44 --
45 -- If you set process_person to TRUE the Auto WGI process
46 -- will process a Auto WGI for this person.
47 --
48 -- ***********************************************************/
49 --
50 --
51 hr_utility.set_location('Leaving:'||l_proc, 10);
52 end custom_wgi_criteria;
53 --
54 end ghr_custom_wgi_validation;