Преглед на файлове

Fixed Trac #631: impossible to assign a routine or emergency change.
Cleanup: removed useless state definitions.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2464 a333f486-631f-4898-b8df-5754b55c2be0

dflaven преди 12 години
родител
ревизия
a50264c1f0
променени са 1 файла, в които са добавени 39 реда и са изтрити 249 реда
  1. 39 249
      datamodels/2.x/itop-change-mgmt-itil/datamodel.itop-change-mgmt-itil.xml

+ 39 - 249
datamodels/2.x/itop-change-mgmt-itil/datamodel.itop-change-mgmt-itil.xml

@@ -1332,132 +1332,15 @@
               </transition>
             </transitions>
           </state>
-          <state id="validated">
+           <state id="assigned">
             <flags>
               <attribute id="ref">
                 <read_only/>
               </attribute>
-              <attribute id="agent_id">
-                <hidden/>
-              </attribute>
-              <attribute id="title">
-                <mandatory/>
-              </attribute>
-              <attribute id="description">
-                <read_only/>
-              </attribute>
-              <attribute id="start_date">
-                <hidden/>
-              </attribute>
-              <attribute id="end_date">
-                <hidden/>
-              </attribute>
-              <attribute id="last_update">
-                <read_only/>
-              </attribute>
-              <attribute id="close_date">
-                <hidden/>
-              </attribute>
-              <attribute id="reason">
-                <read_only/>
-              </attribute>
-              <attribute id="requestor_id">
-                <read_only/>
-              </attribute>
-              <attribute id="creation_date">
-                <read_only/>
-              </attribute>
-              <attribute id="impact">
-                <hidden/>
-              </attribute>
               <attribute id="team_id">
-                <mandatory/>
-                <must_prompt/>
-              </attribute>
-              <attribute id="supervisor_group_id">
-                <mandatory/>
-                <must_prompt/>
-              </attribute>
-              <attribute id="supervisor_id">
-                <hidden/>
-              </attribute>
-              <attribute id="manager_group_id">
-                <mandatory/>
                 <must_prompt/>
-              </attribute>
-              <attribute id="manager_id">
-                <hidden/>
-              </attribute>
-              <attribute id="outage">
-                <hidden/>
-              </attribute>
-              <attribute id="fallback">
-                <hidden/>
-              </attribute>
-            </flags>
-            <transitions/>
-          </state>
-          <state id="rejected">
-            <flags>
-              <attribute id="ref">
-                <read_only/>
-              </attribute>
-              <attribute id="agent_id">
-                <hidden/>
-              </attribute>
-              <attribute id="title">
-                <mandatory/>
-              </attribute>
-              <attribute id="start_date">
-                <hidden/>
-              </attribute>
-              <attribute id="end_date">
-                <hidden/>
-              </attribute>
-              <attribute id="last_update">
-                <read_only/>
-              </attribute>
-              <attribute id="close_date">
-                <hidden/>
-              </attribute>
-              <attribute id="reason">
-                <mandatory/>
-              </attribute>
-              <attribute id="requestor_id">
                 <mandatory/>
               </attribute>
-              <attribute id="creation_date">
-                <read_only/>
-              </attribute>
-              <attribute id="impact">
-                <hidden/>
-              </attribute>
-              <attribute id="supervisor_group_id">
-                <hidden/>
-              </attribute>
-              <attribute id="supervisor_id">
-                <hidden/>
-              </attribute>
-              <attribute id="manager_group_id">
-                <hidden/>
-              </attribute>
-              <attribute id="manager_id">
-                <hidden/>
-              </attribute>
-              <attribute id="outage">
-                <hidden/>
-              </attribute>
-              <attribute id="fallback">
-                <hidden/>
-              </attribute>
-            </flags>
-            <transitions/>
-          </state>
-          <state id="assigned">
-            <flags>
-              <attribute id="ref">
-                <read_only/>
-              </attribute>
               <attribute id="agent_id">
                 <must_prompt/>
                 <mandatory/>
@@ -1529,6 +1412,9 @@
               <attribute id="org_id">
                 <read_only/>
               </attribute>
+              <attribute id="team_id">
+                <mandatory/>
+              </attribute>
               <attribute id="agent_id">
                 <mandatory/>
               </attribute>
@@ -1602,6 +1488,9 @@
               <attribute id="org_id">
                 <read_only/>
               </attribute>
+              <attribute id="team_id">
+                <mandatory/>
+              </attribute>
               <attribute id="agent_id">
                 <mandatory/>
               </attribute>
@@ -1664,6 +1553,9 @@
               <attribute id="org_id">
                 <read_only/>
               </attribute>
+              <attribute id="team_id">
+                <mandatory/>
+              </attribute>
               <attribute id="agent_id">
                 <mandatory/>
               </attribute>
@@ -1726,6 +1618,9 @@
               <attribute id="org_id">
                 <read_only/>
               </attribute>
+              <attribute id="team_id">
+                <mandatory/>
+              </attribute>
               <attribute id="agent_id">
                 <mandatory/>
               </attribute>
@@ -1803,6 +1698,9 @@
               <attribute id="org_id">
                 <read_only/>
               </attribute>
+              <attribute id="team_id">
+                <read_only/>
+              </attribute>
               <attribute id="agent_id">
                 <read_only/>
               </attribute>
@@ -1884,6 +1782,9 @@
               <attribute id="org_id">
                 <read_only/>
               </attribute>
+              <attribute id="team_id">
+                <read_only/>
+              </attribute>
               <attribute id="agent_id">
                 <read_only/>
               </attribute>
@@ -4418,145 +4319,16 @@
               </transition>
             </transitions>
           </state>
-          <state id="validated">
+          <state id="assigned">
             <flags>
               <attribute id="ref">
                 <read_only/>
               </attribute>
               <attribute id="agent_id">
-                <hidden/>
-              </attribute>
-              <attribute id="title">
-                <mandatory/>
-              </attribute>
-              <attribute id="description">
-                <read_only/>
-              </attribute>
-              <attribute id="start_date">
-                <hidden/>
-              </attribute>
-              <attribute id="end_date">
-                <hidden/>
-              </attribute>
-              <attribute id="last_update">
-                <read_only/>
-              </attribute>
-              <attribute id="close_date">
-                <hidden/>
-              </attribute>
-              <attribute id="reason">
-                <read_only/>
-              </attribute>
-              <attribute id="requestor_id">
-                <read_only/>
-              </attribute>
-              <attribute id="creation_date">
-                <read_only/>
-              </attribute>
-              <attribute id="impact">
-                <hidden/>
-              </attribute>
-              <attribute id="team_id">
-                <mandatory/>
-                <must_prompt/>
-              </attribute>
-              <attribute id="supervisor_group_id">
-                <mandatory/>
-                <must_prompt/>
-              </attribute>
-              <attribute id="supervisor_id">
-                <hidden/>
-              </attribute>
-              <attribute id="manager_group_id">
-                <mandatory/>
                 <must_prompt/>
-              </attribute>
-              <attribute id="manager_id">
-                <hidden/>
-              </attribute>
-              <attribute id="outage">
-                <hidden/>
-              </attribute>
-              <attribute id="fallback">
-                <hidden/>
-              </attribute>
-              <attribute id="approval_date">
-                <hidden/>
-              </attribute>
-              <attribute id="approval_comment">
-                <hidden/>
-              </attribute>
-            </flags>
-            <transitions/>
-          </state>
-          <state id="rejected">
-            <flags>
-              <attribute id="ref">
-                <read_only/>
-              </attribute>
-              <attribute id="agent_id">
-                <hidden/>
-              </attribute>
-              <attribute id="title">
                 <mandatory/>
               </attribute>
-              <attribute id="start_date">
-                <hidden/>
-              </attribute>
-              <attribute id="end_date">
-                <hidden/>
-              </attribute>
-              <attribute id="last_update">
-                <read_only/>
-              </attribute>
-              <attribute id="close_date">
-                <hidden/>
-              </attribute>
-              <attribute id="reason">
-                <mandatory/>
-              </attribute>
-              <attribute id="requestor_id">
-                <mandatory/>
-              </attribute>
-              <attribute id="creation_date">
-                <read_only/>
-              </attribute>
-              <attribute id="impact">
-                <hidden/>
-              </attribute>
-              <attribute id="supervisor_group_id">
-                <hidden/>
-              </attribute>
-              <attribute id="supervisor_id">
-                <hidden/>
-              </attribute>
-              <attribute id="manager_group_id">
-                <hidden/>
-              </attribute>
-              <attribute id="manager_id">
-                <hidden/>
-              </attribute>
-              <attribute id="outage">
-                <hidden/>
-              </attribute>
-              <attribute id="fallback">
-                <hidden/>
-              </attribute>
-              <attribute id="approval_date">
-                <hidden/>
-              </attribute>
-              <attribute id="approval_comment">
-                <hidden/>
-              </attribute>
-            </flags>
-            <transitions/>
-          </state>
-          <state id="assigned">
-            <flags>
-              <attribute id="ref">
-                <read_only/>
-              </attribute>
-              <attribute id="agent_id">
+              <attribute id="team_id">
                 <must_prompt/>
                 <mandatory/>
               </attribute>
@@ -4636,6 +4408,9 @@
               <attribute id="agent_id">
                 <mandatory/>
               </attribute>
+              <attribute id="team_id">
+                <mandatory/>
+              </attribute>
               <attribute id="title">
                 <mandatory/>
               </attribute>
@@ -4720,6 +4495,9 @@
               <attribute id="agent_id">
                 <mandatory/>
               </attribute>
+              <attribute id="team_id">
+                <mandatory/>
+              </attribute>
               <attribute id="title">
                 <mandatory/>
               </attribute>
@@ -4794,6 +4572,9 @@
               <attribute id="agent_id">
                 <mandatory/>
               </attribute>
+              <attribute id="team_id">
+                <mandatory/>
+              </attribute>
               <attribute id="title">
                 <mandatory/>
               </attribute>
@@ -4868,6 +4649,9 @@
               <attribute id="agent_id">
                 <mandatory/>
               </attribute>
+              <attribute id="team_id">
+                <mandatory/>
+              </attribute>
               <attribute id="title">
                 <read_only/>
               </attribute>
@@ -4948,6 +4732,9 @@
               <attribute id="org_id">
                 <read_only/>
               </attribute>
+              <attribute id="team_id">
+                <read_only/>
+              </attribute>
               <attribute id="agent_id">
                 <read_only/>
               </attribute>
@@ -5038,6 +4825,9 @@
               <attribute id="agent_id">
                 <read_only/>
               </attribute>
+              <attribute id="team_id">
+                <read_only/>
+              </attribute>
               <attribute id="caller_id">
                 <read_only/>
               </attribute>