1 Package hr_fi_contingent_worker_api as
2 /* $Header: pecwkfii.pkh 120.5.12010000.1 2008/07/28 04:28:30 appldev ship $ */
3 /*#
4 * This package contains contingent worker APIs.
5 * @rep:scope public
6 * @rep:product PER
7 * @rep:displayname Contingent Worker for Finland
8 */
9 --
10 -- ----------------------------------------------------------------------------
11 -- |------------------------------< create_fi_cwk >---------------------------|
12 -- ----------------------------------------------------------------------------
13 --
14 -- {Start Of Comments}
15 /*#
16 * The following procedure creates a Finnish contingent worker.
17 *
18 * This procedure is used to create a contingent worker record.
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 Finland 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 contingent worker being
27 * created.
28 *
29 * <p><b>Post Success</b><br>
30 * The contingent worker , primary contingent worker assignment, and period of
31 * placement will be successfully inserted into the database.
32 *
33 * <p><b>Post Failure</b><br>
34 * The contingent worker will not be created and an error will be raised.
35 *
36 * @param p_validate If true, then validation alone will be performed and the
37 * database will remain unchanged. If false and all validation checks pass,
38 * then the database will be modified.
39 * @param p_start_date The start date for the person, default assignment, and
40 * placement.
41 * @param p_business_group_id The business group of the contingent worker.
42 * @param p_last_name The contingent worker's last name.
43 * @param p_person_type_id The person type id. If a person_type_id is not
44 * specified, the API will use the default 'CWK' type for the business group.
45 * @param p_npw_number The number of the non-payroll worker.
46 * @param p_background_check_status The yes/no flag indicates whether the
47 * background check has been performed.
48 * @param p_background_date_check The date the background check was performed.
49 * @param p_blood_type The person's blood group type.
50 * @param p_comments Contingent worker comment text.
51 * @param p_correspondence_language The person's preferred correspondence
52 * language.
53 * @param p_country_of_birth The person's country of birth.
54 * @param p_date_of_birth The person's date of birth.
55 * @param p_date_of_death The person's date of death.
56 * @param p_dpdnt_adoption_date The date the dependent was adopted.
57 * @param p_dpdnt_vlntry_svce_flag The yes/no flag indicates whether the
58 * dependent is on voluntary service.
59 * @param p_email_address The person's email address.
60 * @param p_first_name The person's first name.
61 * @param p_fte_capacity The person's full time or part time availability for
62 * work.
63 * @param p_honors Honors or degrees the person holds.
64 * @param p_internal_location The internal location of the office.
65 * @param p_known_as The person's preferred name.
66 * @param p_last_medical_test_by The name of the physician who performed the
67 * last medical test.
68 * @param p_last_medical_test_date The date of the last medical test.
69 * @param p_mailstop The office identifier for internal mail.
70 * @param p_marital_status The person's marital status.Valid values are defined
71 * by 'MAR_STATUS' lookup type.
72 * @param p_national_identifier The person's national identifier.
73 * @param p_nationality The person's nationality. The valid values are defined
74 * by 'NATIONALITY' lookup type.
75 * @param p_office_number The office number.
76 * @param p_on_military_service The yes/no flag indicates whether the person is
77 * employed in military service.
78 * @param p_party_id The identifier of party.
79 * @param p_previous_last_name The person's previous last name.
80 * @param p_projected_placement_end The projected end date.
81 * @param p_receipt_of_death_cert_date The date the death certificate was
82 * received.
83 * @param p_region_of_birth The person's geographical region of birth.
84 * @param p_registered_disabled_flag The registered disabled flag. The valid
85 * values are defined by the 'REGISTERED_DISABLED' lookup type.
86 * @param p_resume_exists The yes/no flag indicates whether the resume exists.
87 * @param p_resume_last_updated The date the resume was last updated.
88 * @param p_second_passport_exists The yes/no flag indicates whether the person
89 * has multiple passports.
90 * @param p_sex The contingent worker's gender. The valid values are defined by
91 * the 'SEX' lookup type.
92 * @param p_student_status The type of student status. The valid values are
93 * defined by 'STUDENT_STATUS' lookup type.
94 * @param p_title The contingent worker's title. The valid values are defined
95 * by the 'TITLE' lookup type.
96 * @param p_town_of_birth The person's town or city of birth.
97 * @param p_uses_tobacco_flag The person's tobacco usage details. The valid
98 * values are defined by the 'TOBACCO_USER' lookup type.
99 * @param p_vendor_id Identifier for the organisation supplying contingent
100 * workers.
101 * @param p_work_schedule The type of work schedule that indicates which days
102 * the person works. The valid values are defined by 'WORK_SCHEDULE' lookup
103 * type.
104 * @param p_work_telephone The person's work telephone.
105 * @param p_exp_check_send_to_address The person's mailing address.
106 * @param p_hold_applicant_date_until The date up to which the applicant's file
107 * is to be maintained.
108 * @param p_date_employee_data_verified The date on which the person's data was
109 * last verified.
110 * @param p_benefit_group_id The Id for the benefit group.
111 * @param p_coord_ben_med_pln_no The number of an externally provided medical
112 * plan.
113 * @param p_coord_ben_no_cvg_flag The no other coverage flag.
114 * @param p_original_date_of_hire The original hire date.
115 * @param p_attribute_category This context value determines which flexfield
116 * structure to use with the descriptive flexfield segments.
117 * @param p_attribute1 Descriptive flexfield segment.
118 * @param p_attribute2 Descriptive flexfield segment.
119 * @param p_attribute3 Descriptive flexfield segment.
120 * @param p_attribute4 Descriptive flexfield segment.
121 * @param p_attribute5 Descriptive flexfield segment.
122 * @param p_attribute6 Descriptive flexfield segment.
123 * @param p_attribute7 Descriptive flexfield segment.
124 * @param p_attribute8 Descriptive flexfield segment.
125 * @param p_attribute9 Descriptive flexfield segment.
126 * @param p_attribute10 Descriptive flexfield segment.
127 * @param p_attribute11 Descriptive flexfield segment.
128 * @param p_attribute12 Descriptive flexfield segment.
129 * @param p_attribute13 Descriptive flexfield segment.
130 * @param p_attribute14 Descriptive flexfield segment.
131 * @param p_attribute15 Descriptive flexfield segment.
132 * @param p_attribute16 Descriptive flexfield segment.
133 * @param p_attribute17 Descriptive flexfield segment.
134 * @param p_attribute18 Descriptive flexfield segment.
135 * @param p_attribute19 Descriptive flexfield segment.
136 * @param p_attribute20 Descriptive flexfield segment.
137 * @param p_attribute21 Descriptive flexfield segment.
138 * @param p_attribute22 Descriptive flexfield segment.
139 * @param p_attribute23 Descriptive flexfield segment.
140 * @param p_attribute24 Descriptive flexfield segment.
141 * @param p_attribute25 Descriptive flexfield segment.
142 * @param p_attribute26 Descriptive flexfield segment.
143 * @param p_attribute27 Descriptive flexfield segment.
144 * @param p_attribute28 Descriptive flexfield segment.
145 * @param p_attribute29 Descriptive flexfield segment.
146 * @param p_attribute30 Descriptive flexfield segment.
147 * @param p_place_of_residence The person's place of residence.
148 * @param p_secondary_email The person's secondary e-mail.
149 * @param p_epost_address The person's e-post address.
150 * @param p_speed_dial_number The person's speed dial number.
151 * @param p_qualification The person's qualification.
152 * @param p_level The person's education level. The valid values are defined by
153 * 'FI_QUAL_LEVEL' lookup type.
154 * @param p_field The person's education field. The valid values are defined by
155 * 'FI_QUAL_FIELD' lookup type.
156 * @param p_retirement_date The person's retirement date.
157 * @param p_person_id If p_validate is false, then this uniquely identifies the
158 * person created. If p_validate is true, then set to null.
159 * @param p_per_object_version_number If p_validate is false, then set to the
160 * version number of the created person. If p_validate is true, then the value
161 * will be null.
162 * @param p_per_effective_start_date If p_validate is false, this will be set
163 * to the effective start date of the person. If p_validate is true, this will
164 * be null.
165 * @param p_per_effective_end_date If p_validate is false, this will be set to
166 * the effective end date of the person. If p_validate is true, this will be
167 * null.
168 * @param p_pdp_object_version_number If p_validate is false, this will be set
169 * to the version number of the person created. If p_validate is true, this
170 * parameter will be set to null.
171 * @param p_full_name If p_validate is false, this will be set to the complete
172 * full name of the person. If p_validate is true, this will be null.
173 * @param p_comment_id If p_validate is false and comment text was provided,
174 * then will be set to the identifier of the created contingent worker comment
175 * record. If p_validate is true or no comment text was provided, then will be
176 * null.
177 * @param p_assignment_id If p_validate is false, then this uniquely identifies
178 * the created assignment. If p_validate is true, then set to null.
179 * @param p_asg_object_version_number If p_validate is false, then this
180 * parameter is set to the version number of the assignment created. If
181 * p_validate is true, then this parameter is null.
182 * @param p_assignment_sequence If p_validate is false, this will be set to the
183 * sequence number of the default assignment created. If p_validate is true,
184 * this parameter will be set to null.
185 * @param p_assignment_number If p_validate is false this will be set to the
186 * assignment number of the primary assignment. If p_validate is true, this
187 * will be null.
188 * @param p_name_combination_warning If set to true, then the combination of
189 * last name, first name and date of birth existed prior to calling this API.
190 * @param p_union_name Name of the Trade Union to which the contingent worker belongs.
191 * @param p_membership_number Contingent Worker's Trade Union membership number.
192 * @param p_payment_mode Mode of Payment. The lookup type
193 * 'FI_TRADE_UNION_FEE _TYPE' defines the valid values.
194 * @param p_fixed_amount Amount to deducted as Union membership
195 * fees.
196 * @param p_percentage Percentage of gross salary to deducted as Union
197 * membership fees.
198 * @param p_membership_start_date Union membership start date.
199 * @param p_membership_end_date Union membership end date.
200 * @param p_mother_tongue Mother Tongue
201 * @param p_foreign_personal_id Foreign Personal ID
202 * @rep:displayname Create Contingent Worker for Finland
203 * @rep:category BUSINESS_ENTITY PER_CWK
204 * @rep:lifecycle active
205 * @rep:scope public
206 * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
207 */
208 --
209 -- {End Of Comments}
210 --
211 procedure create_fi_cwk
212 (p_validate in boolean default false
213 ,p_start_date in date
214 ,p_business_group_id in number
215 ,p_last_name in varchar2
216 ,p_person_type_id in number default null
217 ,p_npw_number in out nocopy varchar2
218 ,p_background_check_status in varchar2 default null
219 ,p_background_date_check in date default null
220 ,p_blood_type in varchar2 default null
221 ,p_comments in varchar2 default null
222 ,p_correspondence_language in varchar2 default null
223 ,p_country_of_birth in varchar2 default null
224 ,p_date_of_birth in date default null
225 ,p_date_of_death in date default null
226 ,p_dpdnt_adoption_date in date default null
227 ,p_dpdnt_vlntry_svce_flag in varchar2 default null
228 ,p_email_address in varchar2 default null
229 ,p_first_name in varchar2
230 ,p_fte_capacity in number default null
231 ,p_honors in varchar2 default null
232 ,p_internal_location in varchar2 default null
233 ,p_known_as in varchar2 default null
234 ,p_last_medical_test_by in varchar2 default null
235 ,p_last_medical_test_date in date default null
236 ,p_mailstop in varchar2 default null
237 ,p_marital_status in varchar2 default null
238 ,p_national_identifier in varchar2 default null
239 ,p_nationality in varchar2
240 ,p_office_number in varchar2 default null
241 ,p_on_military_service in varchar2 default null
242 ,p_party_id in number default null
243 ,p_previous_last_name in varchar2 default null
244 ,p_projected_placement_end in date default null
245 ,p_receipt_of_death_cert_date in date default null
246 ,p_region_of_birth in varchar2 default null
247 ,p_registered_disabled_flag in varchar2 default null
248 ,p_resume_exists in varchar2 default null
249 ,p_resume_last_updated in date default null
250 ,p_second_passport_exists in varchar2 default null
251 ,p_sex in varchar2 default null
252 ,p_student_status in varchar2 default null
253 ,p_title in varchar2
254 ,p_town_of_birth in varchar2 default null
255 ,p_uses_tobacco_flag in varchar2 default null
256 ,p_vendor_id in number default null
257 ,p_work_schedule in varchar2 default null
258 ,p_work_telephone in varchar2 default null
259 ,p_exp_check_send_to_address in varchar2 default null
260 ,p_hold_applicant_date_until in date default null
261 ,p_date_employee_data_verified in date default null
262 ,p_benefit_group_id in number default null
263 ,p_coord_ben_med_pln_no in varchar2 default null
264 ,p_coord_ben_no_cvg_flag in varchar2 default null
265 ,p_original_date_of_hire in date default null
266 ,p_attribute_category in varchar2 default null
267 ,p_attribute1 in varchar2 default null
268 ,p_attribute2 in varchar2 default null
269 ,p_attribute3 in varchar2 default null
270 ,p_attribute4 in varchar2 default null
271 ,p_attribute5 in varchar2 default null
272 ,p_attribute6 in varchar2 default null
273 ,p_attribute7 in varchar2 default null
274 ,p_attribute8 in varchar2 default null
275 ,p_attribute9 in varchar2 default null
276 ,p_attribute10 in varchar2 default null
277 ,p_attribute11 in varchar2 default null
278 ,p_attribute12 in varchar2 default null
279 ,p_attribute13 in varchar2 default null
280 ,p_attribute14 in varchar2 default null
281 ,p_attribute15 in varchar2 default null
282 ,p_attribute16 in varchar2 default null
283 ,p_attribute17 in varchar2 default null
284 ,p_attribute18 in varchar2 default null
285 ,p_attribute19 in varchar2 default null
286 ,p_attribute20 in varchar2 default null
287 ,p_attribute21 in varchar2 default null
288 ,p_attribute22 in varchar2 default null
289 ,p_attribute23 in varchar2 default null
290 ,p_attribute24 in varchar2 default null
291 ,p_attribute25 in varchar2 default null
292 ,p_attribute26 in varchar2 default null
293 ,p_attribute27 in varchar2 default null
294 ,p_attribute28 in varchar2 default null
298 ,p_secondary_email in varchar2 default null
295 ,p_attribute29 in varchar2 default null
296 ,p_attribute30 in varchar2 default null
297 ,p_place_of_residence in varchar2 default null
299 ,p_epost_address in varchar2 default null
300 ,p_speed_dial_number in varchar2 default null
301 ,p_qualification in varchar2 default null
302 ,p_level in varchar2 default null
306 ,p_membership_number in varchar2 default null
303 ,p_field in varchar2 default null
304 ,p_retirement_date in varchar2 default null
305 ,p_union_name in varchar2 default null
307 ,p_payment_mode in varchar2 default null
308 ,p_fixed_amount in varchar2 default null
309 ,p_percentage in varchar2 default null
310 ,p_membership_start_date in varchar2 default null
311 ,p_membership_end_date in varchar2 default null
312 ,p_mother_tongue in varchar2 default null
313 ,p_foreign_personal_id in varchar2 default null
314 ,p_person_id out nocopy number
315 ,p_per_object_version_number out nocopy number
316 ,p_per_effective_start_date out nocopy date
317 ,p_per_effective_end_date out nocopy date
318 ,p_pdp_object_version_number out nocopy number
319 ,p_full_name out nocopy varchar2
320 ,p_comment_id out nocopy number
321 ,p_assignment_id out nocopy number
322 ,p_asg_object_version_number out nocopy number
323 ,p_assignment_sequence out nocopy number
327
324 ,p_assignment_number out nocopy varchar2
325 ,p_name_combination_warning out nocopy boolean
326 );
328 END hr_fi_contingent_worker_api;