<?xml version="1.0" encoding="UTF-8"?>
<itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.6">
  <classes>
    <class id="Change" _delta="define">
      <parent>Ticket</parent>
      <properties>
        <comment><![CDATA[/**
 * Persistent classes for a CMDB
 *
 * @copyright   Copyright (C) 2010-2017 Combodo SARL
 * @license     http://opensource.org/licenses/AGPL-3.0
 */]]></comment>
        <category>bizmodel,searchable,changemgmt</category>
        <abstract>true</abstract>
        <key_type>autoincrement</key_type>
        <db_table>change</db_table>
        <db_key_field>id</db_key_field>
        <db_final_class_field/>
        <naming>
          <attributes>
            <attribute id="ref"/>
          </attributes>
        </naming>
        <display_template/>
        <icon>images/change.png</icon>
        <reconciliation>
          <attributes>
            <attribute id="ref"/>
            <attribute id="finalclass"/>
          </attributes>
        </reconciliation>
        <order>
          <columns>
            <column id="ref" ascending="false"/>
          </columns>
        </order>
      </properties>
      <fields>
        <field id="status" xsi:type="AttributeEnum">
          <values>
            <value id="approved">approved</value>
            <value id="assigned">assigned</value>
            <value id="closed">closed</value>
            <value id="implemented">implemented</value>
            <value id="monitored">monitored</value>
            <value id="new">new</value>
            <value id="notapproved">notapproved</value>
            <value id="plannedscheduled">plannedscheduled</value>
            <value id="rejected">rejected</value>
            <value id="validated">validated</value>
          </values>
          <sql>status</sql>
          <default_value>new</default_value>
          <is_null_allowed>true</is_null_allowed>
        </field>
        <field id="reason" xsi:type="AttributeString">
          <sql>reason</sql>
          <default_value/>
          <is_null_allowed>true</is_null_allowed>
        </field>
        <field id="requestor_id" xsi:type="AttributeExternalKey">
          <filter><![CDATA[SELECT Person AS p WHERE p.org_id = :this->org_id]]></filter>
          <dependencies>
            <attribute id="org_id"/>
          </dependencies>
          <sql>requestor_id</sql>
          <target_class>Person</target_class>
          <is_null_allowed>true</is_null_allowed>
          <on_target_delete>DEL_MANUAL</on_target_delete>
          <jointype/>
        </field>
        <field id="requestor_email" xsi:type="AttributeExternalField">
          <extkey_attcode>requestor_id</extkey_attcode>
          <target_attcode>email</target_attcode>
          <is_null_allowed>true</is_null_allowed>
        </field>
        <field id="creation_date" xsi:type="AttributeDateTime">
          <sql>creation_date</sql>
          <default_value/>
          <is_null_allowed>true</is_null_allowed>
        </field>
        <field id="impact" xsi:type="AttributeString">
          <sql>impact</sql>
          <default_value/>
          <is_null_allowed>true</is_null_allowed>
        </field>
        <field id="supervisor_group_id" xsi:type="AttributeExternalKey">
          <sql>supervisor_group_id</sql>
          <target_class>Team</target_class>
          <is_null_allowed>true</is_null_allowed>
          <on_target_delete>DEL_MANUAL</on_target_delete>
          <jointype/>
        </field>
        <field id="supervisor_group_name" xsi:type="AttributeExternalField">
          <extkey_attcode>supervisor_group_id</extkey_attcode>
          <target_attcode>name</target_attcode>
          <is_null_allowed>true</is_null_allowed>
        </field>
        <field id="supervisor_id" xsi:type="AttributeExternalKey">
          <filter><![CDATA[SELECT Person AS p JOIN lnkPersonToTeam AS l ON l.person_id=p.id JOIN Team AS t ON l.team_id=t.id WHERE t.id = :this->supervisor_group_id]]></filter>
          <dependencies>
            <attribute id="supervisor_group_id"/>
          </dependencies>
          <sql>supervisor_id</sql>
          <target_class>Person</target_class>
          <is_null_allowed>true</is_null_allowed>
          <on_target_delete>DEL_MANUAL</on_target_delete>
          <allow_target_creation>false</allow_target_creation>
          <jointype/>
        </field>
        <field id="supervisor_email" xsi:type="AttributeExternalField">
          <extkey_attcode>supervisor_id</extkey_attcode>
          <target_attcode>email</target_attcode>
          <is_null_allowed>true</is_null_allowed>
        </field>
        <field id="manager_group_id" xsi:type="AttributeExternalKey">
          <sql>manager_group_id</sql>
          <target_class>Team</target_class>
          <is_null_allowed>true</is_null_allowed>
          <on_target_delete>DEL_MANUAL</on_target_delete>
          <jointype/>
        </field>
        <field id="manager_group_name" xsi:type="AttributeExternalField">
          <extkey_attcode>manager_group_id</extkey_attcode>
          <target_attcode>name</target_attcode>
          <is_null_allowed>true</is_null_allowed>
        </field>
        <field id="manager_id" xsi:type="AttributeExternalKey">
          <filter><![CDATA[SELECT Person AS p JOIN lnkPersonToTeam AS l ON l.person_id=p.id JOIN Team AS t ON l.team_id=t.id WHERE t.id = :this->manager_group_id]]></filter>
          <dependencies>
            <attribute id="manager_group_id"/>
          </dependencies>
          <sql>manager_id</sql>
          <target_class>Person</target_class>
          <is_null_allowed>true</is_null_allowed>
          <on_target_delete>DEL_MANUAL</on_target_delete>
          <allow_target_creation>false</allow_target_creation>
          <jointype/>
        </field>
        <field id="manager_email" xsi:type="AttributeExternalField">
          <extkey_attcode>manager_id</extkey_attcode>
          <target_attcode>email</target_attcode>
          <is_null_allowed>true</is_null_allowed>
        </field>
        <field id="outage" xsi:type="AttributeEnum">
          <values>
            <value id="yes">yes</value>
            <value id="no">no</value>
          </values>
          <sql>outage</sql>
          <default_value>no</default_value>
          <is_null_allowed>false</is_null_allowed>
        </field>
        <field id="fallback" xsi:type="AttributeText">
          <sql>fallback</sql>
          <default_value/>
          <is_null_allowed>true</is_null_allowed>
        </field>
        <field id="parent_id" xsi:type="AttributeExternalKey">
          <filter><![CDATA[SELECT Change WHERE id != :this->id]]></filter>
          <sql>parent_id</sql>
          <target_class>Change</target_class>
          <is_null_allowed>true</is_null_allowed>
          <on_target_delete>DEL_MANUAL</on_target_delete>
          <jointype/>
        </field>
        <field id="parent_name" xsi:type="AttributeExternalField">
          <extkey_attcode>parent_id</extkey_attcode>
          <target_attcode>ref</target_attcode>
          <is_null_allowed>true</is_null_allowed>
        </field>
        <field id="related_request_list" xsi:type="AttributeLinkedSet">
          <linked_class>UserRequest</linked_class>
          <ext_key_to_me>parent_change_id</ext_key_to_me>
          <edit_mode>add_remove</edit_mode>
          <count_min>0</count_min>
          <count_max>0</count_max>
        </field>
        <field id="related_incident_list" xsi:type="AttributeLinkedSet">
          <linked_class>Incident</linked_class>
          <ext_key_to_me>parent_change_id</ext_key_to_me>
          <edit_mode>add_remove</edit_mode>
          <count_min>0</count_min>
          <count_max>0</count_max>
        </field>
        <field id="related_problems_list" xsi:type="AttributeLinkedSet">
          <linked_class>Problem</linked_class>
          <ext_key_to_me>related_change_id</ext_key_to_me>
          <edit_mode>add_remove</edit_mode>
          <count_min>0</count_min>
          <count_max>0</count_max>
        </field>
        <field id="child_changes_list" xsi:type="AttributeLinkedSet">
          <linked_class>Change</linked_class>
          <ext_key_to_me>parent_id</ext_key_to_me>
          <edit_mode>add_remove</edit_mode>
          <filter><![CDATA[SELECT Change WHERE id != :this->id]]></filter>
          <count_min>0</count_min>
          <count_max>0</count_max>
        </field>
      </fields>
      <lifecycle>
        <attribute>status</attribute>
        <highlight_scale>
          <item id="approved">
            <rank>1</rank>
            <color>HIGHLIGHT_CLASS_NONE</color>
            <icon>images/change-approved.png</icon>
          </item>
          <item id="rejected">
            <rank>2</rank>
            <color>HIGHLIGHT_CLASS_NONE</color>
            <icon>images/change-rejected.png</icon>
          </item>
          <item id="closed">
            <rank>3</rank>
            <color>HIGHLIGHT_CLASS_NONE</color>
            <icon>images/change-closed.png</icon>
          </item>
        </highlight_scale>
        <stimuli>
          <stimulus id="ev_validate" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_reject" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_assign" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_reopen" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_plan" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_approve" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_replan" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_notapprove" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_implement" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_monitor" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_finish" xsi:type="StimulusUserAction"/>
        </stimuli>
        <states>
          <state id="new">
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <hidden/>
              </attribute>
              <attribute id="team_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">
                <hidden/>
              </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="validated">
            <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">
            <highlight>
              <code>rejected</code>
            </highlight>
            <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/>
                <must_prompt/>
              </attribute>
              <attribute id="requestor_id">
                <mandatory/>
              </attribute>
              <attribute id="creation_date">
                <read_only/>
              </attribute>
              <attribute id="impact">
                <hidden/>
              </attribute>
              <attribute id="team_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_id">
                <hidden/>
              </attribute>
              <attribute id="manager_group_id">
                <read_only/>
              </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">
                <mandatory/>
                <must_prompt/>
              </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="supervisor_group_id">
                <mandatory/>
              </attribute>
              <attribute id="supervisor_id">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="manager_group_id">
                <mandatory/>
              </attribute>
              <attribute id="manager_id">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="outage">
                <hidden/>
              </attribute>
              <attribute id="fallback">
                <hidden/>
              </attribute>
            </flags>
            <transitions/>
          </state>
          <state id="plannedscheduled">
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="org_id">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <mandatory/>
              </attribute>
              <attribute id="title">
                <mandatory/>
              </attribute>
              <attribute id="description">
                <read_only/>
              </attribute>
              <attribute id="start_date">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="end_date">
                <mandatory/>
                <must_prompt/>
              </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">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="supervisor_group_id">
                <mandatory/>
              </attribute>
              <attribute id="supervisor_id">
                <mandatory/>
              </attribute>
              <attribute id="manager_group_id">
                <mandatory/>
              </attribute>
              <attribute id="manager_id">
                <mandatory/>
              </attribute>
              <attribute id="outage">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="fallback">
                <mandatory/>
                <must_prompt/>
              </attribute>
            </flags>
            <transitions/>
          </state>
          <state id="approved">
            <highlight>
              <code>approved</code>
            </highlight>
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="org_id">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <mandatory/>
              </attribute>
              <attribute id="title">
                <mandatory/>
              </attribute>
              <attribute id="description">
                <read_only/>
              </attribute>
              <attribute id="start_date">
                <mandatory/>
              </attribute>
              <attribute id="end_date">
                <mandatory/>
              </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">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_id">
                <read_only/>
              </attribute>
              <attribute id="manager_group_id">
                <read_only/>
              </attribute>
              <attribute id="manager_id">
                <read_only/>
              </attribute>
              <attribute id="outage">
                <read_only/>
              </attribute>
              <attribute id="fallback">
                <mandatory/>
              </attribute>
            </flags>
            <transitions/>
          </state>
          <state id="notapproved">
            <highlight>
              <code>rejected</code>
            </highlight>
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="org_id">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <mandatory/>
              </attribute>
              <attribute id="title">
                <mandatory/>
              </attribute>
              <attribute id="description">
                <read_only/>
              </attribute>
              <attribute id="start_date">
                <mandatory/>
              </attribute>
              <attribute id="end_date">
                <mandatory/>
              </attribute>
              <attribute id="last_update">
                <read_only/>
              </attribute>
              <attribute id="close_date">
                <hidden/>
              </attribute>
              <attribute id="reason">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="requestor_id">
                <read_only/>
              </attribute>
              <attribute id="creation_date">
                <read_only/>
              </attribute>
              <attribute id="impact">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_id">
                <read_only/>
              </attribute>
              <attribute id="manager_group_id">
                <read_only/>
              </attribute>
              <attribute id="manager_id">
                <read_only/>
              </attribute>
              <attribute id="outage">
                <mandatory/>
              </attribute>
              <attribute id="fallback">
                <mandatory/>
              </attribute>
            </flags>
            <transitions/>
          </state>
          <state id="implemented">
            <highlight>
              <code>approved</code>
            </highlight>
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="org_id">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <mandatory/>
              </attribute>
              <attribute id="title">
                <read_only/>
              </attribute>
              <attribute id="description">
                <read_only/>
              </attribute>
              <attribute id="start_date">
                <read_only/>
              </attribute>
              <attribute id="end_date">
                <mandatory/>
              </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">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_id">
                <read_only/>
              </attribute>
              <attribute id="manager_group_id">
                <read_only/>
              </attribute>
              <attribute id="manager_id">
                <read_only/>
              </attribute>
              <attribute id="outage">
                <read_only/>
              </attribute>
              <attribute id="fallback">
                <mandatory/>
              </attribute>
            </flags>
            <transitions/>
          </state>
          <state id="monitored">
            <highlight>
              <code>approved</code>
            </highlight>
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="org_id">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <read_only/>
              </attribute>
              <attribute id="caller_id">
                <read_only/>
              </attribute>
              <attribute id="title">
                <read_only/>
              </attribute>
              <attribute id="description">
                <read_only/>
              </attribute>
              <attribute id="start_date">
                <read_only/>
              </attribute>
              <attribute id="end_date">
                <read_only/>
              </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">
                <read_only/>
              </attribute>
              <attribute id="team_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_id">
                <read_only/>
              </attribute>
              <attribute id="manager_group_id">
                <read_only/>
              </attribute>
              <attribute id="manager_id">
                <read_only/>
              </attribute>
              <attribute id="outage">
                <read_only/>
              </attribute>
              <attribute id="fallback">
                <read_only/>
              </attribute>
              <attribute id="parent_id">
                <read_only/>
              </attribute>
            </flags>
            <transitions/>
          </state>
          <state id="closed">
            <highlight>
              <code>closed</code>
            </highlight>
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="org_id">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <read_only/>
              </attribute>
              <attribute id="caller_id">
                <read_only/>
              </attribute>
              <attribute id="title">
                <read_only/>
              </attribute>
              <attribute id="description">
                <read_only/>
              </attribute>
              <attribute id="start_date">
                <read_only/>
              </attribute>
              <attribute id="end_date">
                <read_only/>
              </attribute>
              <attribute id="last_update">
                <read_only/>
              </attribute>
              <attribute id="close_date">
                <read_only/>
              </attribute>
              <attribute id="reason">
                <read_only/>
              </attribute>
              <attribute id="requestor_id">
                <read_only/>
              </attribute>
              <attribute id="creation_date">
                <read_only/>
              </attribute>
              <attribute id="impact">
                <read_only/>
              </attribute>
              <attribute id="team_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_id">
                <read_only/>
              </attribute>
              <attribute id="manager_group_id">
                <read_only/>
              </attribute>
              <attribute id="manager_id">
                <read_only/>
              </attribute>
              <attribute id="outage">
                <read_only/>
              </attribute>
              <attribute id="fallback">
                <read_only/>
              </attribute>
              <attribute id="private_log">
                <read_only/>
              </attribute>
              <attribute id="parent_id">
                <read_only/>
              </attribute>
            </flags>
            <transitions/>
          </state>
        </states>
      </lifecycle>
      <methods>
        <method id="SetClosureDate">
          <comment><![CDATA[/**
	 * To be deprecated: use SetCurrentDate() instead
	 * @return void
	 */]]></comment>
          <static>false</static>
          <access>public</access>
          <type>StimulusUserAction</type>
          <code><![CDATA[	public function SetClosureDate($sStimulusCode)
	{
		$this->Set('close_date', time());
		return true;
	}]]></code>
        </method>
        <method id="ResetRejectReason">
          <comment><![CDATA[/**
	 * To be deprecated: use SetCurrentDate() instead
	 * @return void
	 */]]></comment>
          <static>false</static>
          <access>public</access>
          <type>LifecycleAction</type>
          <code><![CDATA[	public function ResetRejectReason($sStimulusCode)
	{
		$this->Set('reason', '');
		return true;
	}]]></code>
        </method>
        <method id="OnInsert">
          <static>false</static>
          <access>protected</access>
          <type>Overload-DBObject</type>
          <code><![CDATA[
    protected function OnInsert()
	{
        parent::OnInsert();
        $this->UpdateImpactedItems();
		$this->Set('creation_date', time());
		$this->Set('last_update', time());
	}]]>
          </code>
        </method>
        <method id="OnUpdate">
          <static>false</static>
          <access>protected</access>
          <type>Overload-DBObject</type>
          <code><![CDATA[
    protected function OnUpdate()
  	{
        parent::OnUpdate();
        $aChanges = $this->ListChanges();
        if (array_key_exists('functionalcis_list', $aChanges))
        {
            $this->UpdateImpactedItems();
        }
  	    $this->Set('last_update', time());
  	}]]>
          </code>
        </method>
      </methods>
      <presentation>
        <details>
          <items>
            <item id="functionalcis_list">
              <rank>10</rank>
            </item>
            <item id="contacts_list">
              <rank>20</rank>
            </item>
            <item id="workorders_list">
              <rank>30</rank>
            </item>
            <item id="related_request_list">
              <rank>40</rank>
            </item>
            <item id="related_incident_list">
              <rank>50</rank>
            </item>
            <item id="related_problems_list">
              <rank>60</rank>
            </item>
            <item id="child_changes_list">
              <rank>70</rank>
            </item>
            <item id="col:col1">
              <rank>80</rank>
              <items>
                <item id="fieldset:Ticket:baseinfo">
                  <rank>10</rank>
                  <items>
                    <item id="ref">
                      <rank>10</rank>
                    </item>
                    <item id="org_id">
                      <rank>20</rank>
                    </item>
                    <item id="status">
                      <rank>30</rank>
                    </item>
                    <item id="title">
                      <rank>40</rank>
                    </item>
                    <item id="description">
                      <rank>50</rank>
                    </item>
                  </items>
                </item>
                <item id="fieldset:Ticket:contact">
                  <rank>20</rank>
                  <items>
                    <item id="caller_id">
                      <rank>10</rank>
                    </item>
                    <item id="team_id">
                      <rank>20</rank>
                    </item>
                    <item id="agent_id">
                      <rank>30</rank>
                    </item>
                    <item id="supervisor_group_id">
                      <rank>40</rank>
                    </item>
                    <item id="supervisor_id">
                      <rank>50</rank>
                    </item>
                    <item id="manager_group_id">
                      <rank>60</rank>
                    </item>
                    <item id="manager_id">
                      <rank>70</rank>
                    </item>
                  </items>
                </item>
              </items>
            </item>
            <item id="col:col2">
              <rank>90</rank>
              <items>
                <item id="fieldset:Ticket:resolution">
                  <rank>10</rank>
                  <items>
                    <item id="reason">
                      <rank>10</rank>
                    </item>
                    <item id="impact">
                      <rank>20</rank>
                    </item>
                    <item id="outage">
                      <rank>30</rank>
                    </item>
                    <item id="fallback">
                      <rank>40</rank>
                    </item>
                  </items>
                </item>
                <item id="fieldset:Ticket:relation">
                  <rank>20</rank>
                  <items>
                    <item id="parent_id">
                      <rank>10</rank>
                    </item>
                  </items>
                </item>
              </items>
            </item>
            <item id="col:col3">
              <rank>100</rank>
              <items>
                <item id="fieldset:Ticket:date">
                  <rank>10</rank>
                  <items>
                    <item id="creation_date">
                      <rank>10</rank>
                    </item>
                    <item id="start_date">
                      <rank>20</rank>
                    </item>
                    <item id="end_date">
                      <rank>30</rank>
                    </item>
                    <item id="last_update">
                      <rank>40</rank>
                    </item>
                    <item id="close_date">
                      <rank>50</rank>
                    </item>
                  </items>
                </item>
              </items>
            </item>
          </items>
        </details>
        <search>
          <items>
            <item id="ref">
              <rank>10</rank>
            </item>
            <item id="org_id">
              <rank>20</rank>
            </item>
            <item id="status">
              <rank>30</rank>
            </item>
            <item id="operational_status">
              <rank>35</rank>
            </item>
            <item id="title">
              <rank>40</rank>
            </item>
            <item id="description">
              <rank>50</rank>
            </item>
            <item id="caller_id">
              <rank>60</rank>
            </item>
            <item id="team_id">
              <rank>70</rank>
            </item>
            <item id="agent_id">
              <rank>80</rank>
            </item>
            <item id="supervisor_group_id">
              <rank>90</rank>
            </item>
            <item id="supervisor_id">
              <rank>100</rank>
            </item>
            <item id="manager_group_id">
              <rank>110</rank>
            </item>
            <item id="manager_id">
              <rank>120</rank>
            </item>
            <item id="reason">
              <rank>130</rank>
            </item>
            <item id="impact">
              <rank>140</rank>
            </item>
            <item id="outage">
              <rank>150</rank>
            </item>
            <item id="parent_id">
              <rank>160</rank>
            </item>
            <item id="creation_date">
              <rank>170</rank>
            </item>
            <item id="start_date">
              <rank>180</rank>
            </item>
            <item id="end_date">
              <rank>190</rank>
            </item>
            <item id="last_update">
              <rank>200</rank>
            </item>
            <item id="close_date">
              <rank>210</rank>
            </item>
          </items>
        </search>
        <list>
          <items>
            <item id="finalclass">
              <rank>10</rank>
            </item>
            <item id="title">
              <rank>20</rank>
            </item>
            <item id="org_id">
              <rank>30</rank>
            </item>
            <item id="start_date">
              <rank>40</rank>
            </item>
            <item id="end_date">
              <rank>50</rank>
            </item>
            <item id="status">
              <rank>60</rank>
            </item>
            <item id="agent_id">
              <rank>70</rank>
            </item>
          </items>
        </list>
      </presentation>
    </class>
    <class id="RoutineChange" _delta="define">
      <parent>Change</parent>
      <properties>
        <category>bizmodel,searchable,changemgmt</category>
        <abstract>false</abstract>
        <key_type>autoincrement</key_type>
        <db_table>change_routine</db_table>
        <db_key_field>id</db_key_field>
        <db_final_class_field/>
        <naming>
          <attributes>
            <attribute id="ref"/>
          </attributes>
        </naming>
        <display_template/>
        <icon>images/change.png</icon>
        <reconciliation>
          <attributes>
            <attribute id="ref"/>
          </attributes>
        </reconciliation>
        <order>
          <columns>
            <column id="ref" ascending="false"/>
          </columns>
        </order>
      </properties>
      <fields/>
      <lifecycle>
        <attribute>status</attribute>
        <stimuli>
          <stimulus id="ev_assign" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_reopen" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_plan" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_approve" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_replan" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_notapprove" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_implement" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_monitor" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_finish" xsi:type="StimulusUserAction"/>
        </stimuli>
        <states>
          <state id="new">
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <hidden/>
              </attribute>
              <attribute id="team_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">
                <hidden/>
              </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>
              <transition id="ev_assign">
                <target>assigned</target>
                <actions/>
              </transition>
            </transitions>
          </state>
          <state id="validated">
            <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/>
                <must_prompt/>
              </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">
            <inherit_flags_from>new</inherit_flags_from>
            <flags>
              <attribute id="description">
                <read_only/>
              </attribute>
              <attribute id="team_id">
                <must_prompt/>
                <mandatory/>
              </attribute>
              <attribute id="agent_id">
                <must_prompt/>
                <mandatory/>
              </attribute>
              <attribute id="reason">
                <read_only/>
              </attribute>
              <attribute id="requestor_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <mandatory/>
              </attribute>
              <attribute id="supervisor_id">
                <must_prompt/>
                <mandatory/>
              </attribute>
              <attribute id="manager_group_id">
                <mandatory/>
              </attribute>
              <attribute id="manager_id">
                <must_prompt/>
                <mandatory/>
              </attribute>
            </flags>
            <transitions>
              <transition id="ev_plan">
                <target>plannedscheduled</target>
                <actions/>
              </transition>
            </transitions>
          </state>
          <state id="plannedscheduled">
            <inherit_flags_from>assigned</inherit_flags_from>
            <flags>
              <attribute id="org_id">
                <read_only/>
              </attribute>
              <attribute id="team_id">
                <mandatory/>
              </attribute>
              <attribute id="agent_id">
                <mandatory/>
              </attribute>
              <attribute id="start_date">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="end_date">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="impact">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="supervisor_id">
                <mandatory/>
              </attribute>
              <attribute id="manager_id">
                <mandatory/>
              </attribute>
              <attribute id="outage">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="fallback">
                <mandatory/>
                <must_prompt/>
              </attribute>
            </flags>
            <transitions>
              <transition id="ev_implement">
                <target>implemented</target>
                <actions/>
              </transition>
            </transitions>
          </state>
          <state id="approved">
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="org_id">
                <read_only/>
              </attribute>
              <attribute id="team_id">
                <mandatory/>
              </attribute>
              <attribute id="agent_id">
                <mandatory/>
              </attribute>
              <attribute id="title">
                <mandatory/>
              </attribute>
              <attribute id="description">
                <read_only/>
              </attribute>
              <attribute id="start_date">
                <mandatory/>
              </attribute>
              <attribute id="end_date">
                <mandatory/>
              </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">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_id">
                <read_only/>
              </attribute>
              <attribute id="manager_group_id">
                <read_only/>
              </attribute>
              <attribute id="manager_id">
                <read_only/>
              </attribute>
              <attribute id="outage">
                <read_only/>
              </attribute>
              <attribute id="fallback">
                <mandatory/>
              </attribute>
            </flags>
            <transitions/>
          </state>
          <state id="notapproved">
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="org_id">
                <read_only/>
              </attribute>
              <attribute id="team_id">
                <mandatory/>
              </attribute>
              <attribute id="agent_id">
                <mandatory/>
              </attribute>
              <attribute id="title">
                <mandatory/>
              </attribute>
              <attribute id="description">
                <read_only/>
              </attribute>
              <attribute id="start_date">
                <mandatory/>
              </attribute>
              <attribute id="end_date">
                <mandatory/>
              </attribute>
              <attribute id="last_update">
                <read_only/>
              </attribute>
              <attribute id="close_date">
                <hidden/>
              </attribute>
              <attribute id="reason">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="requestor_id">
                <read_only/>
              </attribute>
              <attribute id="creation_date">
                <read_only/>
              </attribute>
              <attribute id="impact">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_id">
                <read_only/>
              </attribute>
              <attribute id="manager_group_id">
                <read_only/>
              </attribute>
              <attribute id="manager_id">
                <read_only/>
              </attribute>
              <attribute id="outage">
                <mandatory/>
              </attribute>
              <attribute id="fallback">
                <mandatory/>
              </attribute>
            </flags>
            <transitions/>
          </state>
          <state id="implemented">
            <inherit_flags_from>plannedscheduled</inherit_flags_from>
            <flags>
              <attribute id="title">
                <read_only/>
              </attribute>
              <attribute id="start_date">
                <read_only/>
              </attribute>
              <attribute id="impact">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_id">
                <read_only/>
              </attribute>
              <attribute id="manager_group_id">
                <read_only/>
              </attribute>
              <attribute id="manager_id">
                <read_only/>
              </attribute>
              <attribute id="outage">
                <read_only/>
              </attribute>
            </flags>
            <transitions>
              <transition id="ev_monitor">
                <target>monitored</target>
                <actions/>
              </transition>
              <transition id="ev_finish">
                <target>closed</target>
                <actions>
                  <action>
                    <verb>SetCurrentDate</verb>
                    <params>
                      <param xsi:type="attcode">close_date</param>
                    </params>
                  </action>
                </actions>
              </transition>
            </transitions>
          </state>
          <state id="monitored">
            <inherit_flags_from>implemented</inherit_flags_from>
            <flags>
              <attribute id="caller_id">
                <read_only/>
              </attribute>
              <attribute id="parent_id">
                <read_only/>
              </attribute>
              <attribute id="team_id">
                <read_only/>
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <read_only/>
              </attribute>
              <attribute id="end_date">
                <read_only/>
              </attribute>
              <attribute id="fallback">
                <read_only/>
              </attribute>
            </flags>
            <transitions>
              <transition id="ev_finish">
                <target>closed</target>
                <actions>
                  <action>
                    <verb>SetCurrentDate</verb>
                    <params>
                      <param xsi:type="attcode">close_date</param>
                    </params>
                  </action>
                </actions>
              </transition>
            </transitions>
          </state>
          <state id="closed">
            <inherit_flags_from>implemented</inherit_flags_from>
            <flags>
              <attribute id="caller_id">
                <read_only/>
              </attribute>
              <attribute id="private_log">
                <read_only/>
              </attribute>
              <attribute id="parent_id">
                <read_only/>
              </attribute>
              <attribute id="team_id">
                <read_only/>
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <read_only/>
              </attribute>
              <attribute id="end_date">
                <read_only/>
              </attribute>
              <attribute id="close_date">
                <read_only/>
              </attribute>
              <attribute id="fallback">
                <read_only/>
              </attribute>
            </flags>
            <transitions/>
          </state>
        </states>
      </lifecycle>
      <methods/>
      <presentation>
        <details>
          <items>
            <item id="functionalcis_list">
              <rank>10</rank>
            </item>
            <item id="contacts_list">
              <rank>20</rank>
            </item>
            <item id="workorders_list">
              <rank>30</rank>
            </item>
            <item id="related_request_list">
              <rank>40</rank>
            </item>
            <item id="related_incident_list">
              <rank>50</rank>
            </item>
            <item id="related_problems_list">
              <rank>60</rank>
            </item>
            <item id="child_changes_list">
              <rank>70</rank>
            </item>
            <item id="col:col1">
              <rank>80</rank>
              <items>
                <item id="fieldset:Ticket:baseinfo">
                  <rank>10</rank>
                  <items>
                    <item id="ref">
                      <rank>10</rank>
                    </item>
                    <item id="org_id">
                      <rank>20</rank>
                    </item>
                    <item id="status">
                      <rank>30</rank>
                    </item>
                    <item id="title">
                      <rank>40</rank>
                    </item>
                    <item id="description">
                      <rank>50</rank>
                    </item>
                  </items>
                </item>
                <item id="fieldset:Ticket:contact">
                  <rank>20</rank>
                  <items>
                    <item id="caller_id">
                      <rank>10</rank>
                    </item>
                    <item id="team_id">
                      <rank>20</rank>
                    </item>
                    <item id="agent_id">
                      <rank>30</rank>
                    </item>
                    <item id="supervisor_group_id">
                      <rank>40</rank>
                    </item>
                    <item id="supervisor_id">
                      <rank>50</rank>
                    </item>
                    <item id="manager_group_id">
                      <rank>60</rank>
                    </item>
                    <item id="manager_id">
                      <rank>70</rank>
                    </item>
                  </items>
                </item>
              </items>
            </item>
            <item id="col:col2">
              <rank>90</rank>
              <items>
                <item id="fieldset:Ticket:resolution">
                  <rank>10</rank>
                  <items>
                    <item id="reason">
                      <rank>10</rank>
                    </item>
                    <item id="impact">
                      <rank>20</rank>
                    </item>
                    <item id="outage">
                      <rank>30</rank>
                    </item>
                    <item id="fallback">
                      <rank>40</rank>
                    </item>
                  </items>
                </item>
                <item id="fieldset:Ticket:relation">
                  <rank>20</rank>
                  <items>
                    <item id="parent_id">
                      <rank>10</rank>
                    </item>
                  </items>
                </item>
              </items>
            </item>
            <item id="col:col3">
              <rank>100</rank>
              <items>
                <item id="fieldset:Ticket:date">
                  <rank>10</rank>
                  <items>
                    <item id="creation_date">
                      <rank>10</rank>
                    </item>
                    <item id="start_date">
                      <rank>20</rank>
                    </item>
                    <item id="end_date">
                      <rank>30</rank>
                    </item>
                    <item id="last_update">
                      <rank>40</rank>
                    </item>
                    <item id="close_date">
                      <rank>50</rank>
                    </item>
                  </items>
                </item>
              </items>
            </item>
          </items>
        </details>
        <search>
          <items>
            <item id="ref">
              <rank>10</rank>
            </item>
            <item id="org_id">
              <rank>20</rank>
            </item>
            <item id="status">
              <rank>30</rank>
            </item>
            <item id="operational_status">
              <rank>35</rank>
            </item>
            <item id="title">
              <rank>40</rank>
            </item>
            <item id="description">
              <rank>50</rank>
            </item>
            <item id="caller_id">
              <rank>60</rank>
            </item>
            <item id="team_id">
              <rank>70</rank>
            </item>
            <item id="agent_id">
              <rank>80</rank>
            </item>
            <item id="supervisor_group_id">
              <rank>90</rank>
            </item>
            <item id="supervisor_id">
              <rank>100</rank>
            </item>
            <item id="manager_group_id">
              <rank>110</rank>
            </item>
            <item id="manager_id">
              <rank>120</rank>
            </item>
            <item id="reason">
              <rank>130</rank>
            </item>
            <item id="impact">
              <rank>140</rank>
            </item>
            <item id="outage">
              <rank>150</rank>
            </item>
            <item id="parent_id">
              <rank>160</rank>
            </item>
            <item id="creation_date">
              <rank>170</rank>
            </item>
            <item id="start_date">
              <rank>180</rank>
            </item>
            <item id="end_date">
              <rank>190</rank>
            </item>
            <item id="last_update">
              <rank>200</rank>
            </item>
            <item id="close_date">
              <rank>210</rank>
            </item>
          </items>
        </search>
        <list>
          <items>
            <item id="finalclass">
              <rank>10</rank>
            </item>
            <item id="title">
              <rank>20</rank>
            </item>
            <item id="org_id">
              <rank>30</rank>
            </item>
            <item id="start_date">
              <rank>40</rank>
            </item>
            <item id="end_date">
              <rank>50</rank>
            </item>
            <item id="status">
              <rank>60</rank>
            </item>
            <item id="agent_id">
              <rank>70</rank>
            </item>
          </items>
        </list>
      </presentation>
    </class>
    <class id="ApprovedChange" _delta="define">
      <parent>Change</parent>
      <properties>
        <category>bizmodel,searchable,changemgmt</category>
        <abstract>true</abstract>
        <key_type>autoincrement</key_type>
        <db_table>change_approved</db_table>
        <db_key_field>id</db_key_field>
        <db_final_class_field/>
        <naming>
          <attributes>
            <attribute id="ref"/>
          </attributes>
        </naming>
        <display_template/>
        <icon>images/change.png</icon>
        <reconciliation>
          <attributes>
            <attribute id="ref"/>
            <attribute id="finalclass"/>
          </attributes>
        </reconciliation>
        <order>
          <columns>
            <column id="ref" ascending="false"/>
          </columns>
        </order>
      </properties>
      <fields>
        <field id="approval_date" xsi:type="AttributeDateTime">
          <sql>approval_date</sql>
          <default_value/>
          <is_null_allowed>true</is_null_allowed>
        </field>
        <field id="approval_comment" xsi:type="AttributeString">
          <sql>approval_comment</sql>
          <default_value/>
          <is_null_allowed>true</is_null_allowed>
        </field>
      </fields>
      <lifecycle>
        <attribute>status</attribute>
        <stimuli>
          <stimulus id="ev_validate" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_reject" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_assign" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_reopen" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_plan" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_approve" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_replan" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_notapprove" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_implement" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_monitor" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_finish" xsi:type="StimulusUserAction"/>
        </stimuli>
        <states>
          <state id="new">
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <hidden/>
              </attribute>
              <attribute id="team_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">
                <hidden/>
              </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="validated">
            <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/>
                <must_prompt/>
              </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">
                <must_prompt/>
                <mandatory/>
              </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="supervisor_group_id">
                <mandatory/>
              </attribute>
              <attribute id="supervisor_id">
                <must_prompt/>
                <mandatory/>
              </attribute>
              <attribute id="manager_group_id">
                <mandatory/>
              </attribute>
              <attribute id="manager_id">
                <must_prompt/>
                <mandatory/>
              </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="plannedscheduled">
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="org_id">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <mandatory/>
              </attribute>
              <attribute id="title">
                <mandatory/>
              </attribute>
              <attribute id="description">
                <read_only/>
              </attribute>
              <attribute id="start_date">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="end_date">
                <mandatory/>
                <must_prompt/>
              </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">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="supervisor_group_id">
                <mandatory/>
              </attribute>
              <attribute id="supervisor_id">
                <mandatory/>
              </attribute>
              <attribute id="manager_group_id">
                <mandatory/>
              </attribute>
              <attribute id="manager_id">
                <mandatory/>
              </attribute>
              <attribute id="outage">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="fallback">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="approval_date">
                <hidden/>
              </attribute>
              <attribute id="approval_comment">
                <hidden/>
              </attribute>
            </flags>
            <transitions/>
          </state>
          <state id="approved">
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="org_id">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <mandatory/>
              </attribute>
              <attribute id="title">
                <mandatory/>
              </attribute>
              <attribute id="description">
                <read_only/>
              </attribute>
              <attribute id="start_date">
                <mandatory/>
              </attribute>
              <attribute id="end_date">
                <mandatory/>
              </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">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_id">
                <read_only/>
              </attribute>
              <attribute id="manager_group_id">
                <read_only/>
              </attribute>
              <attribute id="manager_id">
                <read_only/>
              </attribute>
              <attribute id="outage">
                <read_only/>
              </attribute>
              <attribute id="fallback">
                <mandatory/>
              </attribute>
              <attribute id="approval_date">
                <mandatory/>
              </attribute>
              <attribute id="approval_comment">
                <mandatory/>
              </attribute>
            </flags>
            <transitions/>
          </state>
          <state id="notapproved">
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="org_id">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <mandatory/>
              </attribute>
              <attribute id="title">
                <mandatory/>
              </attribute>
              <attribute id="description">
                <read_only/>
              </attribute>
              <attribute id="start_date">
                <mandatory/>
              </attribute>
              <attribute id="end_date">
                <mandatory/>
              </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">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_id">
                <read_only/>
              </attribute>
              <attribute id="manager_group_id">
                <read_only/>
              </attribute>
              <attribute id="manager_id">
                <read_only/>
              </attribute>
              <attribute id="outage">
                <mandatory/>
              </attribute>
              <attribute id="fallback">
                <mandatory/>
              </attribute>
              <attribute id="approval_date">
                <hidden/>
              </attribute>
              <attribute id="approval_comment">
                <hidden/>
              </attribute>
            </flags>
            <transitions/>
          </state>
          <state id="implemented">
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="org_id">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <mandatory/>
              </attribute>
              <attribute id="title">
                <read_only/>
              </attribute>
              <attribute id="description">
                <read_only/>
              </attribute>
              <attribute id="start_date">
                <read_only/>
              </attribute>
              <attribute id="end_date">
                <mandatory/>
              </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">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_id">
                <read_only/>
              </attribute>
              <attribute id="manager_group_id">
                <read_only/>
              </attribute>
              <attribute id="manager_id">
                <read_only/>
              </attribute>
              <attribute id="outage">
                <read_only/>
              </attribute>
              <attribute id="fallback">
                <mandatory/>
              </attribute>
              <attribute id="approval_date">
                <read_only/>
              </attribute>
              <attribute id="approval_comment">
                <read_only/>
              </attribute>
            </flags>
            <transitions/>
          </state>
          <state id="monitored">
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="org_id">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <read_only/>
              </attribute>
              <attribute id="title">
                <read_only/>
              </attribute>
              <attribute id="caller_id">
                <read_only/>
              </attribute>
              <attribute id="team_id">
                <read_only/>
              </attribute>
              <attribute id="parent_id">
                <read_only/>
              </attribute>
              <attribute id="description">
                <read_only/>
              </attribute>
              <attribute id="start_date">
                <read_only/>
              </attribute>
              <attribute id="end_date">
                <read_only/>
              </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">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_id">
                <read_only/>
              </attribute>
              <attribute id="manager_group_id">
                <read_only/>
              </attribute>
              <attribute id="manager_id">
                <read_only/>
              </attribute>
              <attribute id="outage">
                <read_only/>
              </attribute>
              <attribute id="fallback">
                <read_only/>
              </attribute>
              <attribute id="approval_date">
                <read_only/>
              </attribute>
              <attribute id="approval_comment">
                <read_only/>
              </attribute>
            </flags>
            <transitions/>
          </state>
          <state id="closed">
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="org_id">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <read_only/>
              </attribute>
              <attribute id="caller_id">
                <read_only/>
              </attribute>
              <attribute id="title">
                <read_only/>
              </attribute>
              <attribute id="description">
                <read_only/>
              </attribute>
              <attribute id="start_date">
                <read_only/>
              </attribute>
              <attribute id="end_date">
                <read_only/>
              </attribute>
              <attribute id="last_update">
                <read_only/>
              </attribute>
              <attribute id="close_date">
                <read_only/>
              </attribute>
              <attribute id="reason">
                <read_only/>
              </attribute>
              <attribute id="requestor_id">
                <read_only/>
              </attribute>
              <attribute id="creation_date">
                <read_only/>
              </attribute>
              <attribute id="impact">
                <read_only/>
              </attribute>
              <attribute id="team_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_id">
                <read_only/>
              </attribute>
              <attribute id="manager_group_id">
                <read_only/>
              </attribute>
              <attribute id="manager_id">
                <read_only/>
              </attribute>
              <attribute id="outage">
                <read_only/>
              </attribute>
              <attribute id="fallback">
                <read_only/>
              </attribute>
              <attribute id="private_log">
                <read_only/>
              </attribute>
              <attribute id="approval_date">
                <read_only/>
              </attribute>
              <attribute id="approval_comment">
                <read_only/>
              </attribute>
              <attribute id="parent_id">
                <read_only/>
              </attribute>
            </flags>
            <transitions/>
          </state>
        </states>
      </lifecycle>
      <methods/>
      <presentation>
        <details>
          <items>
            <item id="functionalcis_list">
              <rank>10</rank>
            </item>
            <item id="contacts_list">
              <rank>20</rank>
            </item>
            <item id="workorders_list">
              <rank>30</rank>
            </item>
            <item id="related_request_list">
              <rank>40</rank>
            </item>
            <item id="related_incident_list">
              <rank>50</rank>
            </item>
            <item id="related_problems_list">
              <rank>60</rank>
            </item>
            <item id="child_changes_list">
              <rank>70</rank>
            </item>
            <item id="col:col1">
              <rank>80</rank>
              <items>
                <item id="fieldset:Ticket:baseinfo">
                  <rank>10</rank>
                  <items>
                    <item id="ref">
                      <rank>10</rank>
                    </item>
                    <item id="org_id">
                      <rank>20</rank>
                    </item>
                    <item id="status">
                      <rank>30</rank>
                    </item>
                    <item id="title">
                      <rank>40</rank>
                    </item>
                    <item id="description">
                      <rank>50</rank>
                    </item>
                    <item id="approval_comment">
                      <rank>60</rank>
                    </item>
                  </items>
                </item>
                <item id="fieldset:Ticket:contact">
                  <rank>20</rank>
                  <items>
                    <item id="caller_id">
                      <rank>10</rank>
                    </item>
                    <item id="team_id">
                      <rank>20</rank>
                    </item>
                    <item id="agent_id">
                      <rank>30</rank>
                    </item>
                    <item id="supervisor_group_id">
                      <rank>40</rank>
                    </item>
                    <item id="supervisor_id">
                      <rank>50</rank>
                    </item>
                    <item id="manager_group_id">
                      <rank>60</rank>
                    </item>
                    <item id="manager_id">
                      <rank>70</rank>
                    </item>
                  </items>
                </item>
              </items>
            </item>
            <item id="col:col2">
              <rank>90</rank>
              <items>
                <item id="fieldset:Ticket:resolution">
                  <rank>10</rank>
                  <items>
                    <item id="reason">
                      <rank>10</rank>
                    </item>
                    <item id="impact">
                      <rank>20</rank>
                    </item>
                    <item id="outage">
                      <rank>30</rank>
                    </item>
                    <item id="fallback">
                      <rank>40</rank>
                    </item>
                  </items>
                </item>
                <item id="fieldset:Ticket:relation">
                  <rank>20</rank>
                  <items>
                    <item id="parent_id">
                      <rank>10</rank>
                    </item>
                  </items>
                </item>
              </items>
            </item>
            <item id="col:col3">
              <rank>100</rank>
              <items>
                <item id="fieldset:Ticket:date">
                  <rank>10</rank>
                  <items>
                    <item id="creation_date">
                      <rank>10</rank>
                    </item>
                    <item id="start_date">
                      <rank>20</rank>
                    </item>
                    <item id="end_date">
                      <rank>30</rank>
                    </item>
                    <item id="last_update">
                      <rank>40</rank>
                    </item>
                    <item id="approval_date">
                      <rank>50</rank>
                    </item>
                    <item id="close_date">
                      <rank>60</rank>
                    </item>
                  </items>
                </item>
              </items>
            </item>
          </items>
        </details>
        <search>
          <items>
            <item id="ref">
              <rank>10</rank>
            </item>
            <item id="org_id">
              <rank>20</rank>
            </item>
            <item id="status">
              <rank>30</rank>
            </item>
            <item id="operational_status">
              <rank>35</rank>
            </item>
            <item id="title">
              <rank>40</rank>
            </item>
            <item id="description">
              <rank>50</rank>
            </item>
            <item id="caller_id">
              <rank>60</rank>
            </item>
            <item id="team_id">
              <rank>70</rank>
            </item>
            <item id="agent_id">
              <rank>80</rank>
            </item>
            <item id="supervisor_group_id">
              <rank>90</rank>
            </item>
            <item id="supervisor_id">
              <rank>100</rank>
            </item>
            <item id="manager_group_id">
              <rank>110</rank>
            </item>
            <item id="manager_id">
              <rank>120</rank>
            </item>
            <item id="reason">
              <rank>130</rank>
            </item>
            <item id="impact">
              <rank>140</rank>
            </item>
            <item id="outage">
              <rank>150</rank>
            </item>
            <item id="parent_id">
              <rank>160</rank>
            </item>
            <item id="creation_date">
              <rank>170</rank>
            </item>
            <item id="start_date">
              <rank>180</rank>
            </item>
            <item id="end_date">
              <rank>190</rank>
            </item>
            <item id="last_update">
              <rank>200</rank>
            </item>
            <item id="approval_date">
              <rank>210</rank>
            </item>
            <item id="close_date">
              <rank>220</rank>
            </item>
          </items>
        </search>
        <list>
          <items>
            <item id="finalclass">
              <rank>10</rank>
            </item>
            <item id="title">
              <rank>20</rank>
            </item>
            <item id="org_id">
              <rank>30</rank>
            </item>
            <item id="start_date">
              <rank>40</rank>
            </item>
            <item id="end_date">
              <rank>50</rank>
            </item>
            <item id="status">
              <rank>60</rank>
            </item>
            <item id="agent_id">
              <rank>70</rank>
            </item>
          </items>
        </list>
      </presentation>
    </class>
    <class id="NormalChange" _delta="define">
      <parent>ApprovedChange</parent>
      <properties>
        <category>bizmodel,searchable,changemgmt</category>
        <abstract>false</abstract>
        <key_type>autoincrement</key_type>
        <db_table>change_normal</db_table>
        <db_key_field>id</db_key_field>
        <db_final_class_field/>
        <naming>
          <attributes>
            <attribute id="ref"/>
          </attributes>
        </naming>
        <display_template/>
        <icon>images/change.png</icon>
        <reconciliation>
          <attributes>
            <attribute id="ref"/>
          </attributes>
        </reconciliation>
      </properties>
      <fields>
        <field id="acceptance_date" xsi:type="AttributeDateTime">
          <sql>acceptance_date</sql>
          <default_value/>
          <is_null_allowed>true</is_null_allowed>
        </field>
        <field id="acceptance_comment" xsi:type="AttributeText">
          <sql>acceptance_comment</sql>
          <default_value/>
          <is_null_allowed>true</is_null_allowed>
        </field>
      </fields>
      <lifecycle>
        <attribute>status</attribute>
        <stimuli>
          <stimulus id="ev_validate" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_reject" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_assign" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_reopen" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_plan" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_approve" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_replan" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_notapprove" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_implement" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_monitor" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_finish" xsi:type="StimulusUserAction"/>
        </stimuli>
        <states>
          <state id="new">
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <hidden/>
              </attribute>
              <attribute id="team_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">
                <hidden/>
              </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>
              <attribute id="acceptance_date">
                <hidden/>
              </attribute>
              <attribute id="acceptance_comment">
                <hidden/>
              </attribute>
            </flags>
            <transitions>
              <transition id="ev_validate">
                <target>validated</target>
                <actions>
                  <action>
                    <verb>Reset</verb>
                    <params>
                      <param xsi:type="attcode">reason</param>
                    </params>
                  </action>
                </actions>
              </transition>
              <transition id="ev_reject">
                <target>rejected</target>
                <actions/>
              </transition>
            </transitions>
          </state>
          <state id="validated">
            <inherit_flags_from>new</inherit_flags_from>
            <flags>
              <attribute id="description">
                <read_only/>
              </attribute>
              <attribute id="reason">
                <read_only/>
              </attribute>
              <attribute id="requestor_id">
                <read_only/>
              </attribute>
              <attribute id="team_id">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="supervisor_group_id">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="manager_group_id">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="acceptance_date">
                <mandatory/>
              </attribute>
              <attribute id="acceptance_comment">
                <mandatory/>
              </attribute>
            </flags>
            <transitions>
              <transition id="ev_assign">
                <target>assigned</target>
                <actions/>
              </transition>
            </transitions>
          </state>
          <state id="rejected">
            <inherit_flags_from>new</inherit_flags_from>
            <flags>
              <attribute id="reason">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="team_id"/>
            </flags>
            <transitions>
              <transition id="ev_reopen">
                <target>new</target>
                <actions/>
              </transition>
            </transitions>
          </state>
          <state id="assigned">
            <inherit_flags_from>validated</inherit_flags_from>
            <flags>
              <attribute id="agent_id">
                <must_prompt/>
                <mandatory/>
              </attribute>
              <attribute id="supervisor_id">
                <must_prompt/>
                <mandatory/>
              </attribute>
              <attribute id="manager_id">
                <must_prompt/>
                <mandatory/>
              </attribute>
              <attribute id="team_id"/>
              <attribute id="acceptance_date"/>
              <attribute id="acceptance_comment"/>
            </flags>
            <transitions>
              <transition id="ev_plan">
                <target>plannedscheduled</target>
                <actions/>
              </transition>
            </transitions>
          </state>
          <state id="plannedscheduled">
            <inherit_flags_from>assigned</inherit_flags_from>
            <flags>
              <attribute id="org_id">
                <read_only/>
              </attribute>
              <attribute id="acceptance_date">
                <read_only/>
              </attribute>
              <attribute id="acceptance_comment">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <mandatory/>
              </attribute>
              <attribute id="start_date">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="end_date">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="impact">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="supervisor_id">
                <mandatory/>
              </attribute>
              <attribute id="manager_id">
                <mandatory/>
              </attribute>
              <attribute id="outage">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="fallback">
                <mandatory/>
                <must_prompt/>
              </attribute>
            </flags>
            <transitions>
              <transition id="ev_approve">
                <target>approved</target>
                <actions>
                  <action>
                    <verb>Reset</verb>
                    <params>
                      <param xsi:type="attcode">reason</param>
                    </params>
                  </action>
                </actions>
              </transition>
              <transition id="ev_notapprove">
                <target>notapproved</target>
                <actions/>
              </transition>
            </transitions>
          </state>
          <state id="approved">
            <inherit_flags_from>plannedscheduled</inherit_flags_from>
            <flags>
              <attribute id="impact">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_id">
                <read_only/>
              </attribute>
              <attribute id="manager_group_id">
                <read_only/>
              </attribute>
              <attribute id="manager_id">
                <read_only/>
              </attribute>
              <attribute id="outage">
                <read_only/>
              </attribute>
              <attribute id="approval_date">
                <mandatory/>
              </attribute>
              <attribute id="approval_comment">
                <mandatory/>
              </attribute>
            </flags>
            <transitions>
              <transition id="ev_implement">
                <target>implemented</target>
                <actions/>
              </transition>
            </transitions>
          </state>
          <state id="notapproved">
            <inherit_flags_from>plannedscheduled</inherit_flags_from>
            <flags>
              <attribute id="reason">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="impact">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_id">
                <read_only/>
              </attribute>
              <attribute id="manager_group_id">
                <read_only/>
              </attribute>
              <attribute id="manager_id">
                <read_only/>
              </attribute>
            </flags>
            <transitions>
              <transition id="ev_replan">
                <target>plannedscheduled</target>
                <actions/>
              </transition>
            </transitions>
          </state>
          <state id="implemented">
            <inherit_flags_from>approved</inherit_flags_from>
            <flags>
              <attribute id="title">
                <read_only/>
              </attribute>
              <attribute id="start_date">
                <read_only/>
              </attribute>
              <attribute id="approval_date">
                <read_only/>
              </attribute>
              <attribute id="approval_comment">
                <read_only/>
              </attribute>
            </flags>
            <transitions>
              <transition id="ev_monitor">
                <target>monitored</target>
                <actions/>
              </transition>
              <transition id="ev_finish">
                <target>closed</target>
                <actions>
                  <action>
                    <verb>SetCurrentDate</verb>
                    <params>
                      <param xsi:type="attcode">close_date</param>
                    </params>
                  </action>
                </actions>
              </transition>
            </transitions>
          </state>
          <state id="monitored">
            <inherit_flags_from>implemented</inherit_flags_from>
            <flags>
              <attribute id="caller_id">
                <read_only/>
              </attribute>
              <attribute id="team_id">
                <read_only/>
              </attribute>
              <attribute id="parent_id">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <read_only/>
              </attribute>
              <attribute id="end_date">
                <read_only/>
              </attribute>
              <attribute id="fallback">
                <read_only/>
              </attribute>
            </flags>
            <transitions>
              <transition id="ev_finish">
                <target>closed</target>
                <actions>
                  <action>
                    <verb>SetCurrentDate</verb>
                    <params>
                      <param xsi:type="attcode">close_date</param>
                    </params>
                  </action>
                </actions>
              </transition>
            </transitions>
          </state>
          <state id="closed">
            <inherit_flags_from>implemented</inherit_flags_from>
            <flags>
              <attribute id="caller_id">
                <read_only/>
              </attribute>
              <attribute id="team_id">
                <read_only/>
              </attribute>
              <attribute id="private_log">
                <read_only/>
              </attribute>
              <attribute id="parent_id">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <read_only/>
              </attribute>
              <attribute id="end_date">
                <read_only/>
              </attribute>
              <attribute id="close_date">
                <read_only/>
              </attribute>
              <attribute id="fallback">
                <read_only/>
              </attribute>
            </flags>
            <transitions/>
          </state>
        </states>
      </lifecycle>
      <methods/>
      <presentation>
        <details>
          <items>
            <item id="functionalcis_list">
              <rank>10</rank>
            </item>
            <item id="contacts_list">
              <rank>20</rank>
            </item>
            <item id="workorders_list">
              <rank>30</rank>
            </item>
            <item id="related_request_list">
              <rank>40</rank>
            </item>
            <item id="related_incident_list">
              <rank>50</rank>
            </item>
            <item id="related_problems_list">
              <rank>60</rank>
            </item>
            <item id="child_changes_list">
              <rank>70</rank>
            </item>
            <item id="col:col1">
              <rank>80</rank>
              <items>
                <item id="fieldset:Ticket:baseinfo">
                  <rank>10</rank>
                  <items>
                    <item id="ref">
                      <rank>10</rank>
                    </item>
                    <item id="org_id">
                      <rank>20</rank>
                    </item>
                    <item id="status">
                      <rank>30</rank>
                    </item>
                    <item id="title">
                      <rank>40</rank>
                    </item>
                    <item id="description">
                      <rank>50</rank>
                    </item>
                    <item id="approval_comment">
                      <rank>60</rank>
                    </item>
                    <item id="acceptance_comment">
                      <rank>70</rank>
                    </item>
                  </items>
                </item>
                <item id="fieldset:Ticket:contact">
                  <rank>20</rank>
                  <items>
                    <item id="caller_id">
                      <rank>10</rank>
                    </item>
                    <item id="team_id">
                      <rank>20</rank>
                    </item>
                    <item id="agent_id">
                      <rank>30</rank>
                    </item>
                    <item id="supervisor_group_id">
                      <rank>40</rank>
                    </item>
                    <item id="supervisor_id">
                      <rank>50</rank>
                    </item>
                    <item id="manager_group_id">
                      <rank>60</rank>
                    </item>
                    <item id="manager_id">
                      <rank>70</rank>
                    </item>
                  </items>
                </item>
              </items>
            </item>
            <item id="col:col2">
              <rank>90</rank>
              <items>
                <item id="fieldset:Ticket:resolution">
                  <rank>10</rank>
                  <items>
                    <item id="reason">
                      <rank>10</rank>
                    </item>
                    <item id="impact">
                      <rank>20</rank>
                    </item>
                    <item id="outage">
                      <rank>30</rank>
                    </item>
                    <item id="fallback">
                      <rank>40</rank>
                    </item>
                  </items>
                </item>
                <item id="fieldset:Ticket:relation">
                  <rank>20</rank>
                  <items>
                    <item id="parent_id">
                      <rank>10</rank>
                    </item>
                  </items>
                </item>
              </items>
            </item>
            <item id="col:col3">
              <rank>100</rank>
              <items>
                <item id="fieldset:Ticket:date">
                  <rank>10</rank>
                  <items>
                    <item id="creation_date">
                      <rank>10</rank>
                    </item>
                    <item id="start_date">
                      <rank>20</rank>
                    </item>
                    <item id="end_date">
                      <rank>30</rank>
                    </item>
                    <item id="last_update">
                      <rank>40</rank>
                    </item>
                    <item id="approval_date">
                      <rank>50</rank>
                    </item>
                    <item id="acceptance_date">
                      <rank>60</rank>
                    </item>
                    <item id="close_date">
                      <rank>70</rank>
                    </item>
                  </items>
                </item>
              </items>
            </item>
          </items>
        </details>
        <search>
          <items>
            <item id="ref">
              <rank>10</rank>
            </item>
            <item id="org_id">
              <rank>20</rank>
            </item>
            <item id="status">
              <rank>30</rank>
            </item>
            <item id="operational_status">
              <rank>35</rank>
            </item>
            <item id="title">
              <rank>40</rank>
            </item>
            <item id="description">
              <rank>50</rank>
            </item>
            <item id="caller_id">
              <rank>60</rank>
            </item>
            <item id="team_id">
              <rank>70</rank>
            </item>
            <item id="agent_id">
              <rank>80</rank>
            </item>
            <item id="supervisor_group_id">
              <rank>90</rank>
            </item>
            <item id="supervisor_id">
              <rank>100</rank>
            </item>
            <item id="manager_group_id">
              <rank>110</rank>
            </item>
            <item id="manager_id">
              <rank>120</rank>
            </item>
            <item id="reason">
              <rank>130</rank>
            </item>
            <item id="impact">
              <rank>140</rank>
            </item>
            <item id="outage">
              <rank>150</rank>
            </item>
            <item id="parent_id">
              <rank>160</rank>
            </item>
            <item id="creation_date">
              <rank>170</rank>
            </item>
            <item id="start_date">
              <rank>180</rank>
            </item>
            <item id="end_date">
              <rank>190</rank>
            </item>
            <item id="last_update">
              <rank>200</rank>
            </item>
            <item id="approval_date">
              <rank>210</rank>
            </item>
            <item id="acceptance_date">
              <rank>220</rank>
            </item>
            <item id="close_date">
              <rank>230</rank>
            </item>
          </items>
        </search>
        <list>
          <items>
            <item id="finalclass">
              <rank>10</rank>
            </item>
            <item id="title">
              <rank>20</rank>
            </item>
            <item id="org_id">
              <rank>30</rank>
            </item>
            <item id="start_date">
              <rank>40</rank>
            </item>
            <item id="end_date">
              <rank>50</rank>
            </item>
            <item id="status">
              <rank>60</rank>
            </item>
            <item id="agent_id">
              <rank>70</rank>
            </item>
          </items>
        </list>
      </presentation>
    </class>
    <class id="EmergencyChange" _delta="define">
      <parent>ApprovedChange</parent>
      <properties>
        <category>bizmodel,searchable,changemgmt</category>
        <abstract>false</abstract>
        <key_type>autoincrement</key_type>
        <db_table>change_emergency</db_table>
        <db_key_field>id</db_key_field>
        <db_final_class_field/>
        <naming>
          <attributes>
            <attribute id="ref"/>
          </attributes>
        </naming>
        <display_template/>
        <icon>images/change.png</icon>
        <reconciliation>
          <attributes>
            <attribute id="ref"/>
          </attributes>
        </reconciliation>
        <order>
          <columns>
            <column id="ref" ascending="false"/>
          </columns>
        </order>
      </properties>
      <fields/>
      <lifecycle>
        <attribute>status</attribute>
        <stimuli>
          <stimulus id="ev_assign" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_reopen" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_plan" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_approve" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_replan" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_notapprove" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_implement" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_monitor" xsi:type="StimulusUserAction"/>
          <stimulus id="ev_finish" xsi:type="StimulusUserAction"/>
        </stimuli>
        <states>
          <state id="new">
            <flags>
              <attribute id="ref">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <hidden/>
              </attribute>
              <attribute id="team_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">
                <hidden/>
              </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>
              <transition id="ev_assign">
                <target>assigned</target>
                <actions/>
              </transition>
            </transitions>
          </state>
          <state id="validated">
            <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/>
                <must_prompt/>
              </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">
            <inherit_flags_from>new</inherit_flags_from>
            <flags>
              <attribute id="description">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <must_prompt/>
                <mandatory/>
              </attribute>
              <attribute id="team_id">
                <must_prompt/>
                <mandatory/>
              </attribute>
              <attribute id="reason">
                <read_only/>
              </attribute>
              <attribute id="requestor_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <mandatory/>
              </attribute>
              <attribute id="supervisor_id">
                <must_prompt/>
                <mandatory/>
              </attribute>
              <attribute id="manager_group_id">
                <mandatory/>
              </attribute>
              <attribute id="manager_id">
                <must_prompt/>
                <mandatory/>
              </attribute>
            </flags>
            <transitions>
              <transition id="ev_plan">
                <target>plannedscheduled</target>
                <actions/>
              </transition>
            </transitions>
          </state>
          <state id="plannedscheduled">
            <inherit_flags_from>assigned</inherit_flags_from>
            <flags>
              <attribute id="org_id">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <mandatory/>
              </attribute>
              <attribute id="team_id">
                <mandatory/>
              </attribute>
              <attribute id="start_date">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="end_date">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="impact">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="supervisor_id">
                <mandatory/>
              </attribute>
              <attribute id="manager_id">
                <mandatory/>
              </attribute>
              <attribute id="outage">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="fallback">
                <mandatory/>
                <must_prompt/>
              </attribute>
            </flags>
            <transitions>
              <transition id="ev_approve">
                <target>approved</target>
                <actions>
                  <action>
                    <verb>Reset</verb>
                    <params>
                      <param xsi:type="attcode">reason</param>
                    </params>
                  </action>
                </actions>
              </transition>
              <transition id="ev_notapprove">
                <target>notapproved</target>
                <actions/>
              </transition>
            </transitions>
          </state>
          <state id="approved">
            <inherit_flags_from>plannedscheduled</inherit_flags_from>
            <flags>
              <attribute id="impact">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_id">
                <read_only/>
              </attribute>
              <attribute id="manager_group_id">
                <read_only/>
              </attribute>
              <attribute id="manager_id">
                <read_only/>
              </attribute>
              <attribute id="outage">
                <read_only/>
              </attribute>
              <attribute id="approval_date">
                <mandatory/>
              </attribute>
              <attribute id="approval_comment">
                <mandatory/>
              </attribute>
            </flags>
            <transitions>
              <transition id="ev_implement">
                <target>implemented</target>
                <actions/>
              </transition>
            </transitions>
          </state>
          <state id="notapproved">
            <inherit_flags_from>plannedscheduled</inherit_flags_from>
            <flags>
              <attribute id="reason">
                <mandatory/>
                <must_prompt/>
              </attribute>
              <attribute id="impact">
                <read_only/>
              </attribute>
              <attribute id="supervisor_group_id">
                <read_only/>
              </attribute>
              <attribute id="supervisor_id">
                <read_only/>
              </attribute>
              <attribute id="manager_group_id">
                <read_only/>
              </attribute>
              <attribute id="manager_id">
                <read_only/>
              </attribute>
            </flags>
            <transitions>
              <transition id="ev_replan">
                <target>plannedscheduled</target>
                <actions/>
              </transition>
            </transitions>
          </state>
          <state id="implemented">
            <inherit_flags_from>approved</inherit_flags_from>
            <flags>
              <attribute id="title">
                <read_only/>
              </attribute>
              <attribute id="start_date">
                <read_only/>
              </attribute>
              <attribute id="approval_date">
                <read_only/>
              </attribute>
              <attribute id="approval_comment">
                <read_only/>
              </attribute>
            </flags>
            <transitions>
              <transition id="ev_monitor">
                <target>monitored</target>
                <actions/>
              </transition>
              <transition id="ev_finish">
                <target>closed</target>
                <actions>
                  <action>
                    <verb>SetCurrentDate</verb>
                    <params>
                      <param xsi:type="attcode">close_date</param>
                    </params>
                  </action>
                </actions>
              </transition>
            </transitions>
          </state>
          <state id="monitored">
            <inherit_flags_from>implemented</inherit_flags_from>
            <flags>
              <attribute id="caller_id">
                <read_only/>
              </attribute>
              <attribute id="parent_id">
                <read_only/>
              </attribute>
              <attribute id="team_id">
                <read_only/>
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <read_only/>
              </attribute>
              <attribute id="end_date">
                <read_only/>
              </attribute>
              <attribute id="fallback">
                <read_only/>
              </attribute>
            </flags>
            <transitions>
              <transition id="ev_finish">
                <target>closed</target>
                <actions>
                  <action>
                    <verb>SetCurrentDate</verb>
                    <params>
                      <param xsi:type="attcode">close_date</param>
                    </params>
                  </action>
                </actions>
              </transition>
            </transitions>
          </state>
          <state id="closed">
            <inherit_flags_from>implemented</inherit_flags_from>
            <flags>
              <attribute id="caller_id">
                <read_only/>
              </attribute>
              <attribute id="private_log">
                <read_only/>
              </attribute>
              <attribute id="parent_id">
                <read_only/>
              </attribute>
              <attribute id="agent_id">
                <read_only/>
              </attribute>
              <attribute id="team_id">
                <read_only/>
                <read_only/>
              </attribute>
              <attribute id="end_date">
                <read_only/>
              </attribute>
              <attribute id="close_date">
                <read_only/>
              </attribute>
              <attribute id="fallback">
                <read_only/>
              </attribute>
            </flags>
            <transitions/>
          </state>
        </states>
      </lifecycle>
      <methods/>
      <presentation>
        <details>
          <items>
            <item id="functionalcis_list">
              <rank>10</rank>
            </item>
            <item id="contacts_list">
              <rank>20</rank>
            </item>
            <item id="workorders_list">
              <rank>30</rank>
            </item>
            <item id="related_request_list">
              <rank>40</rank>
            </item>
            <item id="related_incident_list">
              <rank>50</rank>
            </item>
            <item id="related_problems_list">
              <rank>60</rank>
            </item>
            <item id="child_changes_list">
              <rank>70</rank>
            </item>
            <item id="col:col1">
              <rank>80</rank>
              <items>
                <item id="fieldset:Ticket:baseinfo">
                  <rank>10</rank>
                  <items>
                    <item id="ref">
                      <rank>10</rank>
                    </item>
                    <item id="org_id">
                      <rank>20</rank>
                    </item>
                    <item id="status">
                      <rank>30</rank>
                    </item>
                    <item id="title">
                      <rank>40</rank>
                    </item>
                    <item id="description">
                      <rank>50</rank>
                    </item>
                    <item id="approval_comment">
                      <rank>60</rank>
                    </item>
                  </items>
                </item>
                <item id="fieldset:Ticket:contact">
                  <rank>20</rank>
                  <items>
                    <item id="caller_id">
                      <rank>10</rank>
                    </item>
                    <item id="team_id">
                      <rank>20</rank>
                    </item>
                    <item id="agent_id">
                      <rank>30</rank>
                    </item>
                    <item id="supervisor_group_id">
                      <rank>40</rank>
                    </item>
                    <item id="supervisor_id">
                      <rank>50</rank>
                    </item>
                    <item id="manager_group_id">
                      <rank>60</rank>
                    </item>
                    <item id="manager_id">
                      <rank>70</rank>
                    </item>
                  </items>
                </item>
              </items>
            </item>
            <item id="col:col2">
              <rank>90</rank>
              <items>
                <item id="fieldset:Ticket:resolution">
                  <rank>10</rank>
                  <items>
                    <item id="reason">
                      <rank>10</rank>
                    </item>
                    <item id="impact">
                      <rank>20</rank>
                    </item>
                    <item id="outage">
                      <rank>30</rank>
                    </item>
                    <item id="fallback">
                      <rank>40</rank>
                    </item>
                  </items>
                </item>
                <item id="fieldset:Ticket:relation">
                  <rank>20</rank>
                  <items>
                    <item id="parent_id">
                      <rank>10</rank>
                    </item>
                  </items>
                </item>
              </items>
            </item>
            <item id="col:col3">
              <rank>100</rank>
              <items>
                <item id="fieldset:Ticket:date">
                  <rank>10</rank>
                  <items>
                    <item id="creation_date">
                      <rank>10</rank>
                    </item>
                    <item id="start_date">
                      <rank>20</rank>
                    </item>
                    <item id="end_date">
                      <rank>30</rank>
                    </item>
                    <item id="last_update">
                      <rank>40</rank>
                    </item>
                    <item id="approval_date">
                      <rank>50</rank>
                    </item>
                    <item id="close_date">
                      <rank>60</rank>
                    </item>
                  </items>
                </item>
              </items>
            </item>
          </items>
        </details>
        <search>
          <items>
            <item id="ref">
              <rank>10</rank>
            </item>
            <item id="org_id">
              <rank>20</rank>
            </item>
            <item id="status">
              <rank>30</rank>
            </item>
            <item id="operational_status">
              <rank>35</rank>
            </item>
            <item id="title">
              <rank>40</rank>
            </item>
            <item id="description">
              <rank>50</rank>
            </item>
            <item id="caller_id">
              <rank>60</rank>
            </item>
            <item id="team_id">
              <rank>70</rank>
            </item>
            <item id="agent_id">
              <rank>80</rank>
            </item>
            <item id="supervisor_group_id">
              <rank>90</rank>
            </item>
            <item id="supervisor_id">
              <rank>100</rank>
            </item>
            <item id="manager_group_id">
              <rank>110</rank>
            </item>
            <item id="manager_id">
              <rank>120</rank>
            </item>
            <item id="reason">
              <rank>130</rank>
            </item>
            <item id="impact">
              <rank>140</rank>
            </item>
            <item id="outage">
              <rank>150</rank>
            </item>
            <item id="parent_id">
              <rank>160</rank>
            </item>
            <item id="creation_date">
              <rank>170</rank>
            </item>
            <item id="start_date">
              <rank>180</rank>
            </item>
            <item id="end_date">
              <rank>190</rank>
            </item>
            <item id="last_update">
              <rank>200</rank>
            </item>
            <item id="approval_date">
              <rank>210</rank>
            </item>
            <item id="close_date">
              <rank>220</rank>
            </item>
          </items>
        </search>
        <list>
          <items>
            <item id="finalclass">
              <rank>10</rank>
            </item>
            <item id="title">
              <rank>20</rank>
            </item>
            <item id="org_id">
              <rank>30</rank>
            </item>
            <item id="start_date">
              <rank>40</rank>
            </item>
            <item id="end_date">
              <rank>50</rank>
            </item>
            <item id="status">
              <rank>60</rank>
            </item>
            <item id="agent_id">
              <rank>70</rank>
            </item>
          </items>
        </list>
      </presentation>
    </class>
  </classes>
  <menus>
    <menu id="ChangeManagement" xsi:type="MenuGroup" _delta="define">
      <rank>50</rank>
    </menu>
    <menu id="Change:Overview" xsi:type="DashboardMenuNode" _delta="define">
      <rank>0</rank>
      <parent>ChangeManagement</parent>
      <definition>
        <layout>DashboardLayoutTwoCols</layout>
        <title>UI:ChangeMgmtMenuOverview:Title</title>
        <cells>
          <cell id="0">
            <rank>0</rank>
            <dashlets>
              <dashlet id="1" xsi:type="DashletGroupByTable">
                <rank>0</rank>
                <title>UI-ChangeManagementOverview-ChangeByCategory-last-7-days</title>
                <query>SELECT Change WHERE creation_date &gt; DATE_SUB(NOW(), INTERVAL 7 DAY)</query>
                <group_by>finalclass</group_by>
                <style>table</style>
              </dashlet>
            </dashlets>
          </cell>
          <cell id="1">
            <rank>1</rank>
            <dashlets>
              <dashlet id="2" xsi:type="DashletGroupByBars">
                <rank>0</rank>
                <title>UI-ChangeManagementOverview-Last-7-days</title>
                <query>SELECT Change WHERE creation_date &gt; DATE_SUB(NOW(), INTERVAL 7 DAY)</query>
                <group_by>start_date:day_of_month</group_by>
                <style>bars</style>
              </dashlet>
            </dashlets>
          </cell>
          <cell id="2">
            <rank>2</rank>
            <dashlets>
              <dashlet id="3" xsi:type="DashletGroupByTable">
                <rank>0</rank>
                <title>UI-ChangeManagementOverview-ChangeByDomain-last-7-days</title>
                <query>SELECT Change WHERE creation_date &gt; DATE_SUB(NOW(), INTERVAL 7 DAY)</query>
                <group_by>finalclass</group_by>
                <style>table</style>
              </dashlet>
            </dashlets>
          </cell>
          <cell id="3">
            <rank>3</rank>
            <dashlets>
              <dashlet id="4" xsi:type="DashletGroupByTable">
                <rank>0</rank>
                <title>UI-ChangeManagementOverview-ChangeByStatus-last-7-days</title>
                <query>SELECT Change WHERE creation_date &gt; DATE_SUB(NOW(), INTERVAL 7 DAY)</query>
                <group_by>status</group_by>
                <style>table</style>
              </dashlet>
            </dashlets>
          </cell>
        </cells>
      </definition>
    </menu>
    <menu id="NewChange" xsi:type="NewObjectMenuNode" _delta="define">
      <rank>1</rank>
      <parent>ChangeManagement</parent>
      <class>Change</class>
    </menu>
    <menu id="SearchChanges" xsi:type="SearchMenuNode" _delta="define">
      <rank>2</rank>
      <parent>ChangeManagement</parent>
      <class>Change</class>
    </menu>
    <menu id="Change:Shortcuts" xsi:type="TemplateMenuNode" _delta="define">
      <rank>3</rank>
      <parent>ChangeManagement</parent>
      <template_file/>
    </menu>
    <menu id="MyChanges" xsi:type="OQLMenuNode" _delta="define">
      <rank>1</rank>
      <parent>Change:Shortcuts</parent>
      <oql><![CDATA[SELECT Change WHERE agent_id = :current_contact_id AND status NOT IN ("closed", "resolved")]]></oql>
      <do_search/>
      <auto_reload>fast</auto_reload>
    </menu>
    <menu id="Changes" xsi:type="OQLMenuNode" _delta="define">
      <rank>2</rank>
      <parent>Change:Shortcuts</parent>
      <oql><![CDATA[SELECT Change WHERE status != "closed"]]></oql>
      <do_search>1</do_search>
      <auto_reload>fast</auto_reload>
    </menu>
    <menu id="WaitingApproval" xsi:type="OQLMenuNode" _delta="define">
      <rank>3</rank>
      <parent>Change:Shortcuts</parent>
      <oql><![CDATA[SELECT ApprovedChange WHERE status IN ("plannedscheduled")]]></oql>
      <do_search/>
      <auto_reload>fast</auto_reload>
    </menu>
    <menu id="WaitingAcceptance" xsi:type="OQLMenuNode" _delta="define">
      <rank>4</rank>
      <parent>Change:Shortcuts</parent>
      <oql><![CDATA[SELECT NormalChange WHERE status IN ("new")]]></oql>
      <do_search/>
      <auto_reload>fast</auto_reload>
    </menu>
  </menus>
  <module_parameters>
    <parameters id="itop-tickets">
      <relation_context>
        <UserRequest>
          <impacts>
            <down>
              <items type="array">
                <item id="open_changes" _delta="define">
                  <oql><![CDATA[SELECT FCI, C FROM FunctionalCI AS FCI JOIN lnkFunctionalCIToTicket AS L ON L.functionalci_id = FCI.id JOIN Change AS C ON L.ticket_id = C.id WHERE (C.outage = 'yes') AND (C.status NOT IN ('closed', 'rejected')) AND (L.impact_code != 'not_impacted') AND (C.id != :this->id)]]></oql>
                  <dict>Tickets:Related:OpenChanges</dict>
                  <icon>itop-change-mgmt-itil/images/change-ongoing.png</icon>
                </item>
                <item id="recent_changes" _delta="define">
                  <oql><![CDATA[SELECT FCI, C FROM FunctionalCI AS FCI JOIN lnkFunctionalCIToTicket AS L ON L.functionalci_id = FCI.id JOIN Change AS C ON L.ticket_id = C.id WHERE (C.outage = 'yes') AND (C.status NOT IN ('closed')) AND (L.impact_code != 'not_impacted') AND (C.id != :this->id) AND (DATE_ADD(C.end_date, INTERVAL 3 DAY) < NOW())]]></oql>
                  <dict>Tickets:Related:RecentChanges</dict>
                  <icon>itop-change-mgmt-itil/images/change-done.png</icon>
                </item>
              </items>
            </down>
          </impacts>
        </UserRequest>
        <Incident>
          <impacts>
            <down>
              <items type="array">
                <item id="open_changes" _delta="define">
                  <oql><![CDATA[SELECT FCI, C FROM FunctionalCI AS FCI JOIN lnkFunctionalCIToTicket AS L ON L.functionalci_id = FCI.id JOIN Change AS C ON L.ticket_id = C.id WHERE (C.outage = 'yes') AND (C.status NOT IN ('closed', 'rejected')) AND (L.impact_code != 'not_impacted') AND (C.id != :this->id)]]></oql>
                  <dict>Tickets:Related:OpenChanges</dict>
                  <icon>itop-change-mgmt-itil/images/change-ongoing.png</icon>
                </item>
                <item id="recent_changes" _delta="define">
                  <oql><![CDATA[SELECT FCI, C FROM FunctionalCI AS FCI JOIN lnkFunctionalCIToTicket AS L ON L.functionalci_id = FCI.id JOIN Change AS C ON L.ticket_id = C.id WHERE (C.outage = 'yes') AND (C.status NOT IN ('closed')) AND (L.impact_code != 'not_impacted') AND (C.id != :this->id) AND (DATE_ADD(C.end_date, INTERVAL 3 DAY) < NOW())]]></oql>
                  <dict>Tickets:Related:RecentChanges</dict>
                  <icon>itop-change-mgmt-itil/images/change-done.png</icon>
                </item>
              </items>
            </down>
          </impacts>
        </Incident>
        <Change>
          <impacts>
            <down>
              <items type="array">
                <item id="open_changes" _delta="define">
                  <oql><![CDATA[SELECT FCI, C FROM FunctionalCI AS FCI JOIN lnkFunctionalCIToTicket AS L ON L.functionalci_id = FCI.id JOIN Change AS C ON L.ticket_id = C.id WHERE (C.outage = 'yes') AND (C.status NOT IN ('closed', 'rejected')) AND (L.impact_code != 'not_impacted') AND (C.id != :this->id)]]></oql>
                  <dict>Tickets:Related:OpenChanges</dict>
                  <icon>itop-change-mgmt-itil/images/change-ongoing.png</icon>
                </item>
                <item id="recent_changes" _delta="define">
                  <oql><![CDATA[SELECT FCI, C FROM FunctionalCI AS FCI JOIN lnkFunctionalCIToTicket AS L ON L.functionalci_id = FCI.id JOIN Change AS C ON L.ticket_id = C.id WHERE (C.outage = 'yes') AND (C.status NOT IN ('closed')) AND (L.impact_code != 'not_impacted') AND (C.id != :this->id) AND (DATE_ADD(C.end_date, INTERVAL 3 DAY) < NOW())]]></oql>
                  <dict>Tickets:Related:RecentChanges</dict>
                  <icon>itop-change-mgmt-itil/images/change-done.png</icon>
                </item>
              </items>
            </down>
          </impacts>
        </Change>
      </relation_context>
    </parameters>
    <parameters id="itop-config-mgmt">
      <relation_context>
        <FunctionalCI>
          <impacts>
            <down>
              <items type="array">
                <item id="open_changes" _delta="define">
                  <oql><![CDATA[SELECT FCI, C FROM FunctionalCI AS FCI JOIN lnkFunctionalCIToTicket AS L ON L.functionalci_id = FCI.id JOIN Change AS C ON L.ticket_id = C.id WHERE (C.outage = 'yes') AND (C.status NOT IN ('closed', 'rejected')) AND (L.impact_code != 'not_impacted')]]></oql>
                  <dict>Tickets:Related:OpenChanges</dict>
                  <icon>itop-change-mgmt-itil/images/change-ongoing.png</icon>
                </item>
                <item id="recent_changes" _delta="define">
                  <oql><![CDATA[SELECT FCI, C FROM FunctionalCI AS FCI JOIN lnkFunctionalCIToTicket AS L ON L.functionalci_id = FCI.id JOIN Change AS C ON L.ticket_id = C.id WHERE (C.outage = 'yes') AND (C.status IN ('closed')) AND (L.impact_code != 'not_impacted') AND (DATE_ADD(C.end_date, INTERVAL 3 DAY) < NOW())]]></oql>
                  <dict>Tickets:Related:RecentChanges</dict>
                  <icon>itop-change-mgmt-itil/images/change-done.png</icon>
                </item>
              </items>
            </down>
            <up>
              <items type="array">
                <item id="open_changes" _delta="define">
                  <oql><![CDATA[SELECT FCI, C FROM FunctionalCI AS FCI JOIN lnkFunctionalCIToTicket AS L ON L.functionalci_id = FCI.id JOIN Change AS C ON L.ticket_id = C.id WHERE (C.outage = 'yes') AND (C.status NOT IN ('closed', 'rejected')) AND (L.impact_code != 'not_impacted')]]></oql>
                  <dict>Tickets:Related:OpenChanges</dict>
                  <icon>itop-change-mgmt-itil/images/change-ongoing.png</icon>
                </item>
                <item id="recent_changes" _delta="define">
                  <oql><![CDATA[SELECT FCI, C FROM FunctionalCI AS FCI JOIN lnkFunctionalCIToTicket AS L ON L.functionalci_id = FCI.id JOIN Change AS C ON L.ticket_id = C.id WHERE (C.outage = 'yes') AND (C.status IN ('closed')) AND (L.impact_code != 'not_impacted') AND (DATE_ADD(C.end_date, INTERVAL 3 DAY) < NOW())]]></oql>
                  <dict>Tickets:Related:RecentChanges</dict>
                  <icon>itop-change-mgmt-itil/images/change-done.png</icon>
                </item>
              </items>
            </up>
          </impacts>
        </FunctionalCI>
      </relation_context>
    </parameters>
  </module_parameters>
</itop_design>
