760: -- Cursor for retrieving partner-to-opportunity mapping for a process rule.
761: -- -------------------------------------------------------------------------
762: CURSOR lc_partner_mapping IS
763: SELECT a.source_attr_id, a.target_attr_id, a.operator, b.return_type
764: FROM pv_entity_attr_mappings a,
765: pv_attributes_vl b
766: WHERE a.target_attr_id = b.attribute_id AND
767: a.process_rule_id = p_process_rule_id AND
768: a.source_attr_type = 'LEAD' AND