1 Package hr_ae_contingent_worker_api as
2 /* $Header: pecwkaei.pkh 120.8 2006/04/26 23:50:26 spendhar noship $ */
3 /*#
4 * This package contains contingent APIs.
5 * @rep:scope public
6 * @rep:product PER
7 * @rep:displayname Contingent Worker for UAE
8 */
9 --
10 -- ----------------------------------------------------------------------------
11 -- |---------------------------< create_ae_cwk >-----------------------------|
12 -- ----------------------------------------------------------------------------
13 -- {Start Of Comments}
14 /*#
15 * The following procedure creates a UAE contingent worker.
16 *
17 * This procedure is used to create a person record and a default contingent
18 * worker assignment for a new non-payroll worker.
19 *
20 * <p><b>Licensing</b><br>
21 * This API is licensed for use with Human Resources.
22 *
23 * <p><b>Prerequisites</b><br>
24 * The business group for UAE legislation must already exist. Also a valid
25 * person_type_id, with a corresponding system type of 'CWK', must be active
26 * and in the same business group as that of the applicant being created.
27 *
28 * <p><b>Post Success</b><br>
29 * The person, primary contingent worker assignment and period of placement
30 * will be successfully inserted into the database.
31 *
32 * <p><b>Post Failure</b><br>
33 * The contingent worker will not be created and an error will be raised.
34 *
35 * @param p_validate If true, the database remains unchanged. If false a valid
36 * Contingent worker is created in the database.
37 * @param p_start_date Start date for person, default assignment, placement
38 * @param p_business_group_id Business group of Contingent worker
39 * @param p_family_name Family name
40 * @param p_person_type_id Person type. If null, defaults for system type of Contingent worker
41 * is chosen
42 * @param p_npw_number Identification number of non-payroll worker
43 * @param p_background_check_status Y/N flag indicates whether background check
44 * has been performed
45 * @param p_background_date_check Date background check was performed
46 * @param p_blood_type Blood type
47 * @param p_comments Comments for person record
48 * @param p_correspondence_language Preferred language for correspondance
49 * @param p_country_of_birth Country of birth
50 * @param p_date_of_birth Date of birth
51 * @param p_date_of_death Date of death
52 * @param p_dpdnt_adoption_date Dependent's adoption date
53 * @param p_dpdnt_vlntry_svce_flag Dependent's voluntary service flag
54 * @param p_email_address varchar2 Email address.
55 * @param p_first_name First name
56 * @param p_fte_capacity Full time/part time availability for work
57 * @param p_honors Honors or degrees awarded
58 * @param p_internal_location Internal location of office
59 * @param p_known_as Alternative name
60 * @param p_last_medical_test_by Name of physician who performed last medical test
61 * @param p_last_medical_test_date Date of last medical test
62 * @param p_mailstop Office identifier for internal mail
63 * @param p_marital_status Marital status.
64 * @param p_national_identifier National identifier.
65 * @param p_office_number Number of office
66 * @param p_on_military_service Y/N flag indicating whether person is employed in
67 * military service
68 * @param p_party_id Party Id
69 * @param p_previous_last_name Previous last name
70 * @param p_projected_placement_end Projected end date
71 * @param p_receipt_of_death_cert_date Date the death certificate is received.
72 * @param p_region_of_birth Geographical region of birth
73 * @param p_registered_disabled_flag Registered disabled flag.
74 * @param p_resume_exists Y/N flag indicating whether resume is on file
75 * @param p_resume_last_updated Date resume last updated
76 * @param p_second_passport_exists Y/N flag indicaing whether person has multiple passports
77 * @param p_sex Sex of worker
78 * @param p_student_status Full time/part time status of student
79 * @param p_title varchar2 Title of worker
80 * @param p_place_of_birth Town or city of birth
81 * @param p_uses_tobacco_flag Uses tobacco list of values
82 * @param p_vendor_id Identifier of workers supplying Organization.
83 * @param p_work_schedule Type of work schedule inndicating which days person works
84 * @param p_work_telephone Work telephone.
85 * @param p_exp_check_send_to_address The contingent worker's mailing address.
86 * @param p_hold_applicant_date_until The date until which the applicant should
87 * be put on hold.
88 * @param p_date_employee_data_verified The date when the employee last
89 * verified the data.
90 * @param p_benefit_group_id The identification for benefit group.
91 * @param p_coord_ben_med_pln_no The coordination of the benefits medical group
92 * plan number.
93 * @param p_coord_ben_no_cvg_flag The coordination of the benefits no other
94 * coverage flag.
95 * @param p_original_date_of_hire The original date of hire of the contingent
96 * worker.
97 * @param p_attribute_category Determines the context of the descriptive flexfield
98 * in the parameter list
99 * @param p_attribute1 Descriptive flexfield
100 * @param p_attribute2 Descriptive flexfield
101 * @param p_attribute3 Descriptive flexfield
102 * @param p_attribute4 Descriptive flexfield
103 * @param p_attribute5 Descriptive flexfield
104 * @param p_attribute6 Descriptive flexfield
105 * @param p_attribute7 Descriptive flexfield
106 * @param p_attribute8 Descriptive flexfield
107 * @param p_attribute9 Descriptive flexfield
108 * @param p_attribute10 Descriptive flexfield
109 * @param p_attribute11 Descriptive flexfield
110 * @param p_attribute12 Descriptive flexfield
111 * @param p_attribute13 Descriptive flexfield
112 * @param p_attribute14 Descriptive flexfield
113 * @param p_attribute15 Descriptive flexfield
114 * @param p_attribute16 Descriptive flexfield
115 * @param p_attribute17 Descriptive flexfield
116 * @param p_attribute18 Descriptive flexfield
117 * @param p_attribute19 Descriptive flexfield
118 * @param p_attribute20 Descriptive flexfield
119 * @param p_attribute21 Descriptive flexfield
120 * @param p_attribute22 Descriptive flexfield
121 * @param p_attribute23 Descriptive flexfield
122 * @param p_attribute24 Descriptive flexfield
123 * @param p_attribute25 Descriptive flexfield
124 * @param p_attribute26 Descriptive flexfield
125 * @param p_attribute27 Descriptive flexfield
126 * @param p_attribute28 Descriptive flexfield
127 * @param p_attribute29 Descriptive flexfield
128 * @param p_attribute30 Descriptive flexfield
129 * @param p_father_name Father's Name.
130 * @param p_grandfather_name Grandfather's Name.
131 * @param p_mother_name Mother's Name.
132 * @param p_alt_first_name Alternate first name.
133 * @param p_alt_father_name Father's alternate name.
134 * @param p_alt_grandfather_name Grandfather's alternate name.
135 * @param p_alt_family_name Alternate family name.
136 * @param p_alt_mother_name Alternate mother name.
137 * @param p_previous_nationality Previous Nationality.
138 * @param p_religion Religion.
139 * @param p_education_level Education level.
140 * @param p_alt_place_of_birth Alternate place of birth.
141 * @param p_date_of_change Date of change of nationality.
142 * @param p_reason_for_change Reason for change of nationality.
143 * @param p_nationality Nationality
144 * @param p_person_id If p_validate is false, then this uniquely identifies the
145 * person created. If p_validate is true, then set to null.
146 * @param p_per_object_version_number If p_validate is false, then set to the
147 * version number of the created person. If p_validate is true, then the value
148 * will be null.
149 * @param p_per_effective_start_date If p_validate is false, this will be set
150 * to the effective start date of the person. If p_validate is true this will
151 * be null.
152 * @param p_per_effective_end_date If p_validate is false, this will be set to
153 * the effective end date of the person. If p_validate is true this will be
154 * null.
155 * @param p_pdp_object_version_number If p_validate is false, this will be set
156 * to the version number of the person created. If p_validate is true this
157 * parameter will be set to null.
158 * @param p_full_name If p_validate is false, this will be set to the complete
159 * full name of the person. If p_validate is true this will be null.
160 * @param p_comment_id If p_validate is false and comment text was provided,
161 * then will be set to the identifier of the created contingent worker comment
162 * record. If p_validate is true or no comment text was provided, then will be
163 * null.
164 * @param p_assignment_id If p_validate is false, then this uniquely identifies
165 * the created assignment. If p_validate is true, then set to null.
166 * @param p_asg_object_version_number If p_validate is false, then this
167 * parameter is set to the version number of the assignment created. If
168 * p_validate is true, then this parameter is null.
169 * @param p_assignment_sequence If p_validate is false, this will be set to the
170 * sequence number of the default assignment created. If p_validate is true
171 * this parameter will be set to null.
172 * @param p_assignment_number If p_validate is false this will be set to the
173 * assignment number of the primary assignment. If p_validate is true this will
174 * be null.
175 * @param p_name_combination_warning If set to true, then the combination of
176 * last name, first name and date of birth existed prior to calling this API.
177 * @rep:displayname Create Contigent Worker for UAE
178 * @rep:category BUSINESS_ENTITY PER_CWK
179 * @rep:lifecycle active
180 * @rep:scope public
181 * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
182 */
183 --
184 -- {End Of Comments}
185 --
186 procedure create_ae_cwk
187 (p_validate in boolean default false
188 ,p_start_date in date
189 ,p_business_group_id in number
190 ,p_family_name in varchar2
191 ,p_person_type_id in number default null
192 ,p_npw_number in out nocopy varchar2
193 ,p_background_check_status in varchar2 default null
194 ,p_background_date_check in date default null
195 ,p_blood_type in varchar2 default null
196 ,p_comments in varchar2 default null
197 ,p_correspondence_language in varchar2 default null
198 ,p_country_of_birth in varchar2 default null
199 ,p_date_of_birth in date default null
200 ,p_date_of_death in date default null
201 ,p_dpdnt_adoption_date in date default null
202 ,p_dpdnt_vlntry_svce_flag in varchar2 default null
203 ,p_email_address in varchar2 default null
204 ,p_first_name in varchar2 default null
205 ,p_fte_capacity in number default null
206 ,p_honors in varchar2 default null
207 ,p_internal_location in varchar2 default null
208 ,p_known_as in varchar2 default null
209 ,p_last_medical_test_by in varchar2 default null
210 ,p_last_medical_test_date in date default null
211 ,p_mailstop in varchar2 default null
212 ,p_marital_status in varchar2 default null
213 ,p_national_identifier in varchar2 default null
214 ,p_office_number in varchar2 default null
215 ,p_on_military_service in varchar2 default null
216 ,p_party_id in number default null
217 ,p_previous_last_name in varchar2 default null
218 ,p_projected_placement_end in date default null
219 ,p_receipt_of_death_cert_date in date default null
220 ,p_region_of_birth in varchar2 default null
221 ,p_registered_disabled_flag in varchar2 default null
222 ,p_resume_exists in varchar2 default null
223 ,p_resume_last_updated in date default null
224 ,p_second_passport_exists in varchar2 default null
225 ,p_sex in varchar2 default null
226 ,p_student_status in varchar2 default null
227 ,p_title in varchar2 default null
228 ,p_place_of_birth in varchar2 default null
229 ,p_uses_tobacco_flag in varchar2 default null
230 ,p_vendor_id in number default null
231 ,p_work_schedule in varchar2 default null
232 ,p_work_telephone in varchar2 default null
233 ,p_exp_check_send_to_address in varchar2 default null
234 ,p_hold_applicant_date_until in date default null
235 ,p_date_employee_data_verified in date default null
236 ,p_benefit_group_id in number default null
237 ,p_coord_ben_med_pln_no in varchar2 default null
238 ,p_coord_ben_no_cvg_flag in varchar2 default null
239 ,p_original_date_of_hire in date default null
240 ,p_attribute_category in varchar2 default null
241 ,p_attribute1 in varchar2 default null
242 ,p_attribute2 in varchar2 default null
243 ,p_attribute3 in varchar2 default null
244 ,p_attribute4 in varchar2 default null
245 ,p_attribute5 in varchar2 default null
246 ,p_attribute6 in varchar2 default null
247 ,p_attribute7 in varchar2 default null
248 ,p_attribute8 in varchar2 default null
249 ,p_attribute9 in varchar2 default null
250 ,p_attribute10 in varchar2 default null
251 ,p_attribute11 in varchar2 default null
252 ,p_attribute12 in varchar2 default null
253 ,p_attribute13 in varchar2 default null
254 ,p_attribute14 in varchar2 default null
255 ,p_attribute15 in varchar2 default null
256 ,p_attribute16 in varchar2 default null
257 ,p_attribute17 in varchar2 default null
258 ,p_attribute18 in varchar2 default null
259 ,p_attribute19 in varchar2 default null
260 ,p_attribute20 in varchar2 default null
261 ,p_attribute21 in varchar2 default null
262 ,p_attribute22 in varchar2 default null
263 ,p_attribute23 in varchar2 default null
264 ,p_attribute24 in varchar2 default null
265 ,p_attribute25 in varchar2 default null
266 ,p_attribute26 in varchar2 default null
270 ,p_attribute30 in varchar2 default null
267 ,p_attribute27 in varchar2 default null
268 ,p_attribute28 in varchar2 default null
269 ,p_attribute29 in varchar2 default null
271 ,p_father_name in varchar2 default null
272 ,p_grandfather_name in varchar2 default null
273 ,p_mother_name in varchar2 default null
274 ,p_alt_first_name in varchar2 default null
275 ,p_alt_father_name in varchar2 default null
276 ,p_alt_grandfather_name in varchar2 default null
277 ,p_alt_family_name in varchar2 default null
278 ,p_alt_mother_name in varchar2 default null
279 ,p_previous_nationality in varchar2 default null
280 ,p_religion in varchar2 default null
281 ,p_education_level in varchar2 default null
282 ,p_alt_place_of_birth in varchar2 default null
283 ,p_date_of_change in varchar2 default null
284 ,p_reason_for_change in varchar2 default null
285 ,p_nationality in varchar2 default null
286 ,p_person_id out nocopy number
287 ,p_per_object_version_number out nocopy number
288 ,p_per_effective_start_date out nocopy date
289 ,p_per_effective_end_date out nocopy date
290 ,p_pdp_object_version_number out nocopy number
291 ,p_full_name out nocopy varchar2
292 ,p_comment_id out nocopy number
293 ,p_assignment_id out nocopy number
294 ,p_asg_object_version_number out nocopy number
295 ,p_assignment_sequence out nocopy number
296 ,p_assignment_number out nocopy varchar2
297 ,p_name_combination_warning out nocopy boolean
298 );
299
300 end hr_ae_contingent_worker_api;