a.binder 6 年之前
父節點
當前提交
aa0af5da67

+ 5 - 3
SE/schema/ant-object/build.ant-object.xml

@@ -1,5 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project basedir="./../." name="ant-object" default="default"> 
+<project basedir="./../." name="ant-object" default="default"
+    xmlns:ant-object="http://biuro.biall-net.pl/xmlschema_procesy5/ant-object/ant-object.xsd"
+    > 
     <!-- basedir should point to public-html or SE folder  -->
     
     <include file="../WPS_Functions/system_ui_info_speech/build_system_ui_info_speech.xml" as="p5suis"/>
@@ -7,10 +9,10 @@
     <description>projekt dla kontroli schematow xsd do importu dla procesy5 oraz prac rozwojowych development</description>
   
   <echo>
-      $basedir = {basedir}
+      $basedir = ${basedir}
   </echo>
   
-  
+    <property name="basedir" location="../."/>
     <property name="default_db.ant-object.basedir" location="${basedir}/ant-object"/>
   
   

+ 49 - 0
SE/schema/ant-object/default_db.BI_audit_ENERGA_PRACOWNICY/BI_audit_ENERGA_PRACOWNICY/build.xml

@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
+    basedir="../../../."
+    default="default_db__x3A__BI_audit_ENERGA_PRACOWNICY.html"
+    xmlns:ant-object="http://biuro.biall-net.pl/xmlschema_procesy5/ant-object/ant-object.xsd"
+    xmlns:default_db__x3A__BI_audit_ENERGA_PRACOWNICY="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_PRACOWNICY">
+    
+    
+    <include file="../../build.ant-object.xml"  as="ant-object"/>
+    
+    <property name="default_db__x3A__BI_audit_ENERGA_PRACOWNICY.ant-object.document-uri.default_db" value="default_db"/>
+    <property name="default_db__x3A__BI_audit_ENERGA_PRACOWNICY.ant-object.document-uri.default_db.object" value="BI_audit_ENERGA_PRACOWNICY"/>
+    <property name="default_db__x3A__BI_audit_ENERGA_PRACOWNICY.ant-object.document-uri.default_db.table" value="BI_audit_ENERGA_PRACOWNICY"/>
+    <property name="default_db__x3A__BI_audit_ENERGA_PRACOWNICY.ant-object.document-uri.default_db.element" value="BI_audit_ENERGA_PRACOWNICY"/>
+    
+    <property name="default_db__x3A__BI_audit_ENERGA_PRACOWNICY.ant-object.document-uri.default_db.table.element.basedir" 
+        location="${default_db.ant-object.basedir}/${default_db__x3A__BI_audit_ENERGA_PRACOWNICY.ant-object.document-uri.default_db}.${default_db__x3A__BI_audit_ENERGA_PRACOWNICY.ant-object.document-uri.default_db.object}/${default_db__x3A__BI_audit_ENERGA_PRACOWNICY.ant-object.document-uri.default_db.table}"/> <!-- ${default_db__x3A__BI_audit_ENERGA_PRACOWNICY.ant-object.document-uri.default_db.element} -->
+    
+    
+    <property name="default_db__x3A__BI_audit_ENERGA_PRACOWNICY.xsl" location="${default_db__x3A__BI_audit_ENERGA_PRACOWNICY.ant-object.document-uri.default_db.table.element.basedir}/BI_audit_ENERGA_PRACOWNICY.xsl" />
+    <property name="default_db__x3A__BI_audit_ENERGA_PRACOWNICY.css" location="${default_db__x3A__BI_audit_ENERGA_PRACOWNICY.ant-object.document-uri.default_db.table.element.basedir}/BI_audit_ENERGA_PRACOWNICY.css"/>
+    <property name="default_db__x3A__BI_audit_ENERGA_PRACOWNICY.xml" location="${default_db__x3A__BI_audit_ENERGA_PRACOWNICY.ant-object.document-uri.default_db.table.element.basedir}/BI_audit_ENERGA_PRACOWNICY.xml"/>
+    <property name="default_db__x3A__BI_audit_ENERGA_PRACOWNICY.html" location="${default_db__x3A__BI_audit_ENERGA_PRACOWNICY.ant-object.document-uri.default_db.table.element.basedir}/BI_audit_ENERGA_PRACOWNICY.html"/>
+    
+    
+    <echo>
+        $basedir = ${basedir}
+        $default_db.ant-object.basedir = ${default_db.ant-object.basedir}
+        $default_db__x3A__BI_audit_ENERGA_PRACOWNICY.ant-object.document-uri.default_db.table.element.basedir = ${default_db__x3A__BI_audit_ENERGA_PRACOWNICY.ant-object.document-uri.default_db.table.element.basedir}
+        $default_db__x3A__BI_audit_ENERGA_PRACOWNICY.xsl = ${default_db__x3A__BI_audit_ENERGA_PRACOWNICY.xsl}
+        $default_db__x3A__BI_audit_ENERGA_PRACOWNICY.css = ${default_db__x3A__BI_audit_ENERGA_PRACOWNICY.css}
+        $default_db__x3A__BI_audit_ENERGA_PRACOWNICY.xml = ${default_db__x3A__BI_audit_ENERGA_PRACOWNICY.xml}
+        $default_db__x3A__BI_audit_ENERGA_PRACOWNICY.html = ${default_db__x3A__BI_audit_ENERGA_PRACOWNICY.html}
+    </echo>
+    
+    
+    <target name="default_db__x3A__BI_audit_ENERGA_PRACOWNICY.html" description="2019 08 sample style html for development notes Yellowgroup context">
+        <xslt basedir="${default_db__x3A__BI_audit_ENERGA_PRACOWNICY.ant-object.document-uri.default_db.table.element.basedir}"
+            style="${default_db__x3A__BI_audit_ENERGA_PRACOWNICY.xsl}"  in="${default_db__x3A__BI_audit_ENERGA_PRACOWNICY.xml}"  destdir="./" out="${default_db__x3A__BI_audit_ENERGA_PRACOWNICY.html}" >
+            <factory name="net.sf.saxon.TransformerFactoryImpl">    
+                <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+                <!--<attribute name="http://saxon.sf.net/feature/initialMode" value="build_element_complexType.xml"/>-->
+            </factory>
+            <!--<param name="match_root_element" expression="wfs:FeatureCollection"/>-->
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+        </xslt>
+    </target>
+    
+</project>

+ 592 - 778
SE/schema/ant-object/default_db.CRM_PROCES/CRM_PROCES/CRM_PROCES.xsd

@@ -1,189 +1,152 @@
 <?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"
-            xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
-            xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
-            elementFormDefault="qualified"
-            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
-            vc:minVersion="1.1">
+<xs:schema
+   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"
+   xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+   xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types" elementFormDefault="qualified"
+   targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
+   vc:minVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema"
-              namespace="http://biuro.biall-net.pl/p5/schema/types"
-              schemaLocation="../../../types.xsd"/>
-   <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema"
-              namespace="http://www.opengis.net/gml/3.2"
-              schemaLocation="http://www.opengis.net/gml/3.2"/>
-   <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"/>
-   <xsd:simpleType name="TYPE_Simple" id="_CRM_PROCES___d4e4668-1_TYPE_Simpl">
-      <xsd:restriction base="xsd:string">
-         <xsd:enumeration value="PROCES_INIT"/>
-         <xsd:enumeration value="PROCES_GROUP_1"/>
-         <xsd:enumeration value="PROCES_GROUP_2"/>
-         <xsd:enumeration value="PROCES_BENEFIT_INFO"/>
-         <xsd:enumeration value="PROCES"/>
-         <xsd:enumeration value="TEXT_BREAK"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_INIT_Simple" id="_CRM_PROCES___d4e4676-1_PROCES_INI">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES_INIT"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_Simple" id="_CRM_PROCES___d4e4679-1_PROCES_Sim">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_GROUP_1_Simple" id="_CRM_PROCES___d4e4682-1_PROCES_GRO">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES_GROUP_1"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_GROUP_2_Simple" id="_CRM_PROCES___d4e4685-1_PROCES_GRO">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <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: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:primaryKey="ID">
-      <xsd:annotation>
-         <xsd:appinfo>
+      namespace="http://biuro.biall-net.pl/p5/schema/types" schemaLocation="../../../types.xsd"/>
+   <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema" namespace="http://www.opengis.net/gml/3.2"
+      schemaLocation="http://www.opengis.net/gml/3.2"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_WSKAZNIK.xsd"
+      schemaLocation="../../default_db.CRM_WSKAZNIK/CRM_WSKAZNIK/CRM_WSKAZNIK.xsd"/>
+   <xs:simpleType name="TYPE_Simple" id="_CRM_PROCES___d4e4668-1_TYPE_Simpl">
+      <xs:restriction base="xs:string">
+         <xs:enumeration value="PROCES_INIT"/>
+         <xs:enumeration value="PROCES_GROUP_1"/>
+         <xs:enumeration value="PROCES_GROUP_2"/>
+         <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+         <xs:enumeration value="PROCES"/>
+         <xs:enumeration value="TEXT_BREAK"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_INIT_Simple" id="_CRM_PROCES___d4e4676-1_PROCES_INI">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_INIT"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_Simple" id="_CRM_PROCES___d4e4679-1_PROCES_Sim">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_GROUP_1_Simple" id="_CRM_PROCES___d4e4682-1_PROCES_GRO">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_GROUP_1"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_GROUP_2_Simple" id="_CRM_PROCES___d4e4685-1_PROCES_GRO">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_GROUP_2"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_BENEFIT_INFO_Simple" id="_CRM_PROCES___d4e4688-1_PROCES_BEN">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:complexType name="CRM_PROCES" id="_CRM_PROCES___d4e4691-1_CRM_PROCES"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:annotation>
+         <xs:appinfo>
             <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: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:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
             </system_cache__appinfo:heritage>
-         </xsd:appinfo>
-      </xsd:annotation>
-      <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:annotation>
-               <xsd:appinfo>
+         </xs:appinfo>
+      </xs:annotation>
+      <xs:sequence id="_CRM_PROCES___d4e4692-1">
+         <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4693-1_ID"/>
+         <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4694-1_PARENT_ID">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+               </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4701-1_path"/>
+         <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4702-1_DESC"/>
+         <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4703-1_OPIS"/>
+         <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:TYPE_Simple"
+            id="_CRM_PROCES___d4e4703-1_TYPE"/>
+         <xs:element maxOccurs="unbounded" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+            id="_CRM_PROCES___d4e4704-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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. Backref powinien chodzic</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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania. Backref powinien chodzic</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4711-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4718-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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>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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4725-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4732-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4739-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <!--<xsd:element minOccurs="0" ref="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:annotation>
                <xsd:appinfo>
@@ -194,11 +157,10 @@
                <xsd:documentation>Wchodzenie do rodzicow po Backref - backref powinien </xsd:documentation>
             </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"/>
+      </xs:sequence>
+   </xs:complexType>
+   <xs: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"/>
@@ -300,612 +262,464 @@
          </xsd:element>
       </xsd:sequence>
    </xsd:restriction>-->
-   <xsd:complexType name="PROCES_INIT"
-                    id="_CRM_PROCES___d4e4747-1_PROCES_INI"
-                    system_cache__appinfo:primaryKey="ID">
-      <xsd:complexContent id="_CRM_PROCES___d4e4748-1">
-         <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_GROUP_1"
-                    id="_CRM_PROCES___d4e4803-1_PROCES_GRO"
-                    system_cache__appinfo:primaryKey="ID">
-      <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_GROUP_2"
-                    id="_CRM_PROCES___d4e4859-1_PROCES_GRO"
-                    system_cache__appinfo:primaryKey="ID">
-      <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES"
-                    id="_CRM_PROCES___d4e4915-1_PROCES"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:restriction>
-      </xsd:complexContent>
-   </xsd:complexType>
-   <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"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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"/>
-               <xsd:element name="TYPE" id="_CRM_PROCES___d4e4985-1_TYPE">
-                  <xsd:simpleType id="_CRM_PROCES___d4e4986-1">
-                     <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-                        <xsd:enumeration value="PROCES_BENEFIT_INFO"/>
-                     </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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_TREE"
-                    id="_CRM_PROCES___d4e5030-1_PROCES_TRE"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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>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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:schema>
+   <xs:complexType name="PROCES_INIT" id="_CRM_PROCES___d4e4747-1_PROCES_INI"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4748-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4750-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4751-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4752-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+                   </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4759-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4760-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4763-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_INIT_Simple"
+                  id="_CRM_PROCES___d4e4761-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES" id="_CRM_PROCES___d4e4762-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4790-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4797-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_INIT" type="default_db__x3A__CRM_PROCES:PROCES_INIT"
+      id="_CRM_PROCES___d4e4802-1_PROCES_INI"/>
+   <xs:complexType name="PROCES_GROUP_1" id="_CRM_PROCES___d4e4803-1_PROCES_GRO"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4804-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4806-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4807-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4808-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4815-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4816-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4821-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1_Simple"
+                  id="_CRM_PROCES___d4e4817-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4825-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4832-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4839-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4846-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4853-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_GROUP_1" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
+      id="_CRM_PROCES___d4e4858-1_PROCES_GRO"/>
+   <xs:complexType name="PROCES_GROUP_2" id="_CRM_PROCES___d4e4859-1_PROCES_GRO"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4860-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4862-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4863-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4864-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+               </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4871-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4872-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4879-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2_Simple"
+                  id="_CRM_PROCES___d4e4873-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4881-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4888-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4895-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4902-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4909-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_GROUP_2" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
+      id="_CRM_PROCES___d4e4914-1_PROCES_GRO"/>
+   <xs:complexType name="PROCES" id="_CRM_PROCES___d4e4915-1_PROCES"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4916-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4918-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4919-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4920-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4927-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4928-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4937-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_Simple"
+                  id="_CRM_PROCES___d4e4929-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES" id="_CRM_PROCES___d4e4930-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4958-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4965-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES" type="default_db__x3A__CRM_PROCES:PROCES"
+      id="_CRM_PROCES___d4e4970-1_PROCES"/>
+   <xs:complexType name="PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4971-1_PROCES_BEN"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4972-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4974-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4975-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4976-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4983-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4984-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4995-1_OPIS"/>
+               <xs:element name="TYPE" id="_CRM_PROCES___d4e4985-1_TYPE">
+                  <xs:simpleType id="_CRM_PROCES___d4e4986-1">
+                     <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+                        <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+                     </xs:restriction>
+                  </xs:simpleType>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+                  id="_CRM_PROCES___d4e4989-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                  id="_CRM_PROCES___d4e4996-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e5003-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e5010-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e5017-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e5024-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_BENEFIT_INFO" type="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
+      id="_CRM_PROCES___d4e5029-1_PROCES_BEN"/>
+   <xs:complexType name="PROCES_TREE" id="_CRM_PROCES___d4e5030-1_PROCES_TRE"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e5031-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e5033-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e5034-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e5035-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e5042-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e5043-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e5056-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:TYPE_Simple"
+                  id="_CRM_PROCES___d4e5044-1_TYPE"/>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+                  id="_CRM_PROCES___d4e5045-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                  id="_CRM_PROCES___d4e5052-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e5059-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e5066-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e5073-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e5080-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element abstract="true" name="PROCES_TREE" type="default_db__x3A__CRM_PROCES:PROCES_TREE"
+      id="_CRM_PROCES___d4e5086-1_PROCES_TRE"/>
+</xs:schema>

+ 592 - 778
SE/schema/ant-object/default_db.CRM_PROCES/PROCES/PROCES.xsd

@@ -1,189 +1,152 @@
 <?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"
-            xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
-            xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
-            elementFormDefault="qualified"
-            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
-            vc:minVersion="1.1">
+<xs:schema
+   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"
+   xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+   xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types" elementFormDefault="qualified"
+   targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
+   vc:minVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema"
-              namespace="http://biuro.biall-net.pl/p5/schema/types"
-              schemaLocation="../../../types.xsd"/>
-   <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema"
-              namespace="http://www.opengis.net/gml/3.2"
-              schemaLocation="http://www.opengis.net/gml/3.2"/>
-   <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"/>
-   <xsd:simpleType name="TYPE_Simple" id="_CRM_PROCES___d4e4668-1_TYPE_Simpl">
-      <xsd:restriction base="xsd:string">
-         <xsd:enumeration value="PROCES_INIT"/>
-         <xsd:enumeration value="PROCES_GROUP_1"/>
-         <xsd:enumeration value="PROCES_GROUP_2"/>
-         <xsd:enumeration value="PROCES_BENEFIT_INFO"/>
-         <xsd:enumeration value="PROCES"/>
-         <xsd:enumeration value="TEXT_BREAK"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_INIT_Simple" id="_CRM_PROCES___d4e4676-1_PROCES_INI">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES_INIT"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_Simple" id="_CRM_PROCES___d4e4679-1_PROCES_Sim">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_GROUP_1_Simple" id="_CRM_PROCES___d4e4682-1_PROCES_GRO">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES_GROUP_1"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_GROUP_2_Simple" id="_CRM_PROCES___d4e4685-1_PROCES_GRO">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <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: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:primaryKey="ID">
-      <xsd:annotation>
-         <xsd:appinfo>
+      namespace="http://biuro.biall-net.pl/p5/schema/types" schemaLocation="../../../types.xsd"/>
+   <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema" namespace="http://www.opengis.net/gml/3.2"
+      schemaLocation="http://www.opengis.net/gml/3.2"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_WSKAZNIK.xsd"
+      schemaLocation="../../default_db.CRM_WSKAZNIK/CRM_WSKAZNIK/CRM_WSKAZNIK.xsd"/>
+   <xs:simpleType name="TYPE_Simple" id="_CRM_PROCES___d4e4668-1_TYPE_Simpl">
+      <xs:restriction base="xs:string">
+         <xs:enumeration value="PROCES_INIT"/>
+         <xs:enumeration value="PROCES_GROUP_1"/>
+         <xs:enumeration value="PROCES_GROUP_2"/>
+         <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+         <xs:enumeration value="PROCES"/>
+         <xs:enumeration value="TEXT_BREAK"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_INIT_Simple" id="_CRM_PROCES___d4e4676-1_PROCES_INI">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_INIT"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_Simple" id="_CRM_PROCES___d4e4679-1_PROCES_Sim">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_GROUP_1_Simple" id="_CRM_PROCES___d4e4682-1_PROCES_GRO">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_GROUP_1"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_GROUP_2_Simple" id="_CRM_PROCES___d4e4685-1_PROCES_GRO">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_GROUP_2"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_BENEFIT_INFO_Simple" id="_CRM_PROCES___d4e4688-1_PROCES_BEN">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:complexType name="CRM_PROCES" id="_CRM_PROCES___d4e4691-1_CRM_PROCES"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:annotation>
+         <xs:appinfo>
             <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: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:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
             </system_cache__appinfo:heritage>
-         </xsd:appinfo>
-      </xsd:annotation>
-      <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:annotation>
-               <xsd:appinfo>
+         </xs:appinfo>
+      </xs:annotation>
+      <xs:sequence id="_CRM_PROCES___d4e4692-1">
+         <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4693-1_ID"/>
+         <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4694-1_PARENT_ID">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+               </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4701-1_path"/>
+         <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4702-1_DESC"/>
+         <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4703-1_OPIS"/>
+         <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:TYPE_Simple"
+            id="_CRM_PROCES___d4e4703-1_TYPE"/>
+         <xs:element maxOccurs="unbounded" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+            id="_CRM_PROCES___d4e4704-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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. Backref powinien chodzic</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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania. Backref powinien chodzic</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4711-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4718-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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>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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4725-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4732-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4739-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <!--<xsd:element minOccurs="0" ref="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:annotation>
                <xsd:appinfo>
@@ -194,11 +157,10 @@
                <xsd:documentation>Wchodzenie do rodzicow po Backref - backref powinien </xsd:documentation>
             </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"/>
+      </xs:sequence>
+   </xs:complexType>
+   <xs: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"/>
@@ -300,612 +262,464 @@
          </xsd:element>
       </xsd:sequence>
    </xsd:restriction>-->
-   <xsd:complexType name="PROCES_INIT"
-                    id="_CRM_PROCES___d4e4747-1_PROCES_INI"
-                    system_cache__appinfo:primaryKey="ID">
-      <xsd:complexContent id="_CRM_PROCES___d4e4748-1">
-         <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_GROUP_1"
-                    id="_CRM_PROCES___d4e4803-1_PROCES_GRO"
-                    system_cache__appinfo:primaryKey="ID">
-      <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_GROUP_2"
-                    id="_CRM_PROCES___d4e4859-1_PROCES_GRO"
-                    system_cache__appinfo:primaryKey="ID">
-      <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES"
-                    id="_CRM_PROCES___d4e4915-1_PROCES"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:restriction>
-      </xsd:complexContent>
-   </xsd:complexType>
-   <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"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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"/>
-               <xsd:element name="TYPE" id="_CRM_PROCES___d4e4985-1_TYPE">
-                  <xsd:simpleType id="_CRM_PROCES___d4e4986-1">
-                     <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-                        <xsd:enumeration value="PROCES_BENEFIT_INFO"/>
-                     </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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_TREE"
-                    id="_CRM_PROCES___d4e5030-1_PROCES_TRE"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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>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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:schema>
+   <xs:complexType name="PROCES_INIT" id="_CRM_PROCES___d4e4747-1_PROCES_INI"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4748-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4750-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4751-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4752-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+                   </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4759-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4760-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4763-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_INIT_Simple"
+                  id="_CRM_PROCES___d4e4761-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES" id="_CRM_PROCES___d4e4762-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4790-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4797-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_INIT" type="default_db__x3A__CRM_PROCES:PROCES_INIT"
+      id="_CRM_PROCES___d4e4802-1_PROCES_INI"/>
+   <xs:complexType name="PROCES_GROUP_1" id="_CRM_PROCES___d4e4803-1_PROCES_GRO"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4804-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4806-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4807-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4808-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4815-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4816-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4821-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1_Simple"
+                  id="_CRM_PROCES___d4e4817-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4825-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4832-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4839-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4846-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4853-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_GROUP_1" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
+      id="_CRM_PROCES___d4e4858-1_PROCES_GRO"/>
+   <xs:complexType name="PROCES_GROUP_2" id="_CRM_PROCES___d4e4859-1_PROCES_GRO"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4860-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4862-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4863-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4864-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+               </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4871-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4872-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4879-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2_Simple"
+                  id="_CRM_PROCES___d4e4873-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4881-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4888-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4895-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4902-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4909-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_GROUP_2" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
+      id="_CRM_PROCES___d4e4914-1_PROCES_GRO"/>
+   <xs:complexType name="PROCES" id="_CRM_PROCES___d4e4915-1_PROCES"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4916-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4918-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4919-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4920-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4927-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4928-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4937-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_Simple"
+                  id="_CRM_PROCES___d4e4929-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES" id="_CRM_PROCES___d4e4930-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4958-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4965-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES" type="default_db__x3A__CRM_PROCES:PROCES"
+      id="_CRM_PROCES___d4e4970-1_PROCES"/>
+   <xs:complexType name="PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4971-1_PROCES_BEN"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4972-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4974-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4975-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4976-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4983-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4984-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4995-1_OPIS"/>
+               <xs:element name="TYPE" id="_CRM_PROCES___d4e4985-1_TYPE">
+                  <xs:simpleType id="_CRM_PROCES___d4e4986-1">
+                     <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+                        <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+                     </xs:restriction>
+                  </xs:simpleType>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+                  id="_CRM_PROCES___d4e4989-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                  id="_CRM_PROCES___d4e4996-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e5003-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e5010-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e5017-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e5024-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_BENEFIT_INFO" type="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
+      id="_CRM_PROCES___d4e5029-1_PROCES_BEN"/>
+   <xs:complexType name="PROCES_TREE" id="_CRM_PROCES___d4e5030-1_PROCES_TRE"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e5031-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e5033-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e5034-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e5035-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e5042-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e5043-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e5056-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:TYPE_Simple"
+                  id="_CRM_PROCES___d4e5044-1_TYPE"/>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+                  id="_CRM_PROCES___d4e5045-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                  id="_CRM_PROCES___d4e5052-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e5059-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e5066-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e5073-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e5080-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element abstract="true" name="PROCES_TREE" type="default_db__x3A__CRM_PROCES:PROCES_TREE"
+      id="_CRM_PROCES___d4e5086-1_PROCES_TRE"/>
+</xs:schema>

+ 592 - 778
SE/schema/ant-object/default_db.CRM_PROCES/PROCES_BENEFIT_INFO/PROCES_BENEFIT_INFO.xsd

@@ -1,189 +1,152 @@
 <?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"
-            xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
-            xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
-            elementFormDefault="qualified"
-            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
-            vc:minVersion="1.1">
+<xs:schema
+   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"
+   xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+   xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types" elementFormDefault="qualified"
+   targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
+   vc:minVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema"
-              namespace="http://biuro.biall-net.pl/p5/schema/types"
-              schemaLocation="../../../types.xsd"/>
-   <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema"
-              namespace="http://www.opengis.net/gml/3.2"
-              schemaLocation="http://www.opengis.net/gml/3.2"/>
-   <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"/>
-   <xsd:simpleType name="TYPE_Simple" id="_CRM_PROCES___d4e4668-1_TYPE_Simpl">
-      <xsd:restriction base="xsd:string">
-         <xsd:enumeration value="PROCES_INIT"/>
-         <xsd:enumeration value="PROCES_GROUP_1"/>
-         <xsd:enumeration value="PROCES_GROUP_2"/>
-         <xsd:enumeration value="PROCES_BENEFIT_INFO"/>
-         <xsd:enumeration value="PROCES"/>
-         <xsd:enumeration value="TEXT_BREAK"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_INIT_Simple" id="_CRM_PROCES___d4e4676-1_PROCES_INI">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES_INIT"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_Simple" id="_CRM_PROCES___d4e4679-1_PROCES_Sim">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_GROUP_1_Simple" id="_CRM_PROCES___d4e4682-1_PROCES_GRO">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES_GROUP_1"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_GROUP_2_Simple" id="_CRM_PROCES___d4e4685-1_PROCES_GRO">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <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: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:primaryKey="ID">
-      <xsd:annotation>
-         <xsd:appinfo>
+      namespace="http://biuro.biall-net.pl/p5/schema/types" schemaLocation="../../../types.xsd"/>
+   <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema" namespace="http://www.opengis.net/gml/3.2"
+      schemaLocation="http://www.opengis.net/gml/3.2"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_WSKAZNIK.xsd"
+      schemaLocation="../../default_db.CRM_WSKAZNIK/CRM_WSKAZNIK/CRM_WSKAZNIK.xsd"/>
+   <xs:simpleType name="TYPE_Simple" id="_CRM_PROCES___d4e4668-1_TYPE_Simpl">
+      <xs:restriction base="xs:string">
+         <xs:enumeration value="PROCES_INIT"/>
+         <xs:enumeration value="PROCES_GROUP_1"/>
+         <xs:enumeration value="PROCES_GROUP_2"/>
+         <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+         <xs:enumeration value="PROCES"/>
+         <xs:enumeration value="TEXT_BREAK"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_INIT_Simple" id="_CRM_PROCES___d4e4676-1_PROCES_INI">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_INIT"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_Simple" id="_CRM_PROCES___d4e4679-1_PROCES_Sim">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_GROUP_1_Simple" id="_CRM_PROCES___d4e4682-1_PROCES_GRO">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_GROUP_1"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_GROUP_2_Simple" id="_CRM_PROCES___d4e4685-1_PROCES_GRO">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_GROUP_2"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_BENEFIT_INFO_Simple" id="_CRM_PROCES___d4e4688-1_PROCES_BEN">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:complexType name="CRM_PROCES" id="_CRM_PROCES___d4e4691-1_CRM_PROCES"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:annotation>
+         <xs:appinfo>
             <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: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:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
             </system_cache__appinfo:heritage>
-         </xsd:appinfo>
-      </xsd:annotation>
-      <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:annotation>
-               <xsd:appinfo>
+         </xs:appinfo>
+      </xs:annotation>
+      <xs:sequence id="_CRM_PROCES___d4e4692-1">
+         <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4693-1_ID"/>
+         <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4694-1_PARENT_ID">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+               </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4701-1_path"/>
+         <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4702-1_DESC"/>
+         <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4703-1_OPIS"/>
+         <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:TYPE_Simple"
+            id="_CRM_PROCES___d4e4703-1_TYPE"/>
+         <xs:element maxOccurs="unbounded" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+            id="_CRM_PROCES___d4e4704-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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. Backref powinien chodzic</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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania. Backref powinien chodzic</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4711-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4718-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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>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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4725-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4732-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4739-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <!--<xsd:element minOccurs="0" ref="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:annotation>
                <xsd:appinfo>
@@ -194,11 +157,10 @@
                <xsd:documentation>Wchodzenie do rodzicow po Backref - backref powinien </xsd:documentation>
             </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"/>
+      </xs:sequence>
+   </xs:complexType>
+   <xs: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"/>
@@ -300,612 +262,464 @@
          </xsd:element>
       </xsd:sequence>
    </xsd:restriction>-->
-   <xsd:complexType name="PROCES_INIT"
-                    id="_CRM_PROCES___d4e4747-1_PROCES_INI"
-                    system_cache__appinfo:primaryKey="ID">
-      <xsd:complexContent id="_CRM_PROCES___d4e4748-1">
-         <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_GROUP_1"
-                    id="_CRM_PROCES___d4e4803-1_PROCES_GRO"
-                    system_cache__appinfo:primaryKey="ID">
-      <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_GROUP_2"
-                    id="_CRM_PROCES___d4e4859-1_PROCES_GRO"
-                    system_cache__appinfo:primaryKey="ID">
-      <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES"
-                    id="_CRM_PROCES___d4e4915-1_PROCES"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:restriction>
-      </xsd:complexContent>
-   </xsd:complexType>
-   <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"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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"/>
-               <xsd:element name="TYPE" id="_CRM_PROCES___d4e4985-1_TYPE">
-                  <xsd:simpleType id="_CRM_PROCES___d4e4986-1">
-                     <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-                        <xsd:enumeration value="PROCES_BENEFIT_INFO"/>
-                     </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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_TREE"
-                    id="_CRM_PROCES___d4e5030-1_PROCES_TRE"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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>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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:schema>
+   <xs:complexType name="PROCES_INIT" id="_CRM_PROCES___d4e4747-1_PROCES_INI"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4748-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4750-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4751-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4752-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+                   </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4759-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4760-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4763-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_INIT_Simple"
+                  id="_CRM_PROCES___d4e4761-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES" id="_CRM_PROCES___d4e4762-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4790-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4797-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_INIT" type="default_db__x3A__CRM_PROCES:PROCES_INIT"
+      id="_CRM_PROCES___d4e4802-1_PROCES_INI"/>
+   <xs:complexType name="PROCES_GROUP_1" id="_CRM_PROCES___d4e4803-1_PROCES_GRO"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4804-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4806-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4807-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4808-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4815-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4816-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4821-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1_Simple"
+                  id="_CRM_PROCES___d4e4817-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4825-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4832-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4839-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4846-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4853-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_GROUP_1" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
+      id="_CRM_PROCES___d4e4858-1_PROCES_GRO"/>
+   <xs:complexType name="PROCES_GROUP_2" id="_CRM_PROCES___d4e4859-1_PROCES_GRO"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4860-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4862-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4863-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4864-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+               </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4871-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4872-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4879-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2_Simple"
+                  id="_CRM_PROCES___d4e4873-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4881-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4888-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4895-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4902-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4909-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_GROUP_2" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
+      id="_CRM_PROCES___d4e4914-1_PROCES_GRO"/>
+   <xs:complexType name="PROCES" id="_CRM_PROCES___d4e4915-1_PROCES"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4916-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4918-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4919-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4920-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4927-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4928-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4937-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_Simple"
+                  id="_CRM_PROCES___d4e4929-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES" id="_CRM_PROCES___d4e4930-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4958-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4965-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES" type="default_db__x3A__CRM_PROCES:PROCES"
+      id="_CRM_PROCES___d4e4970-1_PROCES"/>
+   <xs:complexType name="PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4971-1_PROCES_BEN"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4972-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4974-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4975-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4976-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4983-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4984-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4995-1_OPIS"/>
+               <xs:element name="TYPE" id="_CRM_PROCES___d4e4985-1_TYPE">
+                  <xs:simpleType id="_CRM_PROCES___d4e4986-1">
+                     <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+                        <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+                     </xs:restriction>
+                  </xs:simpleType>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+                  id="_CRM_PROCES___d4e4989-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                  id="_CRM_PROCES___d4e4996-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e5003-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e5010-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e5017-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e5024-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_BENEFIT_INFO" type="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
+      id="_CRM_PROCES___d4e5029-1_PROCES_BEN"/>
+   <xs:complexType name="PROCES_TREE" id="_CRM_PROCES___d4e5030-1_PROCES_TRE"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e5031-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e5033-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e5034-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e5035-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e5042-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e5043-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e5056-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:TYPE_Simple"
+                  id="_CRM_PROCES___d4e5044-1_TYPE"/>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+                  id="_CRM_PROCES___d4e5045-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                  id="_CRM_PROCES___d4e5052-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e5059-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e5066-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e5073-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e5080-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element abstract="true" name="PROCES_TREE" type="default_db__x3A__CRM_PROCES:PROCES_TREE"
+      id="_CRM_PROCES___d4e5086-1_PROCES_TRE"/>
+</xs:schema>

+ 592 - 778
SE/schema/ant-object/default_db.CRM_PROCES/PROCES_GROUP_1/PROCES_GROUP_1.xsd

@@ -1,189 +1,152 @@
 <?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"
-            xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
-            xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
-            elementFormDefault="qualified"
-            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
-            vc:minVersion="1.1">
+<xs:schema
+   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"
+   xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+   xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types" elementFormDefault="qualified"
+   targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
+   vc:minVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema"
-              namespace="http://biuro.biall-net.pl/p5/schema/types"
-              schemaLocation="../../../types.xsd"/>
-   <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema"
-              namespace="http://www.opengis.net/gml/3.2"
-              schemaLocation="http://www.opengis.net/gml/3.2"/>
-   <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"/>
-   <xsd:simpleType name="TYPE_Simple" id="_CRM_PROCES___d4e4668-1_TYPE_Simpl">
-      <xsd:restriction base="xsd:string">
-         <xsd:enumeration value="PROCES_INIT"/>
-         <xsd:enumeration value="PROCES_GROUP_1"/>
-         <xsd:enumeration value="PROCES_GROUP_2"/>
-         <xsd:enumeration value="PROCES_BENEFIT_INFO"/>
-         <xsd:enumeration value="PROCES"/>
-         <xsd:enumeration value="TEXT_BREAK"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_INIT_Simple" id="_CRM_PROCES___d4e4676-1_PROCES_INI">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES_INIT"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_Simple" id="_CRM_PROCES___d4e4679-1_PROCES_Sim">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_GROUP_1_Simple" id="_CRM_PROCES___d4e4682-1_PROCES_GRO">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES_GROUP_1"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_GROUP_2_Simple" id="_CRM_PROCES___d4e4685-1_PROCES_GRO">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <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: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:primaryKey="ID">
-      <xsd:annotation>
-         <xsd:appinfo>
+      namespace="http://biuro.biall-net.pl/p5/schema/types" schemaLocation="../../../types.xsd"/>
+   <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema" namespace="http://www.opengis.net/gml/3.2"
+      schemaLocation="http://www.opengis.net/gml/3.2"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_WSKAZNIK.xsd"
+      schemaLocation="../../default_db.CRM_WSKAZNIK/CRM_WSKAZNIK/CRM_WSKAZNIK.xsd"/>
+   <xs:simpleType name="TYPE_Simple" id="_CRM_PROCES___d4e4668-1_TYPE_Simpl">
+      <xs:restriction base="xs:string">
+         <xs:enumeration value="PROCES_INIT"/>
+         <xs:enumeration value="PROCES_GROUP_1"/>
+         <xs:enumeration value="PROCES_GROUP_2"/>
+         <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+         <xs:enumeration value="PROCES"/>
+         <xs:enumeration value="TEXT_BREAK"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_INIT_Simple" id="_CRM_PROCES___d4e4676-1_PROCES_INI">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_INIT"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_Simple" id="_CRM_PROCES___d4e4679-1_PROCES_Sim">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_GROUP_1_Simple" id="_CRM_PROCES___d4e4682-1_PROCES_GRO">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_GROUP_1"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_GROUP_2_Simple" id="_CRM_PROCES___d4e4685-1_PROCES_GRO">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_GROUP_2"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_BENEFIT_INFO_Simple" id="_CRM_PROCES___d4e4688-1_PROCES_BEN">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:complexType name="CRM_PROCES" id="_CRM_PROCES___d4e4691-1_CRM_PROCES"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:annotation>
+         <xs:appinfo>
             <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: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:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
             </system_cache__appinfo:heritage>
-         </xsd:appinfo>
-      </xsd:annotation>
-      <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:annotation>
-               <xsd:appinfo>
+         </xs:appinfo>
+      </xs:annotation>
+      <xs:sequence id="_CRM_PROCES___d4e4692-1">
+         <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4693-1_ID"/>
+         <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4694-1_PARENT_ID">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+               </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4701-1_path"/>
+         <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4702-1_DESC"/>
+         <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4703-1_OPIS"/>
+         <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:TYPE_Simple"
+            id="_CRM_PROCES___d4e4703-1_TYPE"/>
+         <xs:element maxOccurs="unbounded" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+            id="_CRM_PROCES___d4e4704-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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. Backref powinien chodzic</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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania. Backref powinien chodzic</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4711-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4718-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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>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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4725-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4732-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4739-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <!--<xsd:element minOccurs="0" ref="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:annotation>
                <xsd:appinfo>
@@ -194,11 +157,10 @@
                <xsd:documentation>Wchodzenie do rodzicow po Backref - backref powinien </xsd:documentation>
             </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"/>
+      </xs:sequence>
+   </xs:complexType>
+   <xs: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"/>
@@ -300,612 +262,464 @@
          </xsd:element>
       </xsd:sequence>
    </xsd:restriction>-->
-   <xsd:complexType name="PROCES_INIT"
-                    id="_CRM_PROCES___d4e4747-1_PROCES_INI"
-                    system_cache__appinfo:primaryKey="ID">
-      <xsd:complexContent id="_CRM_PROCES___d4e4748-1">
-         <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_GROUP_1"
-                    id="_CRM_PROCES___d4e4803-1_PROCES_GRO"
-                    system_cache__appinfo:primaryKey="ID">
-      <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_GROUP_2"
-                    id="_CRM_PROCES___d4e4859-1_PROCES_GRO"
-                    system_cache__appinfo:primaryKey="ID">
-      <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES"
-                    id="_CRM_PROCES___d4e4915-1_PROCES"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:restriction>
-      </xsd:complexContent>
-   </xsd:complexType>
-   <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"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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"/>
-               <xsd:element name="TYPE" id="_CRM_PROCES___d4e4985-1_TYPE">
-                  <xsd:simpleType id="_CRM_PROCES___d4e4986-1">
-                     <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-                        <xsd:enumeration value="PROCES_BENEFIT_INFO"/>
-                     </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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_TREE"
-                    id="_CRM_PROCES___d4e5030-1_PROCES_TRE"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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>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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:schema>
+   <xs:complexType name="PROCES_INIT" id="_CRM_PROCES___d4e4747-1_PROCES_INI"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4748-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4750-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4751-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4752-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+                   </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4759-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4760-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4763-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_INIT_Simple"
+                  id="_CRM_PROCES___d4e4761-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES" id="_CRM_PROCES___d4e4762-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4790-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4797-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_INIT" type="default_db__x3A__CRM_PROCES:PROCES_INIT"
+      id="_CRM_PROCES___d4e4802-1_PROCES_INI"/>
+   <xs:complexType name="PROCES_GROUP_1" id="_CRM_PROCES___d4e4803-1_PROCES_GRO"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4804-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4806-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4807-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4808-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4815-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4816-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4821-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1_Simple"
+                  id="_CRM_PROCES___d4e4817-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4825-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4832-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4839-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4846-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4853-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_GROUP_1" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
+      id="_CRM_PROCES___d4e4858-1_PROCES_GRO"/>
+   <xs:complexType name="PROCES_GROUP_2" id="_CRM_PROCES___d4e4859-1_PROCES_GRO"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4860-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4862-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4863-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4864-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+               </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4871-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4872-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4879-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2_Simple"
+                  id="_CRM_PROCES___d4e4873-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4881-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4888-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4895-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4902-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4909-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_GROUP_2" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
+      id="_CRM_PROCES___d4e4914-1_PROCES_GRO"/>
+   <xs:complexType name="PROCES" id="_CRM_PROCES___d4e4915-1_PROCES"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4916-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4918-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4919-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4920-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4927-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4928-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4937-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_Simple"
+                  id="_CRM_PROCES___d4e4929-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES" id="_CRM_PROCES___d4e4930-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4958-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4965-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES" type="default_db__x3A__CRM_PROCES:PROCES"
+      id="_CRM_PROCES___d4e4970-1_PROCES"/>
+   <xs:complexType name="PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4971-1_PROCES_BEN"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4972-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4974-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4975-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4976-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4983-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4984-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4995-1_OPIS"/>
+               <xs:element name="TYPE" id="_CRM_PROCES___d4e4985-1_TYPE">
+                  <xs:simpleType id="_CRM_PROCES___d4e4986-1">
+                     <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+                        <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+                     </xs:restriction>
+                  </xs:simpleType>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+                  id="_CRM_PROCES___d4e4989-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                  id="_CRM_PROCES___d4e4996-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e5003-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e5010-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e5017-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e5024-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_BENEFIT_INFO" type="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
+      id="_CRM_PROCES___d4e5029-1_PROCES_BEN"/>
+   <xs:complexType name="PROCES_TREE" id="_CRM_PROCES___d4e5030-1_PROCES_TRE"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e5031-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e5033-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e5034-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e5035-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e5042-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e5043-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e5056-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:TYPE_Simple"
+                  id="_CRM_PROCES___d4e5044-1_TYPE"/>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+                  id="_CRM_PROCES___d4e5045-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                  id="_CRM_PROCES___d4e5052-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e5059-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e5066-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e5073-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e5080-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element abstract="true" name="PROCES_TREE" type="default_db__x3A__CRM_PROCES:PROCES_TREE"
+      id="_CRM_PROCES___d4e5086-1_PROCES_TRE"/>
+</xs:schema>

+ 592 - 778
SE/schema/ant-object/default_db.CRM_PROCES/PROCES_GROUP_2/PROCES_GROUP_2.xsd

@@ -1,189 +1,152 @@
 <?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"
-            xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
-            xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
-            elementFormDefault="qualified"
-            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
-            vc:minVersion="1.1">
+<xs:schema
+   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"
+   xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+   xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types" elementFormDefault="qualified"
+   targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
+   vc:minVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema"
-              namespace="http://biuro.biall-net.pl/p5/schema/types"
-              schemaLocation="../../../types.xsd"/>
-   <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema"
-              namespace="http://www.opengis.net/gml/3.2"
-              schemaLocation="http://www.opengis.net/gml/3.2"/>
-   <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"/>
-   <xsd:simpleType name="TYPE_Simple" id="_CRM_PROCES___d4e4668-1_TYPE_Simpl">
-      <xsd:restriction base="xsd:string">
-         <xsd:enumeration value="PROCES_INIT"/>
-         <xsd:enumeration value="PROCES_GROUP_1"/>
-         <xsd:enumeration value="PROCES_GROUP_2"/>
-         <xsd:enumeration value="PROCES_BENEFIT_INFO"/>
-         <xsd:enumeration value="PROCES"/>
-         <xsd:enumeration value="TEXT_BREAK"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_INIT_Simple" id="_CRM_PROCES___d4e4676-1_PROCES_INI">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES_INIT"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_Simple" id="_CRM_PROCES___d4e4679-1_PROCES_Sim">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_GROUP_1_Simple" id="_CRM_PROCES___d4e4682-1_PROCES_GRO">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES_GROUP_1"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_GROUP_2_Simple" id="_CRM_PROCES___d4e4685-1_PROCES_GRO">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <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: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:primaryKey="ID">
-      <xsd:annotation>
-         <xsd:appinfo>
+      namespace="http://biuro.biall-net.pl/p5/schema/types" schemaLocation="../../../types.xsd"/>
+   <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema" namespace="http://www.opengis.net/gml/3.2"
+      schemaLocation="http://www.opengis.net/gml/3.2"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_WSKAZNIK.xsd"
+      schemaLocation="../../default_db.CRM_WSKAZNIK/CRM_WSKAZNIK/CRM_WSKAZNIK.xsd"/>
+   <xs:simpleType name="TYPE_Simple" id="_CRM_PROCES___d4e4668-1_TYPE_Simpl">
+      <xs:restriction base="xs:string">
+         <xs:enumeration value="PROCES_INIT"/>
+         <xs:enumeration value="PROCES_GROUP_1"/>
+         <xs:enumeration value="PROCES_GROUP_2"/>
+         <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+         <xs:enumeration value="PROCES"/>
+         <xs:enumeration value="TEXT_BREAK"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_INIT_Simple" id="_CRM_PROCES___d4e4676-1_PROCES_INI">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_INIT"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_Simple" id="_CRM_PROCES___d4e4679-1_PROCES_Sim">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_GROUP_1_Simple" id="_CRM_PROCES___d4e4682-1_PROCES_GRO">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_GROUP_1"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_GROUP_2_Simple" id="_CRM_PROCES___d4e4685-1_PROCES_GRO">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_GROUP_2"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_BENEFIT_INFO_Simple" id="_CRM_PROCES___d4e4688-1_PROCES_BEN">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:complexType name="CRM_PROCES" id="_CRM_PROCES___d4e4691-1_CRM_PROCES"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:annotation>
+         <xs:appinfo>
             <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: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:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
             </system_cache__appinfo:heritage>
-         </xsd:appinfo>
-      </xsd:annotation>
-      <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:annotation>
-               <xsd:appinfo>
+         </xs:appinfo>
+      </xs:annotation>
+      <xs:sequence id="_CRM_PROCES___d4e4692-1">
+         <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4693-1_ID"/>
+         <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4694-1_PARENT_ID">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+               </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4701-1_path"/>
+         <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4702-1_DESC"/>
+         <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4703-1_OPIS"/>
+         <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:TYPE_Simple"
+            id="_CRM_PROCES___d4e4703-1_TYPE"/>
+         <xs:element maxOccurs="unbounded" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+            id="_CRM_PROCES___d4e4704-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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. Backref powinien chodzic</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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania. Backref powinien chodzic</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4711-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4718-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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>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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4725-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4732-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4739-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <!--<xsd:element minOccurs="0" ref="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:annotation>
                <xsd:appinfo>
@@ -194,11 +157,10 @@
                <xsd:documentation>Wchodzenie do rodzicow po Backref - backref powinien </xsd:documentation>
             </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"/>
+      </xs:sequence>
+   </xs:complexType>
+   <xs: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"/>
@@ -300,612 +262,464 @@
          </xsd:element>
       </xsd:sequence>
    </xsd:restriction>-->
-   <xsd:complexType name="PROCES_INIT"
-                    id="_CRM_PROCES___d4e4747-1_PROCES_INI"
-                    system_cache__appinfo:primaryKey="ID">
-      <xsd:complexContent id="_CRM_PROCES___d4e4748-1">
-         <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_GROUP_1"
-                    id="_CRM_PROCES___d4e4803-1_PROCES_GRO"
-                    system_cache__appinfo:primaryKey="ID">
-      <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_GROUP_2"
-                    id="_CRM_PROCES___d4e4859-1_PROCES_GRO"
-                    system_cache__appinfo:primaryKey="ID">
-      <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES"
-                    id="_CRM_PROCES___d4e4915-1_PROCES"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:restriction>
-      </xsd:complexContent>
-   </xsd:complexType>
-   <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"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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"/>
-               <xsd:element name="TYPE" id="_CRM_PROCES___d4e4985-1_TYPE">
-                  <xsd:simpleType id="_CRM_PROCES___d4e4986-1">
-                     <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-                        <xsd:enumeration value="PROCES_BENEFIT_INFO"/>
-                     </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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_TREE"
-                    id="_CRM_PROCES___d4e5030-1_PROCES_TRE"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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>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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:schema>
+   <xs:complexType name="PROCES_INIT" id="_CRM_PROCES___d4e4747-1_PROCES_INI"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4748-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4750-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4751-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4752-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+                   </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4759-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4760-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4763-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_INIT_Simple"
+                  id="_CRM_PROCES___d4e4761-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES" id="_CRM_PROCES___d4e4762-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4790-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4797-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_INIT" type="default_db__x3A__CRM_PROCES:PROCES_INIT"
+      id="_CRM_PROCES___d4e4802-1_PROCES_INI"/>
+   <xs:complexType name="PROCES_GROUP_1" id="_CRM_PROCES___d4e4803-1_PROCES_GRO"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4804-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4806-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4807-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4808-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4815-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4816-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4821-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1_Simple"
+                  id="_CRM_PROCES___d4e4817-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4825-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4832-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4839-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4846-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4853-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_GROUP_1" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
+      id="_CRM_PROCES___d4e4858-1_PROCES_GRO"/>
+   <xs:complexType name="PROCES_GROUP_2" id="_CRM_PROCES___d4e4859-1_PROCES_GRO"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4860-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4862-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4863-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4864-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+               </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4871-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4872-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4879-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2_Simple"
+                  id="_CRM_PROCES___d4e4873-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4881-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4888-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4895-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4902-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4909-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_GROUP_2" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
+      id="_CRM_PROCES___d4e4914-1_PROCES_GRO"/>
+   <xs:complexType name="PROCES" id="_CRM_PROCES___d4e4915-1_PROCES"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4916-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4918-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4919-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4920-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4927-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4928-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4937-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_Simple"
+                  id="_CRM_PROCES___d4e4929-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES" id="_CRM_PROCES___d4e4930-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4958-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4965-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES" type="default_db__x3A__CRM_PROCES:PROCES"
+      id="_CRM_PROCES___d4e4970-1_PROCES"/>
+   <xs:complexType name="PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4971-1_PROCES_BEN"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4972-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4974-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4975-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4976-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4983-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4984-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4995-1_OPIS"/>
+               <xs:element name="TYPE" id="_CRM_PROCES___d4e4985-1_TYPE">
+                  <xs:simpleType id="_CRM_PROCES___d4e4986-1">
+                     <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+                        <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+                     </xs:restriction>
+                  </xs:simpleType>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+                  id="_CRM_PROCES___d4e4989-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                  id="_CRM_PROCES___d4e4996-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e5003-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e5010-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e5017-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e5024-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_BENEFIT_INFO" type="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
+      id="_CRM_PROCES___d4e5029-1_PROCES_BEN"/>
+   <xs:complexType name="PROCES_TREE" id="_CRM_PROCES___d4e5030-1_PROCES_TRE"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e5031-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e5033-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e5034-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e5035-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e5042-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e5043-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e5056-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:TYPE_Simple"
+                  id="_CRM_PROCES___d4e5044-1_TYPE"/>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+                  id="_CRM_PROCES___d4e5045-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                  id="_CRM_PROCES___d4e5052-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e5059-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e5066-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e5073-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e5080-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element abstract="true" name="PROCES_TREE" type="default_db__x3A__CRM_PROCES:PROCES_TREE"
+      id="_CRM_PROCES___d4e5086-1_PROCES_TRE"/>
+</xs:schema>

+ 592 - 778
SE/schema/ant-object/default_db.CRM_PROCES/PROCES_INIT/PROCES_INIT.xsd

@@ -1,189 +1,152 @@
 <?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"
-            xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
-            xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
-            elementFormDefault="qualified"
-            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
-            vc:minVersion="1.1">
+<xs:schema
+   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"
+   xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+   xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types" elementFormDefault="qualified"
+   targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
+   vc:minVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema"
-              namespace="http://biuro.biall-net.pl/p5/schema/types"
-              schemaLocation="../../../types.xsd"/>
-   <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema"
-              namespace="http://www.opengis.net/gml/3.2"
-              schemaLocation="http://www.opengis.net/gml/3.2"/>
-   <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"/>
-   <xsd:simpleType name="TYPE_Simple" id="_CRM_PROCES___d4e4668-1_TYPE_Simpl">
-      <xsd:restriction base="xsd:string">
-         <xsd:enumeration value="PROCES_INIT"/>
-         <xsd:enumeration value="PROCES_GROUP_1"/>
-         <xsd:enumeration value="PROCES_GROUP_2"/>
-         <xsd:enumeration value="PROCES_BENEFIT_INFO"/>
-         <xsd:enumeration value="PROCES"/>
-         <xsd:enumeration value="TEXT_BREAK"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_INIT_Simple" id="_CRM_PROCES___d4e4676-1_PROCES_INI">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES_INIT"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_Simple" id="_CRM_PROCES___d4e4679-1_PROCES_Sim">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_GROUP_1_Simple" id="_CRM_PROCES___d4e4682-1_PROCES_GRO">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES_GROUP_1"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_GROUP_2_Simple" id="_CRM_PROCES___d4e4685-1_PROCES_GRO">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <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: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:primaryKey="ID">
-      <xsd:annotation>
-         <xsd:appinfo>
+      namespace="http://biuro.biall-net.pl/p5/schema/types" schemaLocation="../../../types.xsd"/>
+   <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema" namespace="http://www.opengis.net/gml/3.2"
+      schemaLocation="http://www.opengis.net/gml/3.2"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_WSKAZNIK.xsd"
+      schemaLocation="../../default_db.CRM_WSKAZNIK/CRM_WSKAZNIK/CRM_WSKAZNIK.xsd"/>
+   <xs:simpleType name="TYPE_Simple" id="_CRM_PROCES___d4e4668-1_TYPE_Simpl">
+      <xs:restriction base="xs:string">
+         <xs:enumeration value="PROCES_INIT"/>
+         <xs:enumeration value="PROCES_GROUP_1"/>
+         <xs:enumeration value="PROCES_GROUP_2"/>
+         <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+         <xs:enumeration value="PROCES"/>
+         <xs:enumeration value="TEXT_BREAK"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_INIT_Simple" id="_CRM_PROCES___d4e4676-1_PROCES_INI">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_INIT"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_Simple" id="_CRM_PROCES___d4e4679-1_PROCES_Sim">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_GROUP_1_Simple" id="_CRM_PROCES___d4e4682-1_PROCES_GRO">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_GROUP_1"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_GROUP_2_Simple" id="_CRM_PROCES___d4e4685-1_PROCES_GRO">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_GROUP_2"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_BENEFIT_INFO_Simple" id="_CRM_PROCES___d4e4688-1_PROCES_BEN">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:complexType name="CRM_PROCES" id="_CRM_PROCES___d4e4691-1_CRM_PROCES"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:annotation>
+         <xs:appinfo>
             <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: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:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
             </system_cache__appinfo:heritage>
-         </xsd:appinfo>
-      </xsd:annotation>
-      <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:annotation>
-               <xsd:appinfo>
+         </xs:appinfo>
+      </xs:annotation>
+      <xs:sequence id="_CRM_PROCES___d4e4692-1">
+         <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4693-1_ID"/>
+         <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4694-1_PARENT_ID">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+               </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4701-1_path"/>
+         <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4702-1_DESC"/>
+         <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4703-1_OPIS"/>
+         <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:TYPE_Simple"
+            id="_CRM_PROCES___d4e4703-1_TYPE"/>
+         <xs:element maxOccurs="unbounded" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+            id="_CRM_PROCES___d4e4704-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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. Backref powinien chodzic</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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania. Backref powinien chodzic</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4711-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4718-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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>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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4725-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4732-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4739-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <!--<xsd:element minOccurs="0" ref="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:annotation>
                <xsd:appinfo>
@@ -194,11 +157,10 @@
                <xsd:documentation>Wchodzenie do rodzicow po Backref - backref powinien </xsd:documentation>
             </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"/>
+      </xs:sequence>
+   </xs:complexType>
+   <xs: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"/>
@@ -300,612 +262,464 @@
          </xsd:element>
       </xsd:sequence>
    </xsd:restriction>-->
-   <xsd:complexType name="PROCES_INIT"
-                    id="_CRM_PROCES___d4e4747-1_PROCES_INI"
-                    system_cache__appinfo:primaryKey="ID">
-      <xsd:complexContent id="_CRM_PROCES___d4e4748-1">
-         <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_GROUP_1"
-                    id="_CRM_PROCES___d4e4803-1_PROCES_GRO"
-                    system_cache__appinfo:primaryKey="ID">
-      <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_GROUP_2"
-                    id="_CRM_PROCES___d4e4859-1_PROCES_GRO"
-                    system_cache__appinfo:primaryKey="ID">
-      <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES"
-                    id="_CRM_PROCES___d4e4915-1_PROCES"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:restriction>
-      </xsd:complexContent>
-   </xsd:complexType>
-   <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"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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"/>
-               <xsd:element name="TYPE" id="_CRM_PROCES___d4e4985-1_TYPE">
-                  <xsd:simpleType id="_CRM_PROCES___d4e4986-1">
-                     <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-                        <xsd:enumeration value="PROCES_BENEFIT_INFO"/>
-                     </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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_TREE"
-                    id="_CRM_PROCES___d4e5030-1_PROCES_TRE"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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>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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:schema>
+   <xs:complexType name="PROCES_INIT" id="_CRM_PROCES___d4e4747-1_PROCES_INI"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4748-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4750-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4751-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4752-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+                   </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4759-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4760-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4763-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_INIT_Simple"
+                  id="_CRM_PROCES___d4e4761-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES" id="_CRM_PROCES___d4e4762-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4790-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4797-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_INIT" type="default_db__x3A__CRM_PROCES:PROCES_INIT"
+      id="_CRM_PROCES___d4e4802-1_PROCES_INI"/>
+   <xs:complexType name="PROCES_GROUP_1" id="_CRM_PROCES___d4e4803-1_PROCES_GRO"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4804-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4806-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4807-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4808-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4815-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4816-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4821-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1_Simple"
+                  id="_CRM_PROCES___d4e4817-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4825-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4832-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4839-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4846-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4853-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_GROUP_1" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
+      id="_CRM_PROCES___d4e4858-1_PROCES_GRO"/>
+   <xs:complexType name="PROCES_GROUP_2" id="_CRM_PROCES___d4e4859-1_PROCES_GRO"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4860-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4862-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4863-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4864-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+               </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4871-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4872-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4879-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2_Simple"
+                  id="_CRM_PROCES___d4e4873-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4881-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4888-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4895-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4902-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4909-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_GROUP_2" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
+      id="_CRM_PROCES___d4e4914-1_PROCES_GRO"/>
+   <xs:complexType name="PROCES" id="_CRM_PROCES___d4e4915-1_PROCES"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4916-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4918-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4919-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4920-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4927-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4928-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4937-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_Simple"
+                  id="_CRM_PROCES___d4e4929-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES" id="_CRM_PROCES___d4e4930-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4958-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4965-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES" type="default_db__x3A__CRM_PROCES:PROCES"
+      id="_CRM_PROCES___d4e4970-1_PROCES"/>
+   <xs:complexType name="PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4971-1_PROCES_BEN"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4972-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4974-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4975-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4976-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4983-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4984-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4995-1_OPIS"/>
+               <xs:element name="TYPE" id="_CRM_PROCES___d4e4985-1_TYPE">
+                  <xs:simpleType id="_CRM_PROCES___d4e4986-1">
+                     <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+                        <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+                     </xs:restriction>
+                  </xs:simpleType>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+                  id="_CRM_PROCES___d4e4989-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                  id="_CRM_PROCES___d4e4996-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e5003-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e5010-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e5017-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e5024-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_BENEFIT_INFO" type="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
+      id="_CRM_PROCES___d4e5029-1_PROCES_BEN"/>
+   <xs:complexType name="PROCES_TREE" id="_CRM_PROCES___d4e5030-1_PROCES_TRE"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e5031-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e5033-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e5034-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e5035-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e5042-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e5043-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e5056-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:TYPE_Simple"
+                  id="_CRM_PROCES___d4e5044-1_TYPE"/>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+                  id="_CRM_PROCES___d4e5045-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                  id="_CRM_PROCES___d4e5052-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e5059-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e5066-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e5073-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e5080-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element abstract="true" name="PROCES_TREE" type="default_db__x3A__CRM_PROCES:PROCES_TREE"
+      id="_CRM_PROCES___d4e5086-1_PROCES_TRE"/>
+</xs:schema>

+ 592 - 778
SE/schema/ant-object/default_db.CRM_PROCES/PROCES_TREE/PROCES_TREE.xsd

@@ -1,189 +1,152 @@
 <?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"
-            xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
-            xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
-            elementFormDefault="qualified"
-            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
-            vc:minVersion="1.1">
+<xs:schema
+   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"
+   xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+   xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types" elementFormDefault="qualified"
+   targetNamespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd"
+   vc:minVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema"
-              namespace="http://biuro.biall-net.pl/p5/schema/types"
-              schemaLocation="../../../types.xsd"/>
-   <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema"
-              namespace="http://www.opengis.net/gml/3.2"
-              schemaLocation="http://www.opengis.net/gml/3.2"/>
-   <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"/>
-   <xsd:simpleType name="TYPE_Simple" id="_CRM_PROCES___d4e4668-1_TYPE_Simpl">
-      <xsd:restriction base="xsd:string">
-         <xsd:enumeration value="PROCES_INIT"/>
-         <xsd:enumeration value="PROCES_GROUP_1"/>
-         <xsd:enumeration value="PROCES_GROUP_2"/>
-         <xsd:enumeration value="PROCES_BENEFIT_INFO"/>
-         <xsd:enumeration value="PROCES"/>
-         <xsd:enumeration value="TEXT_BREAK"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_INIT_Simple" id="_CRM_PROCES___d4e4676-1_PROCES_INI">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES_INIT"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_Simple" id="_CRM_PROCES___d4e4679-1_PROCES_Sim">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_GROUP_1_Simple" id="_CRM_PROCES___d4e4682-1_PROCES_GRO">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <xsd:enumeration value="PROCES_GROUP_1"/>
-      </xsd:restriction>
-   </xsd:simpleType>
-   <xsd:simpleType name="PROCES_GROUP_2_Simple" id="_CRM_PROCES___d4e4685-1_PROCES_GRO">
-      <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-         <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: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:primaryKey="ID">
-      <xsd:annotation>
-         <xsd:appinfo>
+      namespace="http://biuro.biall-net.pl/p5/schema/types" schemaLocation="../../../types.xsd"/>
+   <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema" namespace="http://www.opengis.net/gml/3.2"
+      schemaLocation="http://www.opengis.net/gml/3.2"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_WSKAZNIK.xsd"
+      schemaLocation="../../default_db.CRM_WSKAZNIK/CRM_WSKAZNIK/CRM_WSKAZNIK.xsd"/>
+   <xs:simpleType name="TYPE_Simple" id="_CRM_PROCES___d4e4668-1_TYPE_Simpl">
+      <xs:restriction base="xs:string">
+         <xs:enumeration value="PROCES_INIT"/>
+         <xs:enumeration value="PROCES_GROUP_1"/>
+         <xs:enumeration value="PROCES_GROUP_2"/>
+         <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+         <xs:enumeration value="PROCES"/>
+         <xs:enumeration value="TEXT_BREAK"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_INIT_Simple" id="_CRM_PROCES___d4e4676-1_PROCES_INI">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_INIT"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_Simple" id="_CRM_PROCES___d4e4679-1_PROCES_Sim">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_GROUP_1_Simple" id="_CRM_PROCES___d4e4682-1_PROCES_GRO">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_GROUP_1"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_GROUP_2_Simple" id="_CRM_PROCES___d4e4685-1_PROCES_GRO">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_GROUP_2"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="PROCES_BENEFIT_INFO_Simple" id="_CRM_PROCES___d4e4688-1_PROCES_BEN">
+      <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+         <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:complexType name="CRM_PROCES" id="_CRM_PROCES___d4e4691-1_CRM_PROCES"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:annotation>
+         <xs:appinfo>
             <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: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:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
             </system_cache__appinfo:heritage>
-         </xsd:appinfo>
-      </xsd:annotation>
-      <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:annotation>
-               <xsd:appinfo>
+         </xs:appinfo>
+      </xs:annotation>
+      <xs:sequence id="_CRM_PROCES___d4e4692-1">
+         <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4693-1_ID"/>
+         <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4694-1_PARENT_ID">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+               </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4701-1_path"/>
+         <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4702-1_DESC"/>
+         <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4703-1_OPIS"/>
+         <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:TYPE_Simple"
+            id="_CRM_PROCES___d4e4703-1_TYPE"/>
+         <xs:element maxOccurs="unbounded" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+            id="_CRM_PROCES___d4e4704-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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. Backref powinien chodzic</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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania. Backref powinien chodzic</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4711-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4718-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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>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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4725-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4732-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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:annotation>
-               <xsd:appinfo>
+               </xs:appinfo>
+               <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element maxOccurs="unbounded" minOccurs="0"
+            ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4739-1">
+            <xs:annotation>
+               <xs:appinfo>
                   <system_cache__appinfo:flat_relation_cache>
-                     <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: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>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
          <!--<xsd:element minOccurs="0" ref="default_db__x3A__CRM_PROCES:CRM_PROCES">
             <xsd:annotation>
                <xsd:appinfo>
@@ -194,11 +157,10 @@
                <xsd:documentation>Wchodzenie do rodzicow po Backref - backref powinien </xsd:documentation>
             </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"/>
+      </xs:sequence>
+   </xs:complexType>
+   <xs: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"/>
@@ -300,612 +262,464 @@
          </xsd:element>
       </xsd:sequence>
    </xsd:restriction>-->
-   <xsd:complexType name="PROCES_INIT"
-                    id="_CRM_PROCES___d4e4747-1_PROCES_INI"
-                    system_cache__appinfo:primaryKey="ID">
-      <xsd:complexContent id="_CRM_PROCES___d4e4748-1">
-         <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_GROUP_1"
-                    id="_CRM_PROCES___d4e4803-1_PROCES_GRO"
-                    system_cache__appinfo:primaryKey="ID">
-      <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_GROUP_2"
-                    id="_CRM_PROCES___d4e4859-1_PROCES_GRO"
-                    system_cache__appinfo:primaryKey="ID">
-      <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES"
-                    id="_CRM_PROCES___d4e4915-1_PROCES"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:restriction>
-      </xsd:complexContent>
-   </xsd:complexType>
-   <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"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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"/>
-               <xsd:element name="TYPE" id="_CRM_PROCES___d4e4985-1_TYPE">
-                  <xsd:simpleType id="_CRM_PROCES___d4e4986-1">
-                     <xsd:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
-                        <xsd:enumeration value="PROCES_BENEFIT_INFO"/>
-                     </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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:complexType name="PROCES_TREE"
-                    id="_CRM_PROCES___d4e5030-1_PROCES_TRE"
-                    system_cache__appinfo:primaryKey="ID">
-      <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="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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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>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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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:annotation>
-                     <xsd:appinfo>
-                        <system_cache__appinfo:flat_relation_cache>
-                           <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: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:schema>
+   <xs:complexType name="PROCES_INIT" id="_CRM_PROCES___d4e4747-1_PROCES_INI"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4748-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4750-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4751-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4752-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+                   </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4759-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4760-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4763-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_INIT_Simple"
+                  id="_CRM_PROCES___d4e4761-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES" id="_CRM_PROCES___d4e4762-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4790-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4797-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_INIT" type="default_db__x3A__CRM_PROCES:PROCES_INIT"
+      id="_CRM_PROCES___d4e4802-1_PROCES_INI"/>
+   <xs:complexType name="PROCES_GROUP_1" id="_CRM_PROCES___d4e4803-1_PROCES_GRO"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4804-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4806-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4807-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4808-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4815-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4816-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4821-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1_Simple"
+                  id="_CRM_PROCES___d4e4817-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4825-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4832-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4839-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4846-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4853-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_GROUP_1" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_1"
+      id="_CRM_PROCES___d4e4858-1_PROCES_GRO"/>
+   <xs:complexType name="PROCES_GROUP_2" id="_CRM_PROCES___d4e4859-1_PROCES_GRO"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4860-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4862-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4863-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4864-1_PARENT_ID">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/ID
+               </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4871-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4872-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4879-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2_Simple"
+                  id="_CRM_PROCES___d4e4873-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_INIT" id="_CRM_PROCES___d4e4881-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e4888-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e4895-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4902-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4909-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_GROUP_2" type="default_db__x3A__CRM_PROCES:PROCES_GROUP_2"
+      id="_CRM_PROCES___d4e4914-1_PROCES_GRO"/>
+   <xs:complexType name="PROCES" id="_CRM_PROCES___d4e4915-1_PROCES"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4916-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4918-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4919-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4920-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4927-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4928-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4937-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:PROCES_Simple"
+                  id="_CRM_PROCES___d4e4929-1_TYPE"/>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES" id="_CRM_PROCES___d4e4930-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="1" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4958-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e4965-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES" type="default_db__x3A__CRM_PROCES:PROCES"
+      id="_CRM_PROCES___d4e4970-1_PROCES"/>
+   <xs:complexType name="PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e4971-1_PROCES_BEN"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e4972-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e4974-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e4975-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e4976-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e4983-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e4984-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e4995-1_OPIS"/>
+               <xs:element name="TYPE" id="_CRM_PROCES___d4e4985-1_TYPE">
+                  <xs:simpleType id="_CRM_PROCES___d4e4986-1">
+                     <xs:restriction base="default_db__x3A__CRM_PROCES:TYPE_Simple">
+                        <xs:enumeration value="PROCES_BENEFIT_INFO"/>
+                     </xs:restriction>
+                  </xs:simpleType>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+                  id="_CRM_PROCES___d4e4989-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                  id="_CRM_PROCES___d4e4996-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e5003-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e5010-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_INIT/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e5017-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>xpath="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO/PARENT_ID
+                     </xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e5024-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="PROCES_BENEFIT_INFO" type="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO"
+      id="_CRM_PROCES___d4e5029-1_PROCES_BEN"/>
+   <xs:complexType name="PROCES_TREE" id="_CRM_PROCES___d4e5030-1_PROCES_TRE"
+      system_cache__appinfo:primaryKey="ID">
+      <xs:complexContent id="_CRM_PROCES___d4e5031-1">
+         <xs:restriction base="default_db__x3A__CRM_PROCES:CRM_PROCES">
+            <xs:sequence id="_CRM_PROCES___d4e5033-1">
+               <xs:element name="ID" type="xs:int" id="_CRM_PROCES___d4e5034-1_ID"/>
+               <xs:element name="PARENT_ID" type="xs:int" id="_CRM_PROCES___d4e5035-1_PARENT_ID"/>
+               <xs:element name="path" type="xs:string" id="_CRM_PROCES___d4e5042-1_path"/>
+               <xs:element name="DESC" type="xs:string" id="_CRM_PROCES___d4e5043-1_DESC"/>
+               <xs:element name="OPIS" type="xs:string" id="_CRM_PROCES___d4e5056-1_OPIS"/>
+               <xs:element name="TYPE" type="default_db__x3A__CRM_PROCES:TYPE_Simple"
+                  id="_CRM_PROCES___d4e5044-1_TYPE"/>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES"
+                  id="_CRM_PROCES___d4e5045-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0" ref="default_db__x3A__CRM_PROCES:PROCES_INIT"
+                  id="_CRM_PROCES___d4e5052-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_1" id="_CRM_PROCES___d4e5059-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_GROUP_2" id="_CRM_PROCES___d4e5066-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="unbounded" minOccurs="0"
+                  ref="default_db__x3A__CRM_PROCES:PROCES_BENEFIT_INFO" id="_CRM_PROCES___d4e5073-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                     <xs:documentation>Tutaj nie dajemy appinfo relation cache - tylko w PARENT_ID do przetworzenia w celu odbudowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element maxOccurs="0" minOccurs="0"
+                  ref="default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK" id="_CRM_PROCES___d4e5080-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <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>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element abstract="true" name="PROCES_TREE" type="default_db__x3A__CRM_PROCES:PROCES_TREE"
+      id="_CRM_PROCES___d4e5086-1_PROCES_TRE"/>
+</xs:schema>

+ 1 - 1
SE/schema/ant-url_action/default_db.in7_dziennik_koresp/umowa_zleceniobiorca/build_recurse_ant.xml

@@ -2,7 +2,7 @@
 <project basedir="../../../." name="recurse_ant" default="buildpdf_recursed_xsl_mail"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns:xs="http://www.w3.org/2001/XMLSchema" >
     <description>
-        Umowa zleceniobiorca
+        Umowa Zleceniobiorca
     </description>
     
     <!--<echo>#88 $uuid = ${uuid}</echo>-->

+ 43 - 4
SE/schema/default_db_xml_cache.public/build_ant_universal_by_xsl_match.xsl

@@ -7,6 +7,7 @@
     xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
     xmlns:wfs="http://www.opengis.net/wfs"
     xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
+    xmlns:p5ant-interface="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface.xsd"
     exclude-result-prefixes="xs"
     version="2.0">
     
@@ -54,6 +55,7 @@
                             </xsl:variable>
                             <xsl:apply-templates mode="#current" select="$system_cache__appinfo:element_complexType/*">
                                 <xsl:with-param name="count" select="count(*)"/>
+                                <xsl:with-param name="p5ant-interface:xslt.param" select="@*"/>
                             </xsl:apply-templates>
                         </parallel>                        
                     </target>
@@ -105,6 +107,7 @@
     
     <xsl:template mode="build_element_complexType.xml" match="build_cache">
         <xsl:param name="count"/>
+        <xsl:param name="p5ant-interface:xslt.param"/>
         <xsl:message>#51 testing against unparsed-text-available <xsl:value-of select="system_cache__appinfo:element-filename/text()"/></xsl:message>
         <xsl:choose>
             <xsl:when test="system_cache__appinfo:element-filename/text() and unparsed-text-available(concat(system_cache__appinfo:element-filename/text(),'.complete'))">
@@ -125,7 +128,7 @@
                     <!--<xsl:attribute name="id.int.rand" select="@id.int.rand"/>-->
                     <!--<tempfile property="{with-param/@select}{with-param/@name}" deleteonexit="yes"><xsl:attribute name="destdir" select="'${detect_resource_type.local}'"/></tempfile>-->
                     <touch file="{system_cache__appinfo:element-filename/text()}.prepare"/>
-                    <echo>creating <xsl:value-of select="round((count( preceding-sibling::*)  div $count ) * 100)"/>%  <xsl:value-of select="with-param/@select"/>:<xsl:value-of select="with-param/@name"/>; @id="<xsl:value-of select="@id"/>";</echo>
+                    <echo>#129 creating <xsl:value-of select="round((count( preceding-sibling::*)  div $count ) * 100)"/>%  <xsl:value-of select="with-param/@select"/>:<xsl:value-of select="with-param/@name"/>; @id="<xsl:value-of select="@id"/>";</echo>
                     <xslt     destdir="./"  > <!-- out="${with-param/@select}{with-param/@name}" -->
                         <xsl:attribute name="basedir" select="'${build_complexType.local}'"/>
                         <xsl:attribute name="style" select="'${build_complexType.xsl}'"/>
@@ -207,6 +210,28 @@
                         <param name="basedir">
                             <xsl:attribute name="expression" select="'${basedir}'"/>
                         </param>
+                        
+                        
+                        <param name="default_db.dir">
+                            <xsl:attribute name="expression" select="ancestor-or-self::system_cache__appinfo:element_complexType/@default_db.dir"/>
+                        </param>
+                        <param name="WPS_Functions">
+                            <xsl:attribute name="expression" select="ancestor-or-self::system_cache__appinfo:element_complexType/@WPS_Functions"/>
+                        </param>
+                        <param name="default_db_xml_cache.public">
+                            <xsl:attribute name="expression" select="ancestor-or-self::system_cache__appinfo:element_complexType/@default_db_xml_cache.public"/>
+                        </param>
+                        <param name="external_schema">
+                            <xsl:attribute name="expression" select="ancestor-or-self::system_cache__appinfo:element_complexType/@external_schema"/>
+                        </param>
+                        <param name="p5Type.basedir">
+                            <xsl:attribute name="expression" select="ancestor-or-self::system_cache__appinfo:element_complexType/@p5Type.basedir"/>
+                        </param>
+                     
+                        <xsl:comment>#229 lower mode="p5ant-interface:xslt.param" [test root/name()="<xsl:value-of select="root()/name()"/>"; attrs="<xsl:value-of select="$p5ant-interface:xslt.param/name()"/>"</xsl:comment>
+                        <xsl:apply-templates mode="p5ant-interface:xslt.param" select="$p5ant-interface:xslt.param"/>
+                        
+                        
                         <classpath location="/opt/local/share/java/saxon9he.jar"/>
                     </xslt>
                     <delete>
@@ -243,6 +268,12 @@
         
     </xsl:template>
     
+    
+    <xsl:template mode="build_tr_map.xml" match="build_cache[@name='build_complexType__simpleType']">
+        <xsl:comment>#270 bypassed @name="<xsl:value-of select="@name"/>"</xsl:comment>
+        <xsl:message>#270 bypassed @name="<xsl:value-of select="@name"/>"</xsl:message>
+    </xsl:template>
+    
     <xsl:template mode="build_tr_map.xml" match="build_cache">
         <xsl:param name="count"/>
         <xsl:message>#114 testing against unparsed-text-available <xsl:value-of select="p5_tr_map:element-filename/text()"/></xsl:message>
@@ -259,7 +290,7 @@
             <xsl:otherwise><xsl:comment>#118 not exists <xsl:value-of select="p5_tr_map:element-filename/text()"/></xsl:comment>
                 <sequential>
                     <!--<tempfile property="{with-param/@select}{with-param/@name}" deleteonexit="yes"><xsl:attribute name="destdir" select="'${detect_resource_type.local}'"/></tempfile>-->
-                    <echo>creating <xsl:value-of select="round((count( preceding-sibling::*)  div $count ) * 100)"/>% <xsl:value-of select="with-param/@select"/>:<xsl:value-of select="with-param/@name"/></echo>
+                    <echo>#291 creating <xsl:value-of select="round((count( preceding-sibling::*)  div $count ) * 100)"/>% <xsl:value-of select="with-param/@select"/>:<xsl:value-of select="with-param/@name"/></echo>
                     <xslt     destdir="./"   > <!-- out="${with-param/@select}{with-param/@name}" -->
                         <xsl:attribute name="basedir" select="'${p5_tr_map.local}'"/>
                         <xsl:attribute name="style" select="'${p5_tr_map.xsl}'"/>
@@ -284,6 +315,7 @@
                                 </factory>
                                 <param name="parent_type" expression="{with-param/@select}"/>
                             </xsl:when>
+                            
                             <xsl:otherwise><xsl:message terminate="yes">#72 unexpected type of element !</xsl:message></xsl:otherwise>
                         </xsl:choose>
                         <param name="default_db.instance.xml" >
@@ -358,6 +390,11 @@
         
     </xsl:template>
     
+    <xsl:template mode="p5ant-interface:xslt.param" match="@*">
+        <param name="{name()}" expression="{text()}"/>
+    </xsl:template>
+    
+    
     
     <xsl:template mode="build_SimpleSchema.xml" match="build_cache">
         <xsl:param name="count"/>
@@ -377,7 +414,7 @@
                         <xsl:otherwise><xsl:comment>#118 not exists <xsl:value-of select="p5_simpleSchema_map:element-filename/text()"/>.complete</xsl:comment>
                             <sequential>
                                 <!--<tempfile property="{with-param/@select}{with-param/@name}" deleteonexit="yes"><xsl:attribute name="destdir" select="'${detect_resource_type.local}'"/></tempfile>-->
-                                <echo>creating <xsl:value-of select="round((count( preceding-sibling::*)  div $count ) * 100)"/>% <xsl:value-of select="with-param/@select"/>:<xsl:value-of select="with-param/@name"/></echo>
+                                <echo>#415 creating <xsl:value-of select="round((count( preceding-sibling::*)  div $count ) * 100)"/>% <xsl:value-of select="with-param/@select"/>:<xsl:value-of select="with-param/@name"/></echo>
                                 <xslt     destdir="./" force="false"  > <!-- out="${with-param/@select}{with-param/@name}" -->
                                     <xsl:attribute name="basedir" select="'${p5_tr_map.local}'"/>
                                     <xsl:attribute name="style" select="'${main_build_recurse_ant.dita_with_id.xsl}'"/>
@@ -404,6 +441,8 @@
                                         </xsl:when>-->
                                         <xsl:otherwise><xsl:message terminate="yes">#350 unexpected type of element !</xsl:message></xsl:otherwise>
                                     </xsl:choose>
+                                    <xsl:apply-templates mode="p5ant-interface:xslt.param" select="root()/@*"/>
+                                    
                                     <param name="default_db.instance.xml" >
                                         <xsl:attribute name="expression" select="'${default_db.instance.xml}'"/>
                                     </param>
@@ -488,7 +527,7 @@
             <xsl:otherwise><!--<xsl:comment>#240 not exists <xsl:value-of select="@system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename"/></xsl:comment>-->
                 <sequential>
                     <!--<tempfile property="{with-param/@select}{with-param/@name}" deleteonexit="yes"><xsl:attribute name="destdir" select="'${detect_resource_type.local}'"/></tempfile>-->
-                    <echo>creating <xsl:value-of select="round((count( preceding-sibling::*)  div $count ) * 100)"/>% <xsl:value-of select="with-param/@select"/>:<xsl:value-of select="with-param/@name"/></echo>
+                    <echo>#528 creating <xsl:value-of select="round((count( preceding-sibling::*)  div $count ) * 100)"/>% <xsl:value-of select="with-param/@select"/>:<xsl:value-of select="with-param/@name"/></echo>
                     <xslt     destdir="./" force="true"  > <!-- out="${with-param/@select}{with-param/@name}" -->
                         <xsl:attribute name="basedir" select="'${detect_resource_type.local}'"/>
                         <xsl:attribute name="style" select="'${build_object_install_se_ant_object.xsl}'"/>

+ 70 - 27
SE/schema/default_db_xml_cache.public/get_all_xsd.xsl

@@ -9,7 +9,10 @@
     xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
     xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
     xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
-    xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty">
+    xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
+    xmlns:ant-object="http://biuro.biall-net.pl/xmlschema_procesy5/ant-object/ant-object.xsd"
+    xmlns:p5ant-interface="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface.xsd"
+    >
     
     
     
@@ -17,6 +20,10 @@
     <xsl:import href="p5_tr_map/element-filename.xsl"/>
     <xsl:import href="object_parent_relations/element-filename.xsl"/> <!-- param name="p5opr:detect_objects_parent_relations.local" required="yes"  -->
     <xsl:include href="p5_simpleSchema_map/element-filename.xsl"/>
+    
+    <xsl:include href="../ant-object/default_db.ant-object.basedir.xsl"/>
+    <xsl:include href="../ant-object/ant-object.xsl"/>
+    
     <!--<xsl:import href="system_cache__appinfo/element-filename.xsl"/>-->
     <xsl:output indent="yes"/>
     <xsl:strip-space elements="*"/>
@@ -29,20 +36,20 @@
     <xsl:param name="procesy5_system_schema_collection_dir" select="'../'"/>
     <xsl:param name="cache" select="'read'"/>
     <xsl:param name="targetNamespace_DEFAULTS" select="'http://biuro.biall-net.pl/xmlschema_procesy5/default_db'"/>
-    <xsl:param name="external_schema" select="'/public_html/external_schema'"/>
+    <xsl:param name="external_schema" required="yes" /> <!-- select="'/public_html/external_schema'" -->
     <xsl:param name="external_schema_id_namespace_prefix" select="'/public_html/external_schema_id_namespace_prefix'"/>
     <xsl:param name="XMLSchema_prefix" select="'xs'"/>
     <xsl:param name="external_schema_table.path" required="yes"/>
-    <xsl:param name="default_db.dir" select="'/public_html/default_db/'"/>
-    <xsl:param name="default_db_xml_cache.public" select="'/public_html/default_db_xml_cache.public/'"/>
+    <xsl:param name="default_db.dir" required="yes" /> <!-- select="'/public_html/default_db/'" -->
+    <xsl:param name="default_db_xml_cache.public"  required="yes"/><!-- select="'/public_html/default_db_xml_cache.public/'" -->
     
     <xsl:param name="targetNamespace_DEFAULTS_prefix" select="'default_db'"/>
     
-    <xsl:param name="WPS_Functions" select="'public_html/WPS_Functions/'"/>
+    <xsl:param name="WPS_Functions" required="yes" /><!-- select="'public_html/WPS_Functions/'" -->
     <xsl:param name="new-schema-with-ID-to-move-and-rename-to-xsd" select="'/new-schema-with-ID-to-move-and-rename-to-xsd'"/>
     <xsl:param name="default_db.instance.xml" required="yes"/> <!-- todo better always include get_all_xsd -->
     <xsl:param name="p5build_SE.INSTALL_ROOT.repository.symlink" select="'/repository.symlink/'"/>
-    <xsl:param name="p5Type.basedir" select="'public_html/Types/'"/>
+    <xsl:param name="p5Type.basedir"  required="yes"/> <!-- select="'public_html/Types/'" -->
     
     <xsl:include href="../default_db_xml_cache.public/xml-schema-primitives.xsl"/>
     <xsl:include href="system_cache__appinfo/external_schema_targetNamespace.xsl"/>
@@ -53,6 +60,10 @@
     <xsl:include href="system_cache__appinfo/element-filename.xsl"/>
     
     
+    <xsl:attribute-set name="p5ant-interface:xslt.param.get_all_xsd_list">
+        <xsl:attribute name="default_db.ant-object.basedir" select="$default_db.ant-object.basedir"/>
+    </xsl:attribute-set>
+    
     <xsl:template name="main">
         <xsl:call-template name="system_cache__appinfo:get_all_xsd">
             <xsl:with-param name="path2collection" select="'../'"/>
@@ -546,18 +557,40 @@
                 </xsl:variable>
                 <xsl:variable name="docs" select="collection($path)"/>
                 <xsl:variable name="procesy5_system_schema">
-                  <system_cache__appinfo:get_all_xsd_list
+                    <system_cache__appinfo:get_all_xsd_list xsl:use-attribute-sets="p5ant-interface:xslt.param.get_all_xsd_list"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:schemaLocation="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd ../../default_db_xml_cache.public/system_cache__appinfo/procesy5_system_schema.xsd">
+                                            
                     <xsl:for-each select="$docs">
                         <xsl:message> get_all_xsd przetwarzam plik <xsl:value-of select="document-uri(/)"/></xsl:message>
                         <xsl:choose>
                             <xsl:when test="contains(document-uri(/),$p5build_SE.INSTALL_ROOT.repository.symlink)">
                                 <xsl:message>#555 ignored /$repository.symlink for <xsl:value-of select="document-uri(/)"/>"/> ;</xsl:message>
                             </xsl:when>
-                            <xsl:when test="contains(document-uri(/),'/ant-object/')">
-                                <xsl:message>#519 ignored /ant-object for <xsl:value-of select="document-uri(/)"/>"/> ;</xsl:message>
+                            <xsl:when test="contains(document-uri(/),'/ant-object/') and ant-object:location__x3A__default_db.validate($default_db.ant-object.basedir,document-uri(/))">
+                                <xsl:message>#519 NOT default_db ignored TESTING /ant-object for <xsl:value-of select="document-uri(/)"/>"/> ;</xsl:message>
+                                <xsl:comment>#519 NOT default_db ignored TESTING /ant-object test:
+                                    <xsl:value-of select="ant-object:location__x3A__default_db.validate($default_db.ant-object.basedir,document-uri(/))"/>
+                                </xsl:comment>
+                                <system_cache__appinfo:get_all_xsd debug="@2019-08 problem if should be _default_db"><!-- _default_db -->
+                                    <xsl:attribute name="system_cache__appinfo:document-uri" select="substring-after(document-uri(/), $default_db.ant-object.basedir)"/>
+                                    <xsl:attribute name="system_cache__appinfo:document-uri-full" select="document-uri(/)"/>
+                                    <xsl:call-template name="ant-object:location__x3A__default_db.validate">
+                                        <xsl:with-param name="document-uri" select="document-uri(/)"/>
+                                        <xsl:with-param name="default_db.ant-object.basedir" select="$default_db.ant-object.basedir"/>
+                                    </xsl:call-template>
+                                    <xsl:copy-of select="/"/>
+                                </system_cache__appinfo:get_all_xsd>
+                            </xsl:when>
+                            
+                            <xsl:when test="contains(document-uri(/),'/ant-object/') and not(ant-object:location__x3A__default_db.validate($default_db.ant-object.basedir,document-uri(/)))">
+                                <xsl:message>#519B  default_db ignored TESTING /ant-object for <xsl:value-of select="document-uri(/)"/>"/> ;</xsl:message>
+                                <xsl:comment>#519B  default_db ignored TESTING /ant-object test:
+                                    <xsl:value-of select="ant-object:location__x3A__default_db.validate($default_db.ant-object.basedir,document-uri(/))"/>
+                                </xsl:comment>
+                                
                             </xsl:when>
+                            
                             <xsl:when test="contains(document-uri(/),$new-schema-with-ID-to-move-and-rename-to-xsd)">
                                 <xsl:message>#638 ignored /ant-object for <xsl:value-of select="document-uri(/)"/>;</xsl:message>
                             </xsl:when>
@@ -616,6 +649,7 @@
                                 </system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix>
                             </xsl:when>
                             <xsl:when test=" contains(document-uri(/), $default_db_xml_cache.public)">
+                                <xsl:comment>#619 NOT ignored  schema by contains(document-uri(/), $default_db_xml_cache.public) == (<xsl:value-of select="$default_db_xml_cache.public"/>) (<xsl:value-of select="document-uri(/)"/>)</xsl:comment>
                                 <system_cache__appinfo:get_all_xsd.default_db_xml_cache.public>
                                     <xsl:attribute name="system_cache__appinfo:document-uri" select="substring-after(document-uri(/), $default_db_xml_cache.public)"/>
                                     <xsl:attribute name="system_cache__appinfo:document-uri-full" select="document-uri(/)"/>
@@ -624,7 +658,7 @@
                             </xsl:when>
                             
                             <xsl:when test=" contains(document-uri(/), concat($default_db.dir,'/'))  ">
-                                <xsl:comment>#617A NOT ignored  schema by contains(document-uri(/), $default_db.dir) == (<xsl:value-of select="$default_db.dir"/> + /)</xsl:comment>
+                                <xsl:comment>#617A NOT ignored  schema by contains(document-uri(/), $default_db.dir) == (<xsl:value-of select="$default_db.dir"/> + /) (<xsl:value-of select="document-uri(/)"/>)</xsl:comment>
                                 <system_cache__appinfo:get_all_xsd_default_db>
                                     <xsl:attribute name="system_cache__appinfo:document-uri" select="substring-after(document-uri(/), $default_db.dir)"/>
                                     <xsl:attribute name="system_cache__appinfo:document-uri-full" select="document-uri(/)"/>
@@ -633,7 +667,7 @@
                             </xsl:when>
                             
                             <xsl:when test=" contains(document-uri(/), $default_db.dir) and substring($default_db.dir, string-length($default_db.dir), 1) = '/'     ">
-                                <xsl:comment>#617B NOT ignored  schema by contains(document-uri(/), $default_db.dir) == (<xsl:value-of select="$default_db.dir"/>)</xsl:comment>
+                                <xsl:comment>#617B NOT ignored  schema by contains(document-uri(/), $default_db.dir) == (<xsl:value-of select="$default_db.dir"/>) (<xsl:value-of select="document-uri(/)"/>)</xsl:comment>
                                 <system_cache__appinfo:get_all_xsd_default_db>
                                     <xsl:attribute name="system_cache__appinfo:document-uri" select="substring-after(document-uri(/), $default_db.dir)"/>
                                     <xsl:attribute name="system_cache__appinfo:document-uri-full" select="document-uri(/)"/>
@@ -641,15 +675,15 @@
                                 </system_cache__appinfo:get_all_xsd_default_db>
                             </xsl:when>
                             
-                            <xsl:when test=" contains(document-uri(/), $default_db.dir)  ">
-                                <xsl:comment>#617C NOT ignored  schema by contains(document-uri(/), $default_db.dir) == (<xsl:value-of select="$default_db.dir"/>)</xsl:comment>
+                            <!--<xsl:when test=" contains(document-uri(/), $default_db.dir)  ">
+                                <xsl:comment>#617C NOT ignored  schema by contains(document-uri(/), $default_db.dir) == (<xsl:value-of select="$default_db.dir"/>) (<xsl:value-of select="document-uri(/)"/>)</xsl:comment>
                                 <xsl:comment>debug last  (<xsl:value-of select="substring($default_db.dir, string-length($default_db.dir), 1)"/>)</xsl:comment>
                                 <system_cache__appinfo:get_all_xsd_default_db>
                                     <xsl:attribute name="system_cache__appinfo:document-uri" select="substring-after(document-uri(/), $default_db.dir)"/>
                                     <xsl:attribute name="system_cache__appinfo:document-uri-full" select="document-uri(/)"/>
                                     <xsl:copy-of select="/"/>
                                 </system_cache__appinfo:get_all_xsd_default_db>
-                            </xsl:when>
+                            </xsl:when>-->
                             
                             <xsl:when test=" contains(document-uri(/), $external_schema_table.path)">
                                 <system_cache__appinfo:get_all_xsd_external_schema_table>
@@ -659,25 +693,27 @@
                                 </system_cache__appinfo:get_all_xsd_external_schema_table>
                             </xsl:when>
                             <xsl:when test=" contains(document-uri(/), $WPS_Functions)">
-                                <xsl:comment>#700 NOT ignored  schema by contains(document-uri(/), $WPS_Functions) (<xsl:value-of select="$WPS_Functions"/>)</xsl:comment>
-                                <xsl:message>#700 NOT ignored  schema by contains(document-uri(/), $WPS_Functions)</xsl:message>
-                                <system_cache__appinfo:get_all_xsd>
+                                <xsl:comment>#700 (!NOT) ignored  schema by contains(document-uri(/), $WPS_Functions) (<xsl:value-of select="$WPS_Functions"/>)</xsl:comment>
+                                <xsl:message>#700 (!NOT) ignored  schema by contains(document-uri(/), $WPS_Functions)</xsl:message>
+                                <!--<system_cache__appinfo:get_all_xsd>
                                     <xsl:attribute name="system_cache__appinfo:document-uri" select="substring-after(document-uri(/), $WPS_Functions)"/>
                                     <xsl:attribute name="system_cache__appinfo:document-uri-full" select="document-uri(/)"/>
                                     <xsl:attribute name="WPS_Functions" select="$WPS_Functions"/>
                                     <xsl:copy-of select="/"/>
-                                </system_cache__appinfo:get_all_xsd>
+                                </system_cache__appinfo:get_all_xsd>-->
                             </xsl:when>
                             
                             <xsl:when test=" contains(document-uri(/), $procesy5_system_schema_collection_dir)">
-                                <xsl:comment>#701 NOT ignored  schema by contains(document-uri(/), $procesy5_system_schema_collection_dir) ($procesy5_system_schema_collection_dir=(<xsl:value-of select="$procesy5_system_schema_collection_dir"/>))</xsl:comment>
-                                <xsl:message>#701 NOT ignored  schema by contains(document-uri(/), $procesy5_system_schema_collection_dir) ($procesy5_system_schema_collection_dir=(<xsl:value-of select="$procesy5_system_schema_collection_dir"/>))</xsl:message>
-                                <system_cache__appinfo:get_all_xsd>
+                                <xsl:comment>#701 (!NOT) ignored  schema by contains(document-uri(/), $procesy5_system_schema_collection_dir) (<xsl:value-of select="document-uri(/)"/>) ($procesy5_system_schema_collection_dir=(<xsl:value-of select="$procesy5_system_schema_collection_dir"/>))</xsl:comment>
+                                <xsl:message>#701 (!NOT) ignored  schema by contains(document-uri(/), $procesy5_system_schema_collection_dir) (<xsl:value-of select="document-uri(/)"/>) ($procesy5_system_schema_collection_dir=(<xsl:value-of select="$procesy5_system_schema_collection_dir"/>))</xsl:message>
+                                <!--<system_cache__appinfo:get_all_xsd>
                                     <xsl:attribute name="system_cache__appinfo:document-uri" select="substring-after(document-uri(/), $procesy5_system_schema_collection_dir)"/>
                                     <xsl:attribute name="system_cache__appinfo:document-uri-full" select="document-uri(/)"/>
                                     <xsl:attribute name="WPS_Functions" select="$WPS_Functions"/>
                                     <xsl:copy-of select="/"/>
-                                </system_cache__appinfo:get_all_xsd>
+                                </system_cache__appinfo:get_all_xsd>-->
+                                <xsl:comment> #701 test ant-object:location__x3A__default_db.validate = "<xsl:value-of select="ant-object:location__x3A__default_db.validate($default_db.ant-object.basedir,document-uri(/))"/>" </xsl:comment>
+                                
                             </xsl:when>
                             
                             <xsl:otherwise>
@@ -814,8 +850,15 @@
     -->
     <xsl:template match="system_cache__appinfo:get_all_xsd_list" mode="system_cache__appinfo:element_complexType">
         <xsl:param name="targetNamespace" select="$targetNamespace_DEFAULTS"/>    
-            <system_cache__appinfo:element_complexType>
-                <xsl:for-each select="get_all_xsd[ substring-before(@system_cache__appinfo:document-uri,'/')!='default_db_xml_cache'  and  substring-before(@system_cache__appinfo:document-uri,'/')!='default_db_xml_cache.public']" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd">
+        <system_cache__appinfo:element_complexType xsl:use-attribute-sets="p5ant-interface:xslt.param.get_all_xsd_list">
+                <xsl:attribute name="default_db.dir" select="$default_db.dir"/>
+                <xsl:attribute name="WPS_Functions" select="$WPS_Functions"/>
+                <xsl:attribute name="default_db_xml_cache.public" select="$default_db_xml_cache.public"/>
+                <xsl:attribute name="external_schema" select="$external_schema"/>
+                <xsl:attribute name="p5Type.basedir" select="$p5Type.basedir"/>
+                
+                
+            <xsl:for-each select="get_all_xsd[ substring-before(@system_cache__appinfo:document-uri,'/')!='default_db_xml_cache'  and  substring-before(@system_cache__appinfo:document-uri,'/')!='default_db_xml_cache.public']" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd">
                     <xsl:sort select="max( */*/count(descendant-or-self::*[ @ref or not(contains(@type,'xs:')) ]))" order="ascending" data-type="number"/>
                     <xsl:variable name="get_all_xsd_236" select="."/>
                     <xsl:comment>
@@ -879,7 +922,7 @@
                                     <xsl:message>157: buduje plaski obiekt/mape przetwarzania w celu przeszukania relacji @id=<xsl:value-of select="@id"/>; targetNamespace:<xsl:value-of select="$prefix_134"/>; $complexType_or_element_name186=<xsl:value-of select="$complexType_or_element_name186"/>; name:<xsl:value-of select="@name"/>; namespace-uri-for-prefix=<xsl:value-of select="namespace-uri-for-prefix($prefix_134,.)"/></xsl:message>
                                     <xsl:choose>
                                         <xsl:when test="local-name()='element'">
-                                            <build_cache name="build_element">
+                                            <build_cache name="build_element" >
                                                 <xsl:attribute name="id" select="@id"/>
                                                 <xsl:attribute name="count" select="count(descendant-or-self::*[ @ref or not(contains(@type,'xs:')) ])"/>
                                                 <xsl:attribute name="id.int.rand" select="system_cache__appinfo:id.int.rand(@id)"/>
@@ -904,7 +947,7 @@
                                             </build_cache>
                                         </xsl:when>
                                         <xsl:when test="local-name()='complexType'">
-                                            <build_cache name="build_complexType">
+                                            <build_cache name="build_complexType" >
                                                 <xsl:attribute name="id" select="@id"/>
                                                 <xsl:attribute name="count" select="count(descendant-or-self::*[ @ref or not(contains(@type,'xs:')) ])"/>
                                                 <xsl:attribute name="id.int.rand" select="system_cache__appinfo:id.int.rand(@id)"/>
@@ -936,7 +979,7 @@
                                         </xsl:when>
                                         
                                         <xsl:when test="local-name()='simpleType'">
-                                            <build_cache name="build_complexType__simpleType">
+                                            <build_cache name="build_complexType__simpleType" >
                                                 <xsl:attribute name="id" select="@id"/>
                                                 <xsl:attribute name="count" select="count(descendant-or-self::*[ @ref or not(contains(@type,'xs:')) ])"/>
                                                 <xsl:attribute name="id.int.rand" select="system_cache__appinfo:id.int.rand(@id)"/>

+ 4 - 1
SE/schema/default_db_xml_cache/system_cache__resources_tree_generate_xsl_required_occurs_raport/parse_schema_to_generate_id.xsl

@@ -15,6 +15,7 @@
     xmlns:p5="https://biuro.biall-net.pl/wfs"
     xmlns:ttr="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/typespecial_to_ref/typespecial_to_ref.xsd"
     xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
+    xmlns:ant-object="http://biuro.biall-net.pl/xmlschema_procesy5/ant-object/ant-object.xsd"
     exclude-result-prefixes="xs xsl exslt system_cache__procesy5_objects_item_links vc hfp system_cache__variables" version="2.0">
     
     <!--<xsl:import href="../../default_db_xml_cache.public/import_resource_table_xml_from_api.xsl"/>-->
@@ -369,7 +370,7 @@
                 </xsl:choose>
                 
             </xsl:for-each>
-            <xsl:message>958:applying ids for schema prefix:<xsl:value-of select="$prefix"/>;</xsl:message>
+            <xsl:message>958:applying ids for schema prefix:<xsl:value-of select="$prefix"/>; @targetNamespace="<xsl:value-of select="@targetNamespace"/>"; </xsl:message>
             <xsl:variable name="prefix">
                 <xsl:choose>
                     <xsl:when test="string-length($prefix) &lt;1">
@@ -408,6 +409,8 @@
         <xsl:attribute name="{name()}">xs:<xsl:value-of select="."/></xsl:attribute>
     </xsl:template>
     
+    <xsl:template match="ant-object:location__x3A__default_db.validate" mode="system_cache__resources_tree_generate_xsl_required_occurs_raport:generate_element_id_for_schema"/>
+    
     <xsl:template match="*" mode="system_cache__resources_tree_generate_xsl_required_occurs_raport:generate_element_id_for_schema" >
         <xsl:param name="system_cache__resources_tree_generate_xsl_required_occurs_raport:schema_id_list" required="yes"/>
         <xsl:param name="prefix" required="yes"/>