DBA Data[Home] [Help]

PACKAGE: APPS.HR_KW_APPLICANT_API

Source


1 package hr_kw_applicant_api as
2 /* $Header: peappkwi.pkh 120.2 2005/10/02 02:37:53 aroussel $ */
3 /*#
4  * This package contains applicant APIs.
5  * @rep:scope public
6  * @rep:product PER
7  * @rep:displayname Applicant for Kuwait
8 */
9 --
10 -- ----------------------------------------------------------------------------
11 -- |---------------------------< create_kw_applicant >------------------------|
12 -- ----------------------------------------------------------------------------
13 --
14 -- {Start Of Comments}
15 /*#
16  * This API creates a new Kuwaiti applicant.
17  *
18  * The API creates the person details, a default primary assignment, and an
19  * application for the applicant. The API calls the generic API
20  * create_applicant, with the parameters set as appropriate for a Kuwaiti
21  * applicant. Secure user functionality is not included in this version of the
22  * API. As this API is effectively an alternative to the API create_applicant,
23  * see that API for further explanation.
24  *
25  * <p><b>Licensing</b><br>
26  * This API is licensed for use with Human Resources.
27  *
28  * <p><b>Prerequisites</b><br>
29  * The business group for Kuwait legislation must exist on the effective date.
30  * The APL type must be active in the same business group as the applicant you
31  * are creating. If you do not specify a person_type_id, the API uses the
32  * default APL type for the business group.
33  *
34  * <p><b>Post Success</b><br>
35  * The API creates a person, application, and default applicant assignment. If
36  * required, then the API also creates the associated assignment budget values
37  * and a letter request.
38  *
39  * <p><b>Post Failure</b><br>
40  * The API does not create an applicant and raises an error.
41  *
42  * @param p_validate If true, then validation alone will be performed and the
43  * database will remain unchanged. If false and all validation checks pass,
44  * then the database will be modified.
45  * @param p_date_received The date an application is received and therefore the
46  * effective start date of the person, application, and assignment.
47  * @param p_business_group_id Identifies the applicant's business group.
48  * @param p_family_name Applicant's family name.
49  * @param p_person_type_id Identifies the person type id. If a person_type_id
50  * is not specified, then the API will use the default 'APL' type for the
51  * business group.
52  * @param p_applicant_number Identifies the applicant's unique number. If the
53  * number generation method is Manual, then this parameter is mandatory. If the
54  * number generation method is Automatic, then the value of this parameter must
55  * be NULL. If p_validate is false and the applicant number generation method
56  * is Automatic, then the parameter value will be set to the generated
57  * applicant number of the person created. If p_validate is false and the
58  * applicant number generation method is Manual, then the parameter value will
59  * be set to the same value passed in. If p_validate is true, then the
60  * parameter value will be set to the same value as passed in.
61  * @param p_comments Applicant comment text.
62  * @param p_date_employee_data_verified The date on which the applicant data
63  * was last verified.
64  * @param p_date_of_birth Date of birth.
65  * @param p_email_address E-mail address.
66  * @param p_expense_check_send_to_addres Address to use as mailing address.
67  * @param p_first_name Applicant's first name.
68  * @param p_known_as Alternative name.
69  * @param p_marital_status Marital status. The lookup type 'MAR_STATUS' defines
70  * the valid values.
71  * @param p_nationality Applicant's nationality. The lookup type 'NATIONALITY'
72  * defines the valid values.
73  * @param p_national_identifier National identifier.
74  * @param p_previous_last_name Previous last name.
75  * @param p_registered_disabled_flag Indicates whether the person is classified
76  * as disabled. The lookup type 'REGISTERED_DISABLED' defines the valid values.
77  * @param p_sex Applicant's sex. The lookup type 'SEX' defines the valid
78  * values.
79  * @param p_title Applicant's title. The lookup type 'TITLE' defines the valid
80  * values.
81  * @param p_work_telephone Work telephone.
82  * @param p_attribute_category This context value determines which flexfield
83  * structure to use with the descriptive flexfield segments.
84  * @param p_attribute1 Descriptive flexfield segment.
85  * @param p_attribute2 Descriptive flexfield segment.
86  * @param p_attribute3 Descriptive flexfield segment.
87  * @param p_attribute4 Descriptive flexfield segment.
88  * @param p_attribute5 Descriptive flexfield segment.
89  * @param p_attribute6 Descriptive flexfield segment.
90  * @param p_attribute7 Descriptive flexfield segment.
91  * @param p_attribute8 Descriptive flexfield segment.
92  * @param p_attribute9 Descriptive flexfield segment.
93  * @param p_attribute10 Descriptive flexfield segment.
94  * @param p_attribute11 Descriptive flexfield segment.
95  * @param p_attribute12 Descriptive flexfield segment.
96  * @param p_attribute13 Descriptive flexfield segment.
97  * @param p_attribute14 Descriptive flexfield segment.
98  * @param p_attribute15 Descriptive flexfield segment.
99  * @param p_attribute16 Descriptive flexfield segment.
100  * @param p_attribute17 Descriptive flexfield segment.
101  * @param p_attribute18 Descriptive flexfield segment.
102  * @param p_attribute19 Descriptive flexfield segment.
103  * @param p_attribute20 Descriptive flexfield segment.
104  * @param p_attribute21 Descriptive flexfield segment.
105  * @param p_attribute22 Descriptive flexfield segment.
106  * @param p_attribute23 Descriptive flexfield segment.
107  * @param p_attribute24 Descriptive flexfield segment.
108  * @param p_attribute25 Descriptive flexfield segment.
109  * @param p_attribute26 Descriptive flexfield segment.
110  * @param p_attribute27 Descriptive flexfield segment.
111  * @param p_attribute28 Descriptive flexfield segment.
112  * @param p_attribute29 Descriptive flexfield segment.
113  * @param p_attribute30 Descriptive flexfield segment.
114  * @param p_father_name Father's name.
115  * @param p_grandfather_name Grandfather's name.
116  * @param p_alt_first_name Alternate first name.
117  * @param p_alt_father_name Father's alternate name.
118  * @param p_alt_grandfather_name Grandfather's alternate name.
119  * @param p_alt_family_name Alternate family name.
120  * @param p_previous_nationality Previous nationality.
121  * @param p_religion Religion.
122  * @param p_background_check_status Y/N flag indicates whether background check
123  * has been performed.
124  * @param p_background_date_check Date background check was performed.
125  * @param p_correspondence_language Preferred language for correspondence.
126  * @param p_fte_capacity Currently unsupported.
127  * @param p_hold_applicant_date_until Date up to which applicant's file to be
128  * maintained.
129  * @param p_honors Honors or degrees awarded.
130  * @param p_mailstop Office identifier for internal mail.
131  * @param p_office_number Number of office.
132  * @param p_on_military_service Type of military service.
133  * @param p_projected_start_date Currently unsupported.
134  * @param p_resume_exists Y/N flag indicating whether resume is available.
135  * @param p_resume_last_updated Date resume was last updated.
136  * @param p_student_status Type of student status. The lookup type
137  * 'STUDENT_STATUS' defines the valid values.
138  * @param p_work_schedule Type of work schedule indicating which days the
139  * person works. The lookup type 'WORK_SCHEDULE' defines the valid values.
140  * @param p_date_of_death Date of death of the applicant.
141  * @param p_benefit_group_id Identifies the applicant's benefit group.
142  * @param p_receipt_of_death_cert_date Date when the death certificate was
143  * received.
144  * @param p_coord_ben_med_pln_no Number of the medical plan provided by an
145  * external organization.
146  * @param p_coord_ben_no_cvg_flag Indicates that the person is not covered by
147  * any other benefit plan.
148  * @param p_uses_tobacco_flag Tobacco type used by the applicant. The lookup
149  * type 'TOBACCO_USER' defines the valid values.
150  * @param p_dpdnt_adoption_date Date the dependent is adopted.
151  * @param p_dpdnt_vlntry_svce_flag Indicates whether the dependent is on
152  * voluntary service.
153  * @param p_original_date_of_hire Original hire date of the applicant.
154  * @param p_town_of_birth Town or city of birth of the applicant.
155  * @param p_region_of_birth Geographical region of birth of the applicant.
156  * @param p_country_of_birth Country of birth of the applicant.
157  * @param p_global_person_id Global identification number for the applicant.
158  * @param p_person_id If p_validate is false, then this uniquely identifies the
159  * person created. If p_validate is true, then set to null.
160  * @param p_assignment_id If p_validate is false, then this uniquely identifies
161  * the created assignment. If p_validate is true, then set to null.
162  * @param p_application_id If p_validate is false, then this uniquely
163  * identifies the created application. If p_validate is true, then set to null.
164  * @param p_per_object_version_number If p_validate is false, then set to the
165  * version number of the created person. If p_validate is true, then the value
166  * will be null.
167  * @param p_asg_object_version_number If p_validate is false, then this
168  * parameter is set to the version number of the assignment created. If
169  * p_validate is true, then this parameter is null.
170  * @param p_apl_object_version_number If p_validate is false, then this will be
171  * set to the version number of the created application. If p_validate is true,
172  * then set to null.
173  * @param p_per_effective_start_date If p_validate is false, then this will be
174  * set to the effective start date of the person. If p_validate is true, then
175  * set to null.
176  * @param p_per_effective_end_date If p_validate is false, then this will be
177  * set to the effective end date of the person. If p_validate is true, then set
178  * to null.
179  * @param p_full_name If p_validate is false, then this will be set to the
180  * complete full name of the person. If p_validate is true, then set to null.
181  * @param p_per_comment_id If p_validate is false, then this will be set to the
182  * ID of the corresponding person comment row, if any comment text exists. If
183  * p_validate is true, then set to null.
184  * @param p_assignment_sequence If p_validate is false, then this will be set
185  * to the sequence number of the default assignment. If p_validate is true,
186  * then set to null.
187  * @param p_name_combination_warning If set to true, then the combination of
188  * last name, first name and date of birth existed prior to calling this API.
189  * @param p_orig_hire_warning Set to true, if the original date of hire is not
190  * null and the person type is not EMP,EMP_APL, EX_EMP, or EX_EMP_APL.
191  * @rep:displayname Create Applicant for Kuwait
192  * @rep:category BUSINESS_ENTITY PER_APPLICANT
193  * @rep:lifecycle active
194  * @rep:scope public
195  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
196 */
197 --
198 -- {End Of Comments}
199 --
200   PROCEDURE create_kw_applicant
201   (p_validate                      in     boolean  default false
202   ,p_date_received                 in     date
203   ,p_business_group_id             in     number
204   ,p_family_name                   in     varchar2
205   ,p_person_type_id                in     number   default null
206   ,p_applicant_number              in out nocopy varchar2
207   ,p_comments                      in     varchar2 default null
208   ,p_date_employee_data_verified   in     date     default null
209   ,p_date_of_birth                 in     date     default null
210   ,p_email_address                 in     varchar2 default null
211   ,p_expense_check_send_to_addres  in     varchar2 default null
212   ,p_first_name                    in     varchar2 default null
213   ,p_known_as                      in     varchar2 default null
214   ,p_marital_status                in     varchar2 default null
215   ,p_nationality                   in     varchar2 default null
216   ,p_national_identifier           in     varchar2 default null
217   ,p_previous_last_name            in     varchar2 default null
218   ,p_registered_disabled_flag      in     varchar2 default null
219   ,p_sex                           in     varchar2 default null
220   ,p_title                         in     varchar2 default null
221   ,p_work_telephone                in     varchar2 default null
222   ,p_attribute_category            in     varchar2 default null
223   ,p_attribute1                    in     varchar2 default null
224   ,p_attribute2                    in     varchar2 default null
225   ,p_attribute3                    in     varchar2 default null
226   ,p_attribute4                    in     varchar2 default null
227   ,p_attribute5                    in     varchar2 default null
228   ,p_attribute6                    in     varchar2 default null
229   ,p_attribute7                    in     varchar2 default null
230   ,p_attribute8                    in     varchar2 default null
231   ,p_attribute9                    in     varchar2 default null
232   ,p_attribute10                   in     varchar2 default null
233   ,p_attribute11                   in     varchar2 default null
234   ,p_attribute12                   in     varchar2 default null
235   ,p_attribute13                   in     varchar2 default null
236   ,p_attribute14                   in     varchar2 default null
237   ,p_attribute15                   in     varchar2 default null
238   ,p_attribute16                   in     varchar2 default null
239   ,p_attribute17                   in     varchar2 default null
240   ,p_attribute18                   in     varchar2 default null
241   ,p_attribute19                   in     varchar2 default null
242   ,p_attribute20                   in     varchar2 default null
243   ,p_attribute21                   in     varchar2 default null
244   ,p_attribute22                   in     varchar2 default null
245   ,p_attribute23                   in     varchar2 default null
246   ,p_attribute24                   in     varchar2 default null
247   ,p_attribute25                   in     varchar2 default null
248   ,p_attribute26                   in     varchar2 default null
249   ,p_attribute27                   in     varchar2 default null
250   ,p_attribute28                   in     varchar2 default null
251   ,p_attribute29                   in     varchar2 default null
252   ,p_attribute30                   in     varchar2 default null
253   ,p_father_name             	   in     varchar2 default null
254   ,p_grandfather_name              in     varchar2 default null
255   ,p_alt_first_name                in     varchar2 default null
256   ,p_alt_father_name               in     varchar2 default null
257   ,p_alt_grandfather_name          in     varchar2 default null
258   ,p_alt_family_name           	   in     varchar2 default null
259   ,p_previous_nationality          in     varchar2 default null
260   ,p_religion			   in     varchar2 default null
261   ,p_background_check_status       in     varchar2 default null
262   ,p_background_date_check         in     date     default null
263   ,p_correspondence_language       in     varchar2 default null
264   ,p_fte_capacity                  in     number   default null
265   ,p_hold_applicant_date_until     in     date     default null
269   ,p_on_military_service           in     varchar2 default null
266   ,p_honors                        in     varchar2 default null
267   ,p_mailstop                      in     varchar2 default null
268   ,p_office_number                 in     varchar2 default null
270   ,p_projected_start_date          in     date     default null
271   ,p_resume_exists                 in     varchar2 default null
272   ,p_resume_last_updated           in     date     default null
273   ,p_student_status                in     varchar2 default null
274   ,p_work_schedule                 in     varchar2 default null
275   ,p_date_of_death                 in     date     default null
276   ,p_benefit_group_id              in     number   default null
277   ,p_receipt_of_death_cert_date    in     date     default null
278   ,p_coord_ben_med_pln_no          in     varchar2 default null
279   ,p_coord_ben_no_cvg_flag         in     varchar2 default 'N'
280   ,p_uses_tobacco_flag             in     varchar2 default null
281   ,p_dpdnt_adoption_date           in     date     default null
282   ,p_dpdnt_vlntry_svce_flag        in     varchar2 default 'N'
283   ,p_original_date_of_hire         in     date     default null
284   ,p_town_of_birth                 in     varchar2 default null
285   ,p_region_of_birth               in     varchar2 default null
286   ,p_country_of_birth              in     varchar2 default null
287   ,p_global_person_id              in     varchar2 default null
288   ,p_person_id                        out nocopy number
289   ,p_assignment_id                    out nocopy number
290   ,p_application_id                   out nocopy number
291   ,p_per_object_version_number        out nocopy number
292   ,p_asg_object_version_number        out nocopy number
293   ,p_apl_object_version_number        out nocopy number
294   ,p_per_effective_start_date         out nocopy date
295   ,p_per_effective_end_date           out nocopy date
296   ,p_full_name                        out nocopy varchar2
297   ,p_per_comment_id                   out nocopy number
298   ,p_assignment_sequence              out nocopy number
299   ,p_name_combination_warning         out nocopy boolean
300   ,p_orig_hire_warning                out nocopy boolean);
301 
302 end hr_kw_applicant_api;