<?xml version="1.0" encoding="UTF-8"?>
<itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.0">
  <classes>
    <class id="ClassWithLifecycle">
      <properties>
        <fields_semantic>
          <state_attribute>foo</state_attribute>
        </fields_semantic>
        <style>
          <icon>images/class-with-lifecycle.png</icon>
        </style>
      </properties>
      <lifecycle/>
    </class>
    <class id="OtherClass">
      <properties>
        <style>
          <icon revisionid="2" _delta="redefine">
            <fileref ref="company_0faae3b9d86b7c382b2e4cdae570bc3c" revisionid="62"/>
          </icon>
        </style>
      </properties>
      <fields>
        <field id="status" xsi:type="AttributeEnum">
          <always_load_in_tables>true</always_load_in_tables>
          <values>
            <value id="new">
              <code>new</code>
            </value>
            <value id="waiting_for_approval">
              <code>waiting_for_approval</code>
            </value>
            <value id="approved">
              <code>approved</code>
            </value>
            <value id="rejected">
              <code>rejected</code>
            </value>
            <value id="assigned">
              <code>assigned</code>
            </value>
            <value id="pending">
              <code>pending</code>
            </value>
            <value id="escalated_tto">
              <code>escalated_tto</code>
            </value>
            <value id="escalated_ttr">
              <code>escalated_ttr</code>
            </value>
            <value id="resolved">
              <code>resolved</code>
            </value>
            <value id="closed">
              <code>closed</code>
            </value>
          </values>
          <sql>status</sql>
          <default_value>new</default_value>
          <is_null_allowed>false</is_null_allowed>
        </field>
        <field id="operational_status" xsi:type="AttributeMetaEnum">
          <values>
            <value id="ongoing">
              <code>ongoing</code>
            </value>
            <value id="resolved">
              <code>resolved</code>
            </value>
            <value id="closed">
              <code>closed</code>
            </value>
          </values>
          <sql>operational_status</sql>
          <default_value>ongoing</default_value>
          <mappings>
            <mapping id="Ticket">
              <attcode>status</attcode>
              <metavalues>
                <metavalue id="resolved">
                  <values>
                    <value id="resolved"/>
                  </values>
                </metavalue>
                <metavalue id="closed">
                  <values>
                    <value id="closed"/>
                    <value id="rejected"/>
                  </values>
                </metavalue>
              </metavalues>
            </mapping>
          </mappings>
        </field>
      </fields>
    </class>
  </classes>
</itop_design>
