index

Package px_mass_roe_rules

This package provides messaging support and field validations for the Canadian Mass Record of Employment API (PX_MASS_ROE).


Program units
p_register_entity   Register the attribute value pairs to the message cache for delete operations.
p_register_entity   Registers the attribute/value pairs to the message cache for create and update operations.
p_validate   Validates all data in the record.


p_register_entity

Procedure p_register_entity(p_operation_type     NUMBER,
                            p_internal_record_id gb_common.internal_record_id_type)

Register the attribute value pairs to the message cache for delete operations.
This signature uses the ROWID only, for delete operations.

Parameters
p_operation_type   Type of DML operation: create,update,delete. NUMBER Required
p_internal_record_id   Database ROWID VARCHAR2(18) required


p_register_entity

Procedure p_register_entity(p_operation_type     NUMBER,
                            p_pidm               pxrmroe.pxrmroe_pidm%TYPE,
                            p_pict_code          pxrmroe.pxrmroe_pict_code%TYPE,
                            p_empr_code          pxrmroe.pxrmroe_empr_code%TYPE,
                            p_language_ind       pxrmroe.pxrmroe_language_ind%TYPE,
                            p_roec_code          pxrmroe.pxrmroe_roec_code%TYPE,
                            p_first_day_worked   pxrmroe.pxrmroe_first_day_worked%TYPE,
                            p_last_day_worked    pxrmroe.pxrmroe_last_day_worked%TYPE,
                            p_user_id            pxrmroe.pxrmroe_user_id%TYPE DEFAULT gb_common.f_sct_user,
                            p_recall_ind         pxrmroe.pxrmroe_recall_ind%TYPE,
                            p_recall_date        pxrmroe.pxrmroe_recall_date%TYPE,
                            p_data_origin        pxrmroe.pxrmroe_data_origin%TYPE,
                            p_internal_record_id gb_common.internal_record_id_type)

Registers the attribute/value pairs to the message cache for create and update operations.
 
This signature registers all parameters.

Parameters
p_operation_type   Type of DML operation: create,update,delete. NUMBER Required
p_pidm   Internal Identification Number. NUMBER(8) Required Key
p_pict_code   Payroll ID. VARCHAR2(2) Required Key
p_empr_code   Employer Code. VARCHAR2(4) Required Key
p_language_ind   E - English; F - French;. VARCHAR2(1) Required
p_roec_code   Reason of the employer issuing this ROE. VARCHAR2(3) Required
p_first_day_worked   Employee first worked date. DATE Required
p_last_day_worked   Employee last worked date. DATE Required
p_user_id   User that created or updated the record. VARCHAR2(30) Required
p_recall_ind   The employee will return to active employment indicator. VARCHAR2(1)
p_recall_date   The expected date of the employee return to active employment. DATE
p_data_origin   Source system that created or updated the row. VARCHAR2(30)
p_internal_record_id   Database ROWID VARCHAR2(18) required


p_validate

Procedure p_validate(p_pidm             pxrmroe.pxrmroe_pidm%TYPE,
                     p_pict_code        pxrmroe.pxrmroe_pict_code%TYPE,
                     p_empr_code        pxrmroe.pxrmroe_empr_code%TYPE,
                     p_language_ind     pxrmroe.pxrmroe_language_ind%TYPE,
                     p_roec_code        pxrmroe.pxrmroe_roec_code%TYPE,
                     p_first_day_worked pxrmroe.pxrmroe_first_day_worked%TYPE,
                     p_last_day_worked  pxrmroe.pxrmroe_last_day_worked%TYPE,
                     p_user_id          pxrmroe.pxrmroe_user_id%TYPE DEFAULT gb_common.f_sct_user,
                     p_recall_ind       pxrmroe.pxrmroe_recall_ind%TYPE DEFAULT NULL,
                     p_recall_date      pxrmroe.pxrmroe_recall_date%TYPE DEFAULT NULL,
                     p_data_origin      pxrmroe.pxrmroe_data_origin%TYPE DEFAULT NULL)

Validates all data in the record.

Parameters
p_pidm   Internal Identification Number. NUMBER(8) Required Key
p_pict_code   Payroll ID. VARCHAR2(2) Required Key
p_empr_code   Employer Code. VARCHAR2(4) Required Key
p_language_ind   E - English; F - French;. VARCHAR2(1) Required
p_roec_code   Reason of the employer issuing this ROE. VARCHAR2(3) Required
p_first_day_worked   Employee first worked date. DATE Required
p_last_day_worked   Employee last worked date. DATE Required
p_user_id   User that created or updated the record. VARCHAR2(30) Required
p_recall_ind   The employee will return to active employment indicator. VARCHAR2(1)
p_recall_date   The expected date of the employee return to active employment. DATE
p_data_origin   Source system that created or updated the row. VARCHAR2(30)