Sfoglia il codice sorgente

porzadki z CRM proces z view - todo przydało by się obsłużyć @heritage dla dziedziczenia uprawnien z tabeli - ten przykład dobrze to reprezentuje

a.binder 8 anni fa
parent
commit
dce10d259d

+ 49 - 41
SE/schema/ant-object/default_db.CRM_PROCES/CRM_PROCES/CRM_PROCES.xsd

@@ -51,6 +51,14 @@
       </xsd:restriction>
    </xsd:simpleType>
    <xsd:complexType name="CRM_PROCES" id="_CRM_PROCES___d4e4691-1_CRM_PROCES">
+      <system_cache__appinfo:heritage>
+         <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:CRM_PROCES" system_cache__appinfo:heritage_acl="true">
+            <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
+            <acl_rule_inherit_to_all_refs_by_primary/>
+            <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="PARENT_ID"/>
+         </system_cache__appinfo:inherit>
+         <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
+      </system_cache__appinfo:heritage>
       <xsd:sequence id="_CRM_PROCES___d4e4692-1">
          <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e4693-1_ID"/>
          <xsd:element name="PARENT_ID"
@@ -59,7 +67,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -80,7 +88,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -94,7 +102,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -108,7 +116,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -122,7 +130,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -136,7 +144,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -150,7 +158,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -273,7 +281,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -294,7 +302,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -308,7 +316,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -322,7 +330,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -346,7 +354,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -367,7 +375,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -382,7 +390,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -397,7 +405,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -412,7 +420,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -427,7 +435,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -451,7 +459,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -472,7 +480,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -487,7 +495,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -502,7 +510,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -517,7 +525,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -532,7 +540,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -556,7 +564,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -577,7 +585,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -592,7 +600,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -607,7 +615,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -631,7 +639,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -656,7 +664,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -671,7 +679,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -686,7 +694,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -701,7 +709,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -716,7 +724,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -731,7 +739,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -755,7 +763,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -776,7 +784,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -790,7 +798,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -804,7 +812,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -818,7 +826,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -832,7 +840,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -846,7 +854,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>

+ 49 - 41
SE/schema/ant-object/default_db.CRM_PROCES/PROCES/PROCES.xsd

@@ -51,6 +51,14 @@
       </xsd:restriction>
    </xsd:simpleType>
    <xsd:complexType name="CRM_PROCES" id="_CRM_PROCES___d4e4691-1_CRM_PROCES">
+      <system_cache__appinfo:heritage>
+         <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:CRM_PROCES" system_cache__appinfo:heritage_acl="true">
+            <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
+            <acl_rule_inherit_to_all_refs_by_primary/>
+            <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="PARENT_ID"/>
+         </system_cache__appinfo:inherit>
+         <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
+      </system_cache__appinfo:heritage>
       <xsd:sequence id="_CRM_PROCES___d4e4692-1">
          <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e4693-1_ID"/>
          <xsd:element name="PARENT_ID"
@@ -59,7 +67,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -80,7 +88,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -94,7 +102,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -108,7 +116,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -122,7 +130,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -136,7 +144,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -150,7 +158,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -273,7 +281,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -294,7 +302,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -308,7 +316,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -322,7 +330,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -346,7 +354,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -367,7 +375,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -382,7 +390,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -397,7 +405,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -412,7 +420,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -427,7 +435,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -451,7 +459,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -472,7 +480,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -487,7 +495,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -502,7 +510,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -517,7 +525,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -532,7 +540,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -556,7 +564,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -577,7 +585,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -592,7 +600,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -607,7 +615,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -631,7 +639,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -656,7 +664,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -671,7 +679,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -686,7 +694,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -701,7 +709,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -716,7 +724,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -731,7 +739,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -755,7 +763,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -776,7 +784,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -790,7 +798,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -804,7 +812,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -818,7 +826,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -832,7 +840,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -846,7 +854,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>

+ 50 - 42
SE/schema/ant-object/default_db.CRM_PROCES/PROCES_BENEFIT_INFO/PROCES_BENEFIT_INFO.xsd

@@ -13,7 +13,7 @@
    <xsd:import namespace="http://www.opengis.net/gml/3.2"
               schemaLocation="../Types/gml.xsd"/>
    <xsd:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_WSKAZNIK.xsd"
-              schemaLocation="../../default_db.CRM_WSKAZNIK/CRM_WSKAZNIK/CRM_WSKAZNIK.xsd"/>
+              schemaLocation="CRM_WSKAZNIK.xsd"/>
    <xsd:simpleType name="TYPE_Simple" id="_CRM_PROCES___d4e4668-1_TYPE_Simpl">
       <xsd:restriction base="xsd:string">
          <xsd:enumeration value="PROCES_INIT"/>
@@ -51,6 +51,14 @@
       </xsd:restriction>
    </xsd:simpleType>
    <xsd:complexType name="CRM_PROCES" id="_CRM_PROCES___d4e4691-1_CRM_PROCES">
+      <system_cache__appinfo:heritage>
+         <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:CRM_PROCES" system_cache__appinfo:heritage_acl="true">
+            <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
+            <acl_rule_inherit_to_all_refs_by_primary/>
+            <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="PARENT_ID"/>
+         </system_cache__appinfo:inherit>
+         <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
+      </system_cache__appinfo:heritage>
       <xsd:sequence id="_CRM_PROCES___d4e4692-1">
          <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e4693-1_ID"/>
          <xsd:element name="PARENT_ID"
@@ -59,7 +67,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -80,7 +88,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -94,7 +102,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -108,7 +116,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -122,7 +130,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -136,7 +144,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -150,7 +158,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -273,7 +281,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -294,7 +302,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -308,7 +316,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -322,7 +330,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -346,7 +354,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -367,7 +375,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -382,7 +390,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -397,7 +405,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -412,7 +420,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -427,7 +435,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -451,7 +459,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -472,7 +480,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -487,7 +495,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -502,7 +510,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -517,7 +525,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -532,7 +540,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -556,7 +564,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -577,7 +585,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -592,7 +600,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -607,7 +615,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -631,7 +639,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -656,7 +664,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -671,7 +679,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -686,7 +694,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -701,7 +709,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -716,7 +724,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -731,7 +739,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -755,7 +763,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -776,7 +784,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -790,7 +798,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -804,7 +812,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -818,7 +826,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -832,7 +840,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -846,7 +854,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>

+ 49 - 41
SE/schema/ant-object/default_db.CRM_PROCES/PROCES_GROUP_1/PROCES_GROUP_1.xsd

@@ -51,6 +51,14 @@
       </xsd:restriction>
    </xsd:simpleType>
    <xsd:complexType name="CRM_PROCES" id="_CRM_PROCES___d4e4691-1_CRM_PROCES">
+      <system_cache__appinfo:heritage>
+         <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:CRM_PROCES" system_cache__appinfo:heritage_acl="true">
+            <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
+            <acl_rule_inherit_to_all_refs_by_primary/>
+            <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="PARENT_ID"/>
+         </system_cache__appinfo:inherit>
+         <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
+      </system_cache__appinfo:heritage>
       <xsd:sequence id="_CRM_PROCES___d4e4692-1">
          <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e4693-1_ID"/>
          <xsd:element name="PARENT_ID"
@@ -59,7 +67,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -80,7 +88,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -94,7 +102,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -108,7 +116,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -122,7 +130,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -136,7 +144,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -150,7 +158,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -273,7 +281,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -294,7 +302,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -308,7 +316,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -322,7 +330,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -346,7 +354,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -367,7 +375,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -382,7 +390,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -397,7 +405,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -412,7 +420,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -427,7 +435,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -451,7 +459,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -472,7 +480,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -487,7 +495,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -502,7 +510,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -517,7 +525,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -532,7 +540,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -556,7 +564,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -577,7 +585,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -592,7 +600,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -607,7 +615,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -631,7 +639,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -656,7 +664,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -671,7 +679,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -686,7 +694,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -701,7 +709,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -716,7 +724,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -731,7 +739,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -755,7 +763,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -776,7 +784,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -790,7 +798,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -804,7 +812,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -818,7 +826,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -832,7 +840,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -846,7 +854,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>

+ 49 - 41
SE/schema/ant-object/default_db.CRM_PROCES/PROCES_GROUP_2/PROCES_GROUP_2.xsd

@@ -51,6 +51,14 @@
       </xsd:restriction>
    </xsd:simpleType>
    <xsd:complexType name="CRM_PROCES" id="_CRM_PROCES___d4e4691-1_CRM_PROCES">
+      <system_cache__appinfo:heritage>
+         <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:CRM_PROCES" system_cache__appinfo:heritage_acl="true">
+            <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
+            <acl_rule_inherit_to_all_refs_by_primary/>
+            <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="PARENT_ID"/>
+         </system_cache__appinfo:inherit>
+         <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
+      </system_cache__appinfo:heritage>
       <xsd:sequence id="_CRM_PROCES___d4e4692-1">
          <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e4693-1_ID"/>
          <xsd:element name="PARENT_ID"
@@ -59,7 +67,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -80,7 +88,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -94,7 +102,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -108,7 +116,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -122,7 +130,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -136,7 +144,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -150,7 +158,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -273,7 +281,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -294,7 +302,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -308,7 +316,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -322,7 +330,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -346,7 +354,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -367,7 +375,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -382,7 +390,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -397,7 +405,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -412,7 +420,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -427,7 +435,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -451,7 +459,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -472,7 +480,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -487,7 +495,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -502,7 +510,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -517,7 +525,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -532,7 +540,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -556,7 +564,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -577,7 +585,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -592,7 +600,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -607,7 +615,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -631,7 +639,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -656,7 +664,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -671,7 +679,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -686,7 +694,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -701,7 +709,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -716,7 +724,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -731,7 +739,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -755,7 +763,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -776,7 +784,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -790,7 +798,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -804,7 +812,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -818,7 +826,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -832,7 +840,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -846,7 +854,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>

+ 312 - 163
SE/schema/ant-object/default_db.CRM_PROCES/PROCES_INIT/PROCES_INIT.xsd

@@ -1,16 +1,19 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
-   xmlns:default_db__x3A__CRM_PROCES="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
-   xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" xmlns:gml="http://www.opengis.net/gml/3.2"
-   xmlns:default_db__x3A__CRM_WSKAZNIK="https://biuro.biall-net.pl/wfs/default_db/table/CRM_WSKAZNIK.xsd"
-   xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
-   xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
-   elementFormDefault="qualified"
-   targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
-   vc:minVersion="1.0" vc:maxVersion="1.1">
-   <xsd:import namespace="http://www.opengis.net/gml/3.2" schemaLocation="../Types/gml.xsd"/>
+           xmlns:default_db__x3A__CRM_PROCES="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
+           xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+           xmlns:gml="http://www.opengis.net/gml/3.2"
+           xmlns:default_db__x3A__CRM_WSKAZNIK="https://biuro.biall-net.pl/wfs/default_db/table/CRM_WSKAZNIK.xsd"
+           xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
+           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           elementFormDefault="qualified"
+           targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
+           vc:minVersion="1.0"
+           vc:maxVersion="1.1">
+   <xsd:import namespace="http://www.opengis.net/gml/3.2"
+              schemaLocation="../Types/gml.xsd"/>
    <xsd:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_WSKAZNIK.xsd"
-      schemaLocation="../../default_db.CRM_WSKAZNIK/CRM_WSKAZNIK/CRM_WSKAZNIK.xsd"/>
+              schemaLocation="CRM_WSKAZNIK.xsd"/>
    <xsd:simpleType name="TYPE_Simple" id="_CRM_PROCES___d4e4668-1_TYPE_Simpl">
       <xsd:restriction base="xsd:string">
          <xsd:enumeration value="PROCES_INIT"/>
@@ -41,19 +44,31 @@
          <xsd:enumeration value="PROCES_GROUP_2"/>
       </xsd:restriction>
    </xsd:simpleType>
-   <xsd:simpleType name="PROCES_BENEFIT_INFO_Simple" id="_CRM_PROCES___d4e4688-1_PROCES_BEN">
+   <xsd:simpleType name="PROCES_BENEFIT_INFO_Simple"
+                  id="_CRM_PROCES___d4e4688-1_PROCES_BEN">
       <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
          <xsd:enumeration value="PROCES_BENEFIT_INFO"/>
       </xsd:restriction>
    </xsd:simpleType>
    <xsd:complexType name="CRM_PROCES" id="_CRM_PROCES___d4e4691-1_CRM_PROCES">
+      <system_cache__appinfo:heritage>
+         <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:CRM_PROCES" system_cache__appinfo:heritage_acl="true">
+            <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
+            <acl_rule_inherit_to_all_refs_by_primary/>
+            <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="PARENT_ID"/>
+         </system_cache__appinfo:inherit>
+         <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
+      </system_cache__appinfo:heritage>
       <xsd:sequence id="_CRM_PROCES___d4e4692-1">
          <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e4693-1_ID"/>
-         <xsd:element name="PARENT_ID" type="xsd:int" id="_CRM_PROCES___d4e4694-1_PARENT_ID">
+         <xsd:element name="PARENT_ID"
+                     type="xsd:int"
+                     id="_CRM_PROCES___d4e4694-1_PARENT_ID">
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
                <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
@@ -63,77 +78,97 @@
          <xsd:element name="path" type="xsd:string" id="_CRM_PROCES___d4e4701-1_path"/>
          <xsd:element name="DESC" type="xsd:string" id="_CRM_PROCES___d4e4702-1_DESC"/>
          <xsd:element name="OPIS" type="xsd:string" id="_CRM_PROCES___d4e4703-1_OPIS"/>
-         <xsd:element name="TYPE" type="default_db__x3A__CRM_PROCES:TYPE_Simple"
-            id="_CRM_PROCES___d4e4703-1_TYPE"/>
-         <xsd:element maxOccurs="unbounded" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
-            id="_CRM_PROCES___d4e4704-1">
+         <xsd:element name="TYPE"
+                     type="default_db__x3A__CRM_PROCES:TYPE_Simple"
+                     id="_CRM_PROCES___d4e4703-1_TYPE"/>
+         <xsd:element maxOccurs="unbounded"
+                     minOccurs="0"
+                     ref="default_db__x3A__CRM_PROCES:PROCES"
+                     id="_CRM_PROCES___d4e4704-1">
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
                <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
             </xsd:annotation>
          </xsd:element>
-         <xsd:element maxOccurs="unbounded" minOccurs="0"
-            ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4711-1">
+         <xsd:element maxOccurs="unbounded"
+                     minOccurs="0"
+                     ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                     id="_CRM_PROCES___d4e4711-1">
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
                <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
             </xsd:annotation>
          </xsd:element>
-         <xsd:element maxOccurs="unbounded" minOccurs="0"
-            ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4718-1">
+         <xsd:element maxOccurs="unbounded"
+                     minOccurs="0"
+                     ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
+                     id="_CRM_PROCES___d4e4718-1">
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
                <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
             </xsd:annotation>
          </xsd:element>
-         <xsd:element maxOccurs="unbounded" minOccurs="0"
-            ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4725-1">
+         <xsd:element maxOccurs="unbounded"
+                     minOccurs="0"
+                     ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
+                     id="_CRM_PROCES___d4e4725-1">
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
                <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
             </xsd:annotation>
          </xsd:element>
-         <xsd:element maxOccurs="unbounded" minOccurs="0"
-            ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4732-1">
+         <xsd:element maxOccurs="unbounded"
+                     minOccurs="0"
+                     ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
+                     id="_CRM_PROCES___d4e4732-1">
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
                <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
             </xsd:annotation>
          </xsd:element>
-         <xsd:element maxOccurs="unbounded" minOccurs="0"
-            ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4739-1">
+         <xsd:element maxOccurs="unbounded"
+                     minOccurs="0"
+                     ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK"
+                     id="_CRM_PROCES___d4e4739-1">
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
             </xsd:annotation>
          </xsd:element>
       </xsd:sequence>
    </xsd:complexType>
-   <xsd:element name="CRM_PROCES" type="default_db__x3A__CRM_PROCES:CRM_PROCES"
-      id="_CRM_PROCES___d4e4744-1_CRM_PROCES"/>
+   <xsd:element name="CRM_PROCES"
+               type="default_db__x3A__CRM_PROCES:CRM_PROCES"
+               id="_CRM_PROCES___d4e4744-1_CRM_PROCES"/>
    <!--<xsd:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
       <xsd:sequence id="_CRM_PROCES___d14e4417-1">
          <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d14e4418-1_ID"/>
@@ -240,50 +275,63 @@
          <xsd:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:sequence id="_CRM_PROCES___d4e4750-1">
                <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e4751-1_ID"/>
-               <xsd:element name="PARENT_ID" type="xsd:int" id="_CRM_PROCES___d4e4752-1_PARENT_ID">
+               <xsd:element name="PARENT_ID"
+                           type="xsd:int"
+                           id="_CRM_PROCES___d4e4752-1_PARENT_ID">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
                    </xsd:documentation>
-                  </xsd:annotation>
+                 </xsd:annotation>
                </xsd:element>
                <xsd:element name="path" type="xsd:string" id="_CRM_PROCES___d4e4759-1_path"/>
                <xsd:element name="DESC" type="xsd:string" id="_CRM_PROCES___d4e4760-1_DESC"/>
                <xsd:element name="OPIS" type="xsd:string" id="_CRM_PROCES___d4e4763-1_OPIS"/>
-               <xsd:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_INIT_Simple"
-                  id="_CRM_PROCES___d4e4761-1_TYPE"/>
-               <xsd:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES" id="_CRM_PROCES___d4e4762-1">
+               <xsd:element name="TYPE"
+                           type="default_db__x3A__CRM_PROCES:PROCES_INIT_Simple"
+                           id="_CRM_PROCES___d4e4761-1_TYPE"/>
+               <xsd:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES"
+                           id="_CRM_PROCES___d4e4762-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4790-1">
+               <xsd:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
+                           id="_CRM_PROCES___d4e4790-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4797-1">
+               <xsd:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK"
+                           id="_CRM_PROCES___d4e4797-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                   </xsd:annotation>
@@ -292,83 +340,103 @@
          </xsd:restriction>
       </xsd:complexContent>
    </xsd:complexType>
-   <xsd:element name="PROCES_INIT" type="default_db__x3A__CRM_PROCES:PROCES_INIT"
-      id="_CRM_PROCES___d4e4802-1_PROCES_INI"/>
+   <xsd:element name="PROCES_INIT"
+               type="default_db__x3A__CRM_PROCES:PROCES_INIT"
+               id="_CRM_PROCES___d4e4802-1_PROCES_INI"/>
    <xsd:complexType name="PROCES_GROUP_1" id="_CRM_PROCES___d4e4803-1_PROCES_GRO">
       <xsd:complexContent id="_CRM_PROCES___d4e4804-1">
          <xsd:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:sequence id="_CRM_PROCES___d4e4806-1">
                <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e4807-1_ID"/>
-               <xsd:element name="PARENT_ID" type="xsd:int" id="_CRM_PROCES___d4e4808-1_PARENT_ID">
+               <xsd:element name="PARENT_ID"
+                           type="xsd:int"
+                           id="_CRM_PROCES___d4e4808-1_PARENT_ID">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
                      </xsd:documentation>
-                  </xsd:annotation>
-               </xsd:element>
+                   </xsd:annotation>
+                 </xsd:element>
                <xsd:element name="path" type="xsd:string" id="_CRM_PROCES___d4e4815-1_path"/>
                <xsd:element name="DESC" type="xsd:string" id="_CRM_PROCES___d4e4816-1_DESC"/>
                <xsd:element name="OPIS" type="xsd:string" id="_CRM_PROCES___d4e4821-1_OPIS"/>
-               <xsd:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1_Simple"
-                  id="_CRM_PROCES___d4e4817-1_TYPE"/>
-               <xsd:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4825-1">
+               <xsd:element name="TYPE"
+                           type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1_Simple"
+                           id="_CRM_PROCES___d4e4817-1_TYPE"/>
+               <xsd:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                           id="_CRM_PROCES___d4e4825-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4832-1">
+               <xsd:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
+                           id="_CRM_PROCES___d4e4832-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4839-1">
+               <xsd:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
+                           id="_CRM_PROCES___d4e4839-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="1" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4846-1">
+               <xsd:element maxOccurs="1"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
+                           id="_CRM_PROCES___d4e4846-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="0" minOccurs="0"
-                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4853-1">
+               <xsd:element maxOccurs="0"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK"
+                           id="_CRM_PROCES___d4e4853-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                   </xsd:annotation>
@@ -377,83 +445,103 @@
          </xsd:restriction>
       </xsd:complexContent>
    </xsd:complexType>
-   <xsd:element name="PROCES_GROUP_1" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
-      id="_CRM_PROCES___d4e4858-1_PROCES_GRO"/>
+   <xsd:element name="PROCES_GROUP_1"
+               type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
+               id="_CRM_PROCES___d4e4858-1_PROCES_GRO"/>
    <xsd:complexType name="PROCES_GROUP_2" id="_CRM_PROCES___d4e4859-1_PROCES_GRO">
       <xsd:complexContent id="_CRM_PROCES___d4e4860-1">
          <xsd:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:sequence id="_CRM_PROCES___d4e4862-1">
                <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e4863-1_ID"/>
-               <xsd:element name="PARENT_ID" type="xsd:int" id="_CRM_PROCES___d4e4864-1_PARENT_ID">
+               <xsd:element name="PARENT_ID"
+                           type="xsd:int"
+                           id="_CRM_PROCES___d4e4864-1_PARENT_ID">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
                </xsd:documentation>
-                  </xsd:annotation>
-               </xsd:element>
+             </xsd:annotation>
+           </xsd:element>
                <xsd:element name="path" type="xsd:string" id="_CRM_PROCES___d4e4871-1_path"/>
                <xsd:element name="DESC" type="xsd:string" id="_CRM_PROCES___d4e4872-1_DESC"/>
                <xsd:element name="OPIS" type="xsd:string" id="_CRM_PROCES___d4e4879-1_OPIS"/>
-               <xsd:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2_Simple"
-                  id="_CRM_PROCES___d4e4873-1_TYPE"/>
-               <xsd:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4881-1">
+               <xsd:element name="TYPE"
+                           type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2_Simple"
+                           id="_CRM_PROCES___d4e4873-1_TYPE"/>
+               <xsd:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                           id="_CRM_PROCES___d4e4881-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="0" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4888-1">
+               <xsd:element maxOccurs="0"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
+                           id="_CRM_PROCES___d4e4888-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4895-1">
+               <xsd:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
+                           id="_CRM_PROCES___d4e4895-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="1" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4902-1">
+               <xsd:element maxOccurs="1"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
+                           id="_CRM_PROCES___d4e4902-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="0" minOccurs="0"
-                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4909-1">
+               <xsd:element maxOccurs="0"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK"
+                           id="_CRM_PROCES___d4e4909-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                   </xsd:annotation>
@@ -462,59 +550,73 @@
          </xsd:restriction>
       </xsd:complexContent>
    </xsd:complexType>
-   <xsd:element name="PROCES_GROUP_2" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
-      id="_CRM_PROCES___d4e4914-1_PROCES_GRO"/>
+   <xsd:element name="PROCES_GROUP_2"
+               type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
+               id="_CRM_PROCES___d4e4914-1_PROCES_GRO"/>
    <xsd:complexType name="PROCES" id="_CRM_PROCES___d4e4915-1_PROCES">
       <xsd:complexContent id="_CRM_PROCES___d4e4916-1">
          <xsd:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:sequence id="_CRM_PROCES___d4e4918-1">
                <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e4919-1_ID"/>
-               <xsd:element name="PARENT_ID" type="xsd:int" id="_CRM_PROCES___d4e4920-1_PARENT_ID">
+               <xsd:element name="PARENT_ID"
+                           type="xsd:int"
+                           id="_CRM_PROCES___d4e4920-1_PARENT_ID">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
                    </xsd:documentation>
-                  </xsd:annotation>
+                 </xsd:annotation>
                </xsd:element>
                <xsd:element name="path" type="xsd:string" id="_CRM_PROCES___d4e4927-1_path"/>
                <xsd:element name="DESC" type="xsd:string" id="_CRM_PROCES___d4e4928-1_DESC"/>
                <xsd:element name="OPIS" type="xsd:string" id="_CRM_PROCES___d4e4937-1_OPIS"/>
-               <xsd:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_Simple"
-                  id="_CRM_PROCES___d4e4929-1_TYPE"/>
-               <xsd:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES" id="_CRM_PROCES___d4e4930-1">
+               <xsd:element name="TYPE"
+                           type="default_db__x3A__CRM_PROCES:PROCES_Simple"
+                           id="_CRM_PROCES___d4e4929-1_TYPE"/>
+               <xsd:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES"
+                           id="_CRM_PROCES___d4e4930-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="1" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4958-1">
+               <xsd:element maxOccurs="1"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
+                           id="_CRM_PROCES___d4e4958-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4965-1">
+               <xsd:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK"
+                           id="_CRM_PROCES___d4e4965-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                   </xsd:annotation>
@@ -523,24 +625,28 @@
          </xsd:restriction>
       </xsd:complexContent>
    </xsd:complexType>
-   <xsd:element name="PROCES" type="default_db__x3A__CRM_PROCES:PROCES"
-      id="_CRM_PROCES___d4e4970-1_PROCES"/>
+   <xsd:element name="PROCES"
+               type="default_db__x3A__CRM_PROCES:PROCES"
+               id="_CRM_PROCES___d4e4970-1_PROCES"/>
    <xsd:complexType name="PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4971-1_PROCES_BEN">
       <xsd:complexContent id="_CRM_PROCES___d4e4972-1">
          <xsd:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:sequence id="_CRM_PROCES___d4e4974-1">
                <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e4975-1_ID"/>
-               <xsd:element name="PARENT_ID" type="xsd:int" id="_CRM_PROCES___d4e4976-1_PARENT_ID">
+               <xsd:element name="PARENT_ID"
+                           type="xsd:int"
+                           id="_CRM_PROCES___d4e4976-1_PARENT_ID">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
                </xsd:documentation>
-                  </xsd:annotation>
-               </xsd:element>
+             </xsd:annotation>
+           </xsd:element>
                <xsd:element name="path" type="xsd:string" id="_CRM_PROCES___d4e4983-1_path"/>
                <xsd:element name="DESC" type="xsd:string" id="_CRM_PROCES___d4e4984-1_DESC"/>
                <xsd:element name="OPIS" type="xsd:string" id="_CRM_PROCES___d4e4995-1_OPIS"/>
@@ -551,72 +657,90 @@
                      </xsd:restriction>
                   </xsd:simpleType>
                </xsd:element>
-               <xsd:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
-                  id="_CRM_PROCES___d4e4989-1">
+               <xsd:element maxOccurs="0"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES"
+                           id="_CRM_PROCES___d4e4989-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="0" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4996-1">
+               <xsd:element maxOccurs="0"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                           id="_CRM_PROCES___d4e4996-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="0" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e5003-1">
+               <xsd:element maxOccurs="0"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
+                           id="_CRM_PROCES___d4e5003-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="0" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e5010-1">
+               <xsd:element maxOccurs="0"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
+                           id="_CRM_PROCES___d4e5010-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e5017-1">
+               <xsd:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
+                           id="_CRM_PROCES___d4e5017-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID
                      </xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="0" minOccurs="0"
-                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e5024-1">
+               <xsd:element maxOccurs="0"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK"
+                           id="_CRM_PROCES___d4e5024-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                   </xsd:annotation>
@@ -625,90 +749,113 @@
          </xsd:restriction>
       </xsd:complexContent>
    </xsd:complexType>
-   <xsd:element name="PROCES_BENEFIT_INFO" type="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
-      id="_CRM_PROCES___d4e5029-1_PROCES_BEN"/>
+   <xsd:element name="PROCES_BENEFIT_INFO"
+               type="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
+               id="_CRM_PROCES___d4e5029-1_PROCES_BEN"/>
    <xsd:complexType name="PROCES_TREE" id="_CRM_PROCES___d4e5030-1_PROCES_TRE">
       <xsd:complexContent id="_CRM_PROCES___d4e5031-1">
          <xsd:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:sequence id="_CRM_PROCES___d4e5033-1">
                <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e5034-1_ID"/>
-               <xsd:element name="PARENT_ID" type="xsd:int" id="_CRM_PROCES___d4e5035-1_PARENT_ID">
+               <xsd:element name="PARENT_ID"
+                           type="xsd:int"
+                           id="_CRM_PROCES___d4e5035-1_PARENT_ID">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
                </xsd:documentation>
-                  </xsd:annotation>
-               </xsd:element>
+             </xsd:annotation>
+           </xsd:element>
                <xsd:element name="path" type="xsd:string" id="_CRM_PROCES___d4e5042-1_path"/>
                <xsd:element name="DESC" type="xsd:string" id="_CRM_PROCES___d4e5043-1_DESC"/>
                <xsd:element name="OPIS" type="xsd:string" id="_CRM_PROCES___d4e5056-1_OPIS"/>
-               <xsd:element name="TYPE" type="default_db__x3A__CRM_PROCES:TYPE_Simple"
-                  id="_CRM_PROCES___d4e5044-1_TYPE"/>
-               <xsd:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
-                  id="_CRM_PROCES___d4e5045-1">
+               <xsd:element name="TYPE"
+                           type="default_db__x3A__CRM_PROCES:TYPE_Simple"
+                           id="_CRM_PROCES___d4e5044-1_TYPE"/>
+               <xsd:element maxOccurs="0"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES"
+                           id="_CRM_PROCES___d4e5045-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="0" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e5052-1">
+               <xsd:element maxOccurs="0"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                           id="_CRM_PROCES___d4e5052-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e5059-1">
+               <xsd:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
+                           id="_CRM_PROCES___d4e5059-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e5066-1">
+               <xsd:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
+                           id="_CRM_PROCES___d4e5066-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="unbounded" minOccurs="0"
-                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e5073-1">
+               <xsd:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
+                           id="_CRM_PROCES___d4e5073-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                      <xsd:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xsd:documentation>
                   </xsd:annotation>
                </xsd:element>
-               <xsd:element maxOccurs="0" minOccurs="0"
-                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e5080-1">
+               <xsd:element maxOccurs="0"
+                           minOccurs="0"
+                           ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK"
+                           id="_CRM_PROCES___d4e5080-1">
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
                   </xsd:annotation>
@@ -717,6 +864,8 @@
          </xsd:restriction>
       </xsd:complexContent>
    </xsd:complexType>
-   <xsd:element abstract="true" name="PROCES_TREE" type="default_db__x3A__CRM_PROCES:PROCES_TREE"
-      id="_CRM_PROCES___d4e5086-1_PROCES_TRE"/>
+   <xsd:element abstract="true"
+               name="PROCES_TREE"
+               type="default_db__x3A__CRM_PROCES:PROCES_TREE"
+               id="_CRM_PROCES___d4e5086-1_PROCES_TRE"/>
 </xsd:schema>

+ 49 - 41
SE/schema/ant-object/default_db.CRM_PROCES/PROCES_TREE/PROCES_TREE.xsd

@@ -51,6 +51,14 @@
       </xsd:restriction>
    </xsd:simpleType>
    <xsd:complexType name="CRM_PROCES" id="_CRM_PROCES___d4e4691-1_CRM_PROCES">
+      <system_cache__appinfo:heritage>
+         <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:CRM_PROCES" system_cache__appinfo:heritage_acl="true">
+            <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
+            <acl_rule_inherit_to_all_refs_by_primary/>
+            <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="PARENT_ID"/>
+         </system_cache__appinfo:inherit>
+         <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
+      </system_cache__appinfo:heritage>
       <xsd:sequence id="_CRM_PROCES___d4e4692-1">
          <xsd:element name="ID" type="xsd:int" id="_CRM_PROCES___d4e4693-1_ID"/>
          <xsd:element name="PARENT_ID"
@@ -59,7 +67,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -80,7 +88,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -94,7 +102,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -108,7 +116,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -122,7 +130,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -136,7 +144,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -150,7 +158,7 @@
             <xsd:annotation>
                <xsd:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                    system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                   </system_cache__appinfo:flat_relation_cache>
                </xsd:appinfo>
@@ -273,7 +281,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -294,7 +302,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -308,7 +316,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -322,7 +330,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -346,7 +354,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -367,7 +375,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -382,7 +390,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -397,7 +405,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -412,7 +420,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -427,7 +435,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -451,7 +459,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -472,7 +480,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -487,7 +495,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -502,7 +510,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -517,7 +525,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -532,7 +540,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -556,7 +564,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -577,7 +585,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -592,7 +600,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -607,7 +615,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -631,7 +639,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -656,7 +664,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -671,7 +679,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -686,7 +694,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_1/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -701,7 +709,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -716,7 +724,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -731,7 +739,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -755,7 +763,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -776,7 +784,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -790,7 +798,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES_INIT/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -804,7 +812,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -818,7 +826,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_GROUP_2/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -832,7 +840,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>
@@ -846,7 +854,7 @@
                   <xsd:annotation>
                      <xsd:appinfo>
                         <system_cache__appinfo:flat_relation_cache>
-                           <system_cache__appinfo:source system_cache__appinfo:name="ID"
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID" system_cache__appinfo:ref_engine="view"
                                                          system_cache__appinfo:xpath="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/ID_PROCES"/>
                         </system_cache__appinfo:flat_relation_cache>
                      </xsd:appinfo>