A_STATUS.xsd 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml/3.2"
  3. xmlns:Types__x3A__default_Default="https://biuro.biall-net.pl/wfs/default_db/Types/Default.xsd"
  4. xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
  5. xmlns:patterns__x3A__A_STATUS="https://biuro.biall-net.pl/wfs/patterns/patterns/A_STATUS.xsd"
  6. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  7. xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
  8. xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
  9. xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
  10. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  11. xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
  12. xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
  13. targetNamespace="https://biuro.biall-net.pl/wfs/patterns/patterns/A_STATUS.xsd"
  14. vc:minVersion="1.1"
  15. xmlns:default_db__x3A__IN7_DZIENNIK_KORESP="https://biuro.biall-net.pl/wfs/default_db/table/IN7_DZIENNIK_KORESP.xsd"
  16. xmlns:default_db__x3A__BADANIA_W_TERENIE="https://biuro.biall-net.pl/wfs/default_db/table/BADANIA_W_TERENIE.xsd"
  17. xmlns:SystemObjects__x3A__BI="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI.xsd"
  18. xmlns:SystemObjects__x3A__BI_from="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_from.xsd"
  19. xmlns:SystemObjects__x3A__BI_to="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_to.xsd"
  20. xmlns:SystemObjects__x3A__BI_row="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_row.xsd">
  21. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_DZIENNIK_KORESP.xsd"
  22. schemaLocation="../table/IN7_DZIENNIK_KORESP.xsd"/>
  23. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/BADANIA_W_TERENIE.xsd"
  24. schemaLocation="../table/BADANIA_W_TERENIE.xsd">
  25. <xs:annotation>
  26. <xs:documentation>Widać, w tym załączonym obiekcie są modelowane restrykcje na status NORMAL etc, bo mogą mieć one inne wymagania biznesowe. W teorii nic nie przeszkadza, aby dodatkowo standarowo się one równocześnie instancjonowały silnikiem BI</xs:documentation>
  27. </xs:annotation>
  28. </xs:import>
  29. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI.xsd"
  30. schemaLocation="../SystemObjects/BI.xsd"/>
  31. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_from.xsd"
  32. schemaLocation="../SystemObjects/BI_from.xsd"/>
  33. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_to.xsd"
  34. schemaLocation="../SystemObjects/BI_to.xsd"/>
  35. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_row.xsd"
  36. schemaLocation="../SystemObjects/BI_row.xsd"/>
  37. <xs:complexType name="A_STATUS">
  38. <xs:complexContent>
  39. <xs:extension base="SystemObjects__x3A__BI:BI_instance">
  40. <xs:sequence>
  41. <xs:element name="BI_from">
  42. <xs:annotation>
  43. <xs:documentation>Instancjonujemy na bazie asserts z samego FROM</xs:documentation>
  44. </xs:annotation>
  45. <xs:complexType>
  46. <xs:complexContent>
  47. <xs:extension base="SystemObjects__x3A__BI_from:BI_from_instance">
  48. <xs:choice>
  49. <xs:choice>
  50. <xs:element
  51. ref="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE"/>
  52. <xs:element
  53. ref="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE_WAITING"/>
  54. <xs:element
  55. ref="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE_NORMAL"/>
  56. <xs:element
  57. ref="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE_OFF_HARD"/>
  58. <xs:element
  59. ref="default_db__x3A__BADANIA_W_TERENIE:BADANIA_W_TERENIE_DELETED"
  60. />
  61. </xs:choice>
  62. <xs:choice>
  63. <xs:element
  64. ref="default_db__x3A__IN7_DZIENNIK_KORESP:IN7_DZIENNIK_KORESP"/>
  65. <xs:element
  66. ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT"/>
  67. <xs:element
  68. ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK"/>
  69. <xs:element
  70. ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL"/>
  71. <xs:element
  72. ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED"/>
  73. <xs:element
  74. ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER"/>
  75. <xs:element
  76. ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG"/>
  77. <xs:element
  78. ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG"/>
  79. <xs:element
  80. ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ"/>
  81. <xs:element
  82. ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE"/>
  83. <xs:element
  84. ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB"/>
  85. <xs:element
  86. ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD"/>
  87. <xs:element
  88. ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD"/>
  89. <xs:element
  90. ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD"/>
  91. <xs:element
  92. ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB"
  93. />
  94. </xs:choice>
  95. </xs:choice>
  96. </xs:extension>
  97. </xs:complexContent>
  98. </xs:complexType>
  99. </xs:element>
  100. <xs:element maxOccurs="0" minOccurs="0" name="BI_row"
  101. type="SystemObjects__x3A__BI_row:BI_row_instance">
  102. <xs:annotation>
  103. <xs:documentation>Nie szukamy niczego dalej</xs:documentation>
  104. </xs:annotation>
  105. </xs:element>
  106. <xs:element name="BI_to" type="SystemObjects__x3A__BI_to:BI_to_instance"
  107. maxOccurs="0" minOccurs="0">
  108. <xs:annotation>
  109. <xs:documentation>Nie szukamy celow</xs:documentation>
  110. </xs:annotation>
  111. </xs:element>
  112. </xs:sequence>
  113. </xs:extension>
  114. </xs:complexContent>
  115. </xs:complexType>
  116. <xs:element name="A_STATUS" type="patterns__x3A__A_STATUS:A_STATUS"/>
  117. <xs:complexType name="NORMAL">
  118. <xs:complexContent>
  119. <xs:extension base="patterns__x3A__A_STATUS:A_STATUS">
  120. <xs:assert test="BI_from/*/A_STATUS = 'NORMAL'"/>
  121. </xs:extension>
  122. </xs:complexContent>
  123. </xs:complexType>
  124. <xs:element name="NORMAL" type="patterns__x3A__A_STATUS:NORMAL">
  125. <xs:annotation>
  126. <xs:documentation>Obiekt BI powinien instancjonowac te elementy, ktore maja pole A_STATUS=NORMAL</xs:documentation>
  127. </xs:annotation>
  128. </xs:element>
  129. <xs:complexType name="WAITING">
  130. <xs:complexContent>
  131. <xs:extension base="patterns__x3A__A_STATUS:A_STATUS">
  132. <xs:assert test="BI_from/*/A_STATUS = 'WAITING'"/>
  133. </xs:extension>
  134. </xs:complexContent>
  135. </xs:complexType>
  136. <xs:element name="WAITING" type="patterns__x3A__A_STATUS:WAITING"/>
  137. <xs:complexType name="MONITOR">
  138. <xs:complexContent>
  139. <xs:extension base="patterns__x3A__A_STATUS:A_STATUS">
  140. <xs:assert test="BI_from/*/A_STATUS = 'MONITOR'"/>
  141. </xs:extension>
  142. </xs:complexContent>
  143. </xs:complexType>
  144. <xs:element name="MONITOR" type="patterns__x3A__A_STATUS:MONITOR"/>
  145. <xs:complexType name="OFF_HARD">
  146. <xs:complexContent>
  147. <xs:extension base="patterns__x3A__A_STATUS:A_STATUS">
  148. <xs:assert test="BI_from/*/A_STATUS = 'OFF_HARD'"/>
  149. </xs:extension>
  150. </xs:complexContent>
  151. </xs:complexType>
  152. <xs:element name="OFF_HARD" type="patterns__x3A__A_STATUS:OFF_HARD"/>
  153. <xs:complexType name="DELETED">
  154. <xs:complexContent>
  155. <xs:extension base="patterns__x3A__A_STATUS:A_STATUS">
  156. <xs:assert test="BI_from/*/A_STATUS = 'DELETED'"/>
  157. </xs:extension>
  158. </xs:complexContent>
  159. </xs:complexType>
  160. <xs:element name="DELETED" type="patterns__x3A__A_STATUS:DELETED">
  161. <xs:annotation>
  162. <xs:documentation>Obiekt BI powinien instancjonowac te elementy, ktore maja pole A_STATUS=DELETED</xs:documentation>
  163. </xs:annotation>
  164. </xs:element>
  165. </xs:schema>