456:
457: /*Rule Object Instance MOAC Changes:
458: * If p_org_id is passed and the set_instance_context is called, then set the MOAC context based on
459: * following logic.
460: * If Product team has not called MO_GLOBAL.INIT then raise an exception.
461: * Else, get the access_mode. If access_mode is not S, then set to S and the passed p_og_id.
462: */
463: l_old_moac_access_mode := MO_GLOBAL.get_access_mode();
464: l_old_org_id := MO_GLOBAL.get_current_org_id();
459: * following logic.
460: * If Product team has not called MO_GLOBAL.INIT then raise an exception.
461: * Else, get the access_mode. If access_mode is not S, then set to S and the passed p_og_id.
462: */
463: l_old_moac_access_mode := MO_GLOBAL.get_access_mode();
464: l_old_org_id := MO_GLOBAL.get_current_org_id();
465:
466: --Does validation and then sets the policy context to S, if its not S and
467: --the passed org id value is not same as current org id value.
460: * If Product team has not called MO_GLOBAL.INIT then raise an exception.
461: * Else, get the access_mode. If access_mode is not S, then set to S and the passed p_og_id.
462: */
463: l_old_moac_access_mode := MO_GLOBAL.get_access_mode();
464: l_old_org_id := MO_GLOBAL.get_current_org_id();
465:
466: --Does validation and then sets the policy context to S, if its not S and
467: --the passed org id value is not same as current org id value.
468:
777:
778: /*Rule Object Instance MOAC Changes:
779: * If p_org_id is passed and the set_instance_context is called, then set the MOAC context based on
780: * following logic.
781: * If Product team has not called MO_GLOBAL.INIT then raise an exception.
782: * Else, get the access_mode. If access_mode is not S, then set to S and the passed p_og_id.
783: */
784: l_old_moac_access_mode := MO_GLOBAL.get_access_mode();
785: l_old_org_id := MO_GLOBAL.get_current_org_id();
780: * following logic.
781: * If Product team has not called MO_GLOBAL.INIT then raise an exception.
782: * Else, get the access_mode. If access_mode is not S, then set to S and the passed p_og_id.
783: */
784: l_old_moac_access_mode := MO_GLOBAL.get_access_mode();
785: l_old_org_id := MO_GLOBAL.get_current_org_id();
786:
787: --Does validation and then sets the policy context to S, if its not S and
788: --the passed org id value is not same as current org id value.
781: * If Product team has not called MO_GLOBAL.INIT then raise an exception.
782: * Else, get the access_mode. If access_mode is not S, then set to S and the passed p_og_id.
783: */
784: l_old_moac_access_mode := MO_GLOBAL.get_access_mode();
785: l_old_org_id := MO_GLOBAL.get_current_org_id();
786:
787: --Does validation and then sets the policy context to S, if its not S and
788: --the passed org id value is not same as current org id value.
789:
2654:
2655: /*Rule Object Instance MOAC Changes:
2656: * If p_org_id is passed and the set_instance_context is called, then set the MOAC context based on
2657: * following logic.
2658: * If Product team has not called MO_GLOBAL.INIT then raise an exception.
2659: * Else, get the access_mode. If access_mode is not S, then set to S and the passed p_og_id.
2660: */
2661: l_old_moac_access_mode := MO_GLOBAL.get_access_mode();
2662: l_old_org_id := MO_GLOBAL.get_current_org_id();
2657: * following logic.
2658: * If Product team has not called MO_GLOBAL.INIT then raise an exception.
2659: * Else, get the access_mode. If access_mode is not S, then set to S and the passed p_og_id.
2660: */
2661: l_old_moac_access_mode := MO_GLOBAL.get_access_mode();
2662: l_old_org_id := MO_GLOBAL.get_current_org_id();
2663:
2664: --Does validation and then sets the policy context to S, if its not S and
2665: --the passed org id value is not same as current org id value.
2658: * If Product team has not called MO_GLOBAL.INIT then raise an exception.
2659: * Else, get the access_mode. If access_mode is not S, then set to S and the passed p_og_id.
2660: */
2661: l_old_moac_access_mode := MO_GLOBAL.get_access_mode();
2662: l_old_org_id := MO_GLOBAL.get_current_org_id();
2663:
2664: --Does validation and then sets the policy context to S, if its not S and
2665: --the passed org id value is not same as current org id value.
2666: