829:
830: begin
831: if (lv_result_code = 'CUG_COMPLETED') then
832: -- set value for Successful completition.
833: lv_task_status_id := fnd_profile.value('CUG_TASK_SUCCESS_STATUS');
834:
835: else
836: -- Set value for Failure Competition.
837: lv_task_status_id := fnd_profile.value('CUG_TASK_FAILED_STATUS');
833: lv_task_status_id := fnd_profile.value('CUG_TASK_SUCCESS_STATUS');
834:
835: else
836: -- Set value for Failure Competition.
837: lv_task_status_id := fnd_profile.value('CUG_TASK_FAILED_STATUS');
838:
839: end if;
840:
841: if (lv_task_status_id is null ) then