464:
465: /*Rule Object Instance MOAC Changes:
466: * If p_org_id is passed and the set_instance_context is called, then set the MOAC context based on
467: * following logic.
468: * If Product team has not called MO_GLOBAL.INIT then raise an exception.
469: * Else, get the access_mode. If access_mode is not S, then set to S and the passed p_og_id.
470: */
471: l_old_moac_access_mode := MO_GLOBAL.get_access_mode();
472: l_old_org_id := MO_GLOBAL.get_current_org_id();
467: * following logic.
468: * If Product team has not called MO_GLOBAL.INIT then raise an exception.
469: * Else, get the access_mode. If access_mode is not S, then set to S and the passed p_og_id.
470: */
471: l_old_moac_access_mode := MO_GLOBAL.get_access_mode();
472: l_old_org_id := MO_GLOBAL.get_current_org_id();
473:
474: --Does validation and then sets the policy context to S, if its not S and
475: --the passed org id value is not same as current org id value.
468: * If Product team has not called MO_GLOBAL.INIT then raise an exception.
469: * Else, get the access_mode. If access_mode is not S, then set to S and the passed p_og_id.
470: */
471: l_old_moac_access_mode := MO_GLOBAL.get_access_mode();
472: l_old_org_id := MO_GLOBAL.get_current_org_id();
473:
474: --Does validation and then sets the policy context to S, if its not S and
475: --the passed org id value is not same as current org id value.
476:
785:
786: /*Rule Object Instance MOAC Changes:
787: * If p_org_id is passed and the set_instance_context is called, then set the MOAC context based on
788: * following logic.
789: * If Product team has not called MO_GLOBAL.INIT then raise an exception.
790: * Else, get the access_mode. If access_mode is not S, then set to S and the passed p_og_id.
791: */
792: l_old_moac_access_mode := MO_GLOBAL.get_access_mode();
793: l_old_org_id := MO_GLOBAL.get_current_org_id();
788: * following logic.
789: * If Product team has not called MO_GLOBAL.INIT then raise an exception.
790: * Else, get the access_mode. If access_mode is not S, then set to S and the passed p_og_id.
791: */
792: l_old_moac_access_mode := MO_GLOBAL.get_access_mode();
793: l_old_org_id := MO_GLOBAL.get_current_org_id();
794:
795: --Does validation and then sets the policy context to S, if its not S and
796: --the passed org id value is not same as current org id value.
789: * If Product team has not called MO_GLOBAL.INIT then raise an exception.
790: * Else, get the access_mode. If access_mode is not S, then set to S and the passed p_og_id.
791: */
792: l_old_moac_access_mode := MO_GLOBAL.get_access_mode();
793: l_old_org_id := MO_GLOBAL.get_current_org_id();
794:
795: --Does validation and then sets the policy context to S, if its not S and
796: --the passed org id value is not same as current org id value.
797:
2664:
2665: /*Rule Object Instance MOAC Changes:
2666: * If p_org_id is passed and the set_instance_context is called, then set the MOAC context based on
2667: * following logic.
2668: * If Product team has not called MO_GLOBAL.INIT then raise an exception.
2669: * Else, get the access_mode. If access_mode is not S, then set to S and the passed p_og_id.
2670: */
2671: l_old_moac_access_mode := MO_GLOBAL.get_access_mode();
2672: l_old_org_id := MO_GLOBAL.get_current_org_id();
2667: * following logic.
2668: * If Product team has not called MO_GLOBAL.INIT then raise an exception.
2669: * Else, get the access_mode. If access_mode is not S, then set to S and the passed p_og_id.
2670: */
2671: l_old_moac_access_mode := MO_GLOBAL.get_access_mode();
2672: l_old_org_id := MO_GLOBAL.get_current_org_id();
2673:
2674: --Does validation and then sets the policy context to S, if its not S and
2675: --the passed org id value is not same as current org id value.
2668: * If Product team has not called MO_GLOBAL.INIT then raise an exception.
2669: * Else, get the access_mode. If access_mode is not S, then set to S and the passed p_og_id.
2670: */
2671: l_old_moac_access_mode := MO_GLOBAL.get_access_mode();
2672: l_old_org_id := MO_GLOBAL.get_current_org_id();
2673:
2674: --Does validation and then sets the policy context to S, if its not S and
2675: --the passed org id value is not same as current org id value.
2676: