mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-20 07:42:17 +02:00
Itop design: added an intermediate root node above 'classes'
SVN:trunk[1936]
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classes>
|
<itop_design>
|
||||||
<class name="Attachment" category="addon,bizmodel" parent="DBObject" abstract="false" key_type="autoincrement" db_table="attachment" db_key_field="id" db_final_class_field="">
|
<classes>
|
||||||
<properties>
|
<class name="Attachment" category="addon,bizmodel" parent="DBObject" abstract="false" key_type="autoincrement" db_table="attachment" db_key_field="id" db_final_class_field="">
|
||||||
<comment><![CDATA[/**
|
<properties>
|
||||||
|
<comment><![CDATA[/**
|
||||||
* Module attachments
|
* Module attachments
|
||||||
*
|
*
|
||||||
* A quick and easy way to upload and attach files to *any* (see Configuration below) object in the CMBD in one click
|
* A quick and easy way to upload and attach files to *any* (see Configuration below) object in the CMBD in one click
|
||||||
@@ -15,30 +16,30 @@
|
|||||||
* @author Denis Flaven <denis.flaven@combodo.com>
|
* @author Denis Flaven <denis.flaven@combodo.com>
|
||||||
* @license http://www.opensource.org/licenses/gpl-3.0.html LGPL
|
* @license http://www.opensource.org/licenses/gpl-3.0.html LGPL
|
||||||
*/]]></comment>
|
*/]]></comment>
|
||||||
<naming format="%1$s %2$s">
|
<naming format="%1$s %2$s">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="item_class"/>
|
<attribute name="item_class"/>
|
||||||
<attribute name="temp_id"/>
|
<attribute name="temp_id"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</naming>
|
</naming>
|
||||||
<display_template></display_template>
|
<display_template></display_template>
|
||||||
<icon></icon>
|
<icon></icon>
|
||||||
<reconciliation>
|
<reconciliation>
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name=""/>
|
<attribute name=""/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</reconciliation>
|
</reconciliation>
|
||||||
</properties>
|
</properties>
|
||||||
<fields>
|
<fields>
|
||||||
<field name="expire" type="DateTime" sql="expire" default_value="" is_null_allowed="false"/>
|
<field name="expire" type="DateTime" sql="expire" default_value="" is_null_allowed="false"/>
|
||||||
<field name="temp_id" type="String" sql="temp_id" default_value="" is_null_allowed="true"/>
|
<field name="temp_id" type="String" sql="temp_id" default_value="" is_null_allowed="true"/>
|
||||||
<field name="item_class" type="String" sql="item_class" default_value="" is_null_allowed="false"/>
|
<field name="item_class" type="String" sql="item_class" default_value="" is_null_allowed="false"/>
|
||||||
<field name="item_id" type="String" sql="item_id" default_value="" is_null_allowed="true"/>
|
<field name="item_id" type="String" sql="item_id" default_value="" is_null_allowed="true"/>
|
||||||
<field name="item_org_id" type="Integer" sql="item_org_id" default_value="0" is_null_allowed="true"/>
|
<field name="item_org_id" type="Integer" sql="item_org_id" default_value="0" is_null_allowed="true"/>
|
||||||
<field name="contents" type="Blob"/>
|
<field name="contents" type="Blob"/>
|
||||||
</fields>
|
</fields>
|
||||||
<methods>
|
<methods>
|
||||||
<method name="MapContextParam" static="true" access="public" type="Overload-ExNihilo"><comment><![CDATA[/**
|
<method name="MapContextParam" static="true" access="public" type="Overload-ExNihilo"><comment><![CDATA[/**
|
||||||
* Maps the given context parameter name to the appropriate filter/search code for this class
|
* Maps the given context parameter name to the appropriate filter/search code for this class
|
||||||
* @param string $sContextParam Name of the context parameter, e.g. 'org_id'
|
* @param string $sContextParam Name of the context parameter, e.g. 'org_id'
|
||||||
* @return string Filter code, e.g. 'customer_id'
|
* @return string Filter code, e.g. 'customer_id'
|
||||||
@@ -53,7 +54,7 @@
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}]]></method>
|
}]]></method>
|
||||||
<method name="SetItem" static="false" access="public" type="Overload-ExNihilo"><comment><![CDATA[/**
|
<method name="SetItem" static="false" access="public" type="Overload-ExNihilo"><comment><![CDATA[/**
|
||||||
* Set/Update all of the '_item' fields
|
* Set/Update all of the '_item' fields
|
||||||
* @param object $oItem Container item
|
* @param object $oItem Container item
|
||||||
* @return void
|
* @return void
|
||||||
@@ -86,7 +87,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}]]></method>
|
}]]></method>
|
||||||
<method name="SetDefaultOrgId" static="false" access="public" type="Overload-ExNihilo"><comment><![CDATA[/**
|
<method name="SetDefaultOrgId" static="false" access="public" type="Overload-ExNihilo"><comment><![CDATA[/**
|
||||||
* Give a default value for item_org_id (if relevant...)
|
* Give a default value for item_org_id (if relevant...)
|
||||||
* @return void
|
* @return void
|
||||||
*/]]></comment><![CDATA[ public function SetDefaultOrgId()
|
*/]]></comment><![CDATA[ public function SetDefaultOrgId()
|
||||||
@@ -123,30 +124,31 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}]]></method>
|
}]]></method>
|
||||||
</methods>
|
</methods>
|
||||||
<presentation>
|
<presentation>
|
||||||
<details>
|
<details>
|
||||||
<items>
|
<items>
|
||||||
<item>temp_id</item>
|
<item>temp_id</item>
|
||||||
<item>item_class</item>
|
<item>item_class</item>
|
||||||
<item>item_id</item>
|
<item>item_id</item>
|
||||||
<item>item_org_id</item>
|
<item>item_org_id</item>
|
||||||
</items>
|
</items>
|
||||||
</details>
|
</details>
|
||||||
<search>
|
<search>
|
||||||
<items>
|
<items>
|
||||||
<item>temp_id</item>
|
<item>temp_id</item>
|
||||||
<item>item_class</item>
|
<item>item_class</item>
|
||||||
<item>item_id</item>
|
<item>item_id</item>
|
||||||
</items>
|
</items>
|
||||||
</search>
|
</search>
|
||||||
<list>
|
<list>
|
||||||
<items>
|
<items>
|
||||||
<item>temp_id</item>
|
<item>temp_id</item>
|
||||||
<item>item_class</item>
|
<item>item_class</item>
|
||||||
<item>item_id</item>
|
<item>item_id</item>
|
||||||
</items>
|
</items>
|
||||||
</list>
|
</list>
|
||||||
</presentation>
|
</presentation>
|
||||||
</class>
|
</class>
|
||||||
</classes>
|
</classes>
|
||||||
|
</itop_design>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,181 +1,183 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classes>
|
<itop_design>
|
||||||
<class name="KnownError" category="bizmodel,searchable,knownerrormgmt" parent="cmdbAbstractObject" abstract="false" key_type="autoincrement" db_table="known_error" db_key_field="id" db_final_class_field="">
|
<classes>
|
||||||
<properties>
|
<class name="KnownError" category="bizmodel,searchable,knownerrormgmt" parent="cmdbAbstractObject" abstract="false" key_type="autoincrement" db_table="known_error" db_key_field="id" db_final_class_field="">
|
||||||
<comment><![CDATA[/**
|
<properties>
|
||||||
|
<comment><![CDATA[/**
|
||||||
* Description of known error
|
* Description of known error
|
||||||
*/]]></comment>
|
*/]]></comment>
|
||||||
<naming format="%1$s">
|
<naming format="%1$s">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="name"/>
|
<attribute name="name"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</naming>
|
</naming>
|
||||||
<display_template></display_template>
|
<display_template></display_template>
|
||||||
<icon>images/known-error.png</icon>
|
<icon>images/known-error.png</icon>
|
||||||
<reconciliation>
|
<reconciliation>
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="org_id"/>
|
<attribute name="org_id"/>
|
||||||
<attribute name="name"/>
|
<attribute name="name"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</reconciliation>
|
</reconciliation>
|
||||||
</properties>
|
</properties>
|
||||||
<fields>
|
<fields>
|
||||||
<field name="name" type="String" sql="name" default_value="" is_null_allowed="false"/>
|
<field name="name" type="String" sql="name" default_value="" is_null_allowed="false"/>
|
||||||
<field name="org_id" type="ExternalKey" target_class="Organization" jointype="" sql="cust_id" is_null_allowed="false" on_target_delete="DEL_MANUAL"/>
|
<field name="org_id" type="ExternalKey" target_class="Organization" jointype="" sql="cust_id" is_null_allowed="false" on_target_delete="DEL_MANUAL"/>
|
||||||
<field name="cust_name" type="ExternalField" extkey_attcode="org_id" target_attcode="name"/>
|
<field name="cust_name" type="ExternalField" extkey_attcode="org_id" target_attcode="name"/>
|
||||||
<field name="problem_id" type="ExternalKey" target_class="Problem" jointype="" sql="problem_id" is_null_allowed="true" on_target_delete="DEL_MANUAL"/>
|
<field name="problem_id" type="ExternalKey" target_class="Problem" jointype="" sql="problem_id" is_null_allowed="true" on_target_delete="DEL_MANUAL"/>
|
||||||
<field name="problem_ref" type="ExternalField" extkey_attcode="problem_id" target_attcode="ref"/>
|
<field name="problem_ref" type="ExternalField" extkey_attcode="problem_id" target_attcode="ref"/>
|
||||||
<field name="symptom" type="Text" sql="symptom" default_value="" is_null_allowed="false"/>
|
<field name="symptom" type="Text" sql="symptom" default_value="" is_null_allowed="false"/>
|
||||||
<field name="root_cause" type="Text" sql="rootcause" default_value="" is_null_allowed="true"/>
|
<field name="root_cause" type="Text" sql="rootcause" default_value="" is_null_allowed="true"/>
|
||||||
<field name="workaround" type="Text" sql="workaround" default_value="" is_null_allowed="true"/>
|
<field name="workaround" type="Text" sql="workaround" default_value="" is_null_allowed="true"/>
|
||||||
<field name="solution" type="Text" sql="solution" default_value="" is_null_allowed="true"/>
|
<field name="solution" type="Text" sql="solution" default_value="" is_null_allowed="true"/>
|
||||||
<field name="error_code" type="String" sql="error_code" default_value="" is_null_allowed="true"/>
|
<field name="error_code" type="String" sql="error_code" default_value="" is_null_allowed="true"/>
|
||||||
<field name="domain" type="Enum" sql="domain" default_value="Application" is_null_allowed="false">
|
<field name="domain" type="Enum" sql="domain" default_value="Application" is_null_allowed="false">
|
||||||
<values>
|
<values>
|
||||||
<value>Network</value>
|
<value>Network</value>
|
||||||
<value>Server</value>
|
<value>Server</value>
|
||||||
<value>Application</value>
|
<value>Application</value>
|
||||||
<value>Desktop</value>
|
<value>Desktop</value>
|
||||||
</values>
|
</values>
|
||||||
</field>
|
</field>
|
||||||
<field name="vendor" type="String" sql="vendor" default_value="" is_null_allowed="true"/>
|
<field name="vendor" type="String" sql="vendor" default_value="" is_null_allowed="true"/>
|
||||||
<field name="model" type="String" sql="model" default_value="" is_null_allowed="true"/>
|
<field name="model" type="String" sql="model" default_value="" is_null_allowed="true"/>
|
||||||
<field name="version" type="String" sql="version" default_value="" is_null_allowed="true"/>
|
<field name="version" type="String" sql="version" default_value="" is_null_allowed="true"/>
|
||||||
<field name="ci_list" type="LinkedSetIndirect" linked_class="lnkInfraError" ext_key_to_me="error_id" ext_key_to_remote="infra_id" count_min="0" count_max="0"/>
|
<field name="ci_list" type="LinkedSetIndirect" linked_class="lnkInfraError" ext_key_to_me="error_id" ext_key_to_remote="infra_id" count_min="0" count_max="0"/>
|
||||||
<field name="document_list" type="LinkedSetIndirect" linked_class="lnkDocumentError" ext_key_to_me="error_id" ext_key_to_remote="doc_id" count_min="0" count_max="0"/>
|
<field name="document_list" type="LinkedSetIndirect" linked_class="lnkDocumentError" ext_key_to_me="error_id" ext_key_to_remote="doc_id" count_min="0" count_max="0"/>
|
||||||
</fields>
|
</fields>
|
||||||
<methods/>
|
<methods/>
|
||||||
<presentation>
|
<presentation>
|
||||||
<details>
|
<details>
|
||||||
<items>
|
<items>
|
||||||
<item>name</item>
|
<item>name</item>
|
||||||
<item>org_id</item>
|
<item>org_id</item>
|
||||||
<item>problem_id</item>
|
<item>problem_id</item>
|
||||||
<item>error_code</item>
|
<item>error_code</item>
|
||||||
<item>domain</item>
|
<item>domain</item>
|
||||||
<item>vendor</item>
|
<item>vendor</item>
|
||||||
<item>model</item>
|
<item>model</item>
|
||||||
<item>version</item>
|
<item>version</item>
|
||||||
<item>symptom</item>
|
<item>symptom</item>
|
||||||
<item>root_cause</item>
|
<item>root_cause</item>
|
||||||
<item>workaround</item>
|
<item>workaround</item>
|
||||||
<item>solution</item>
|
<item>solution</item>
|
||||||
<item>ci_list</item>
|
<item>ci_list</item>
|
||||||
<item>document_list</item>
|
<item>document_list</item>
|
||||||
</items>
|
</items>
|
||||||
</details>
|
</details>
|
||||||
<search>
|
<search>
|
||||||
<items>
|
<items>
|
||||||
<item>name</item>
|
<item>name</item>
|
||||||
<item>org_id</item>
|
<item>org_id</item>
|
||||||
<item>problem_id</item>
|
<item>problem_id</item>
|
||||||
<item>error_code</item>
|
<item>error_code</item>
|
||||||
<item>domain</item>
|
<item>domain</item>
|
||||||
<item>symptom</item>
|
<item>symptom</item>
|
||||||
</items>
|
</items>
|
||||||
</search>
|
</search>
|
||||||
<list>
|
<list>
|
||||||
<items>
|
<items>
|
||||||
<item>org_id</item>
|
<item>org_id</item>
|
||||||
<item>problem_id</item>
|
<item>problem_id</item>
|
||||||
<item>error_code</item>
|
<item>error_code</item>
|
||||||
<item>symptom</item>
|
<item>symptom</item>
|
||||||
</items>
|
</items>
|
||||||
</list>
|
</list>
|
||||||
</presentation>
|
</presentation>
|
||||||
</class>
|
</class>
|
||||||
<class name="lnkInfraError" category="bizmodel,searchable,knownerrormgmt,lnkknownerror" parent="cmdbAbstractObject" abstract="false" key_type="autoincrement" is_link="1" db_table="infra_error_links" db_key_field="link_id" db_final_class_field="">
|
<class name="lnkInfraError" category="bizmodel,searchable,knownerrormgmt,lnkknownerror" parent="cmdbAbstractObject" abstract="false" key_type="autoincrement" is_link="1" db_table="infra_error_links" db_key_field="link_id" db_final_class_field="">
|
||||||
<properties>
|
<properties>
|
||||||
<comment><![CDATA[/**
|
<comment><![CDATA[/**
|
||||||
* n-n link between any Infra and a Known Error
|
* n-n link between any Infra and a Known Error
|
||||||
*/]]></comment>
|
*/]]></comment>
|
||||||
<naming format="lnkInfraError">
|
<naming format="lnkInfraError">
|
||||||
<attributes/>
|
<attributes/>
|
||||||
</naming>
|
</naming>
|
||||||
<display_template></display_template>
|
<display_template></display_template>
|
||||||
<icon></icon>
|
<icon></icon>
|
||||||
<reconciliation>
|
<reconciliation>
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="infra_id"/>
|
<attribute name="infra_id"/>
|
||||||
<attribute name="error_id"/>
|
<attribute name="error_id"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</reconciliation>
|
</reconciliation>
|
||||||
</properties>
|
</properties>
|
||||||
<fields>
|
<fields>
|
||||||
<field name="infra_id" type="ExternalKey" target_class="FunctionalCI" jointype="" sql="infra_id" is_null_allowed="false" on_target_delete="DEL_AUTO"/>
|
<field name="infra_id" type="ExternalKey" target_class="FunctionalCI" jointype="" sql="infra_id" is_null_allowed="false" on_target_delete="DEL_AUTO"/>
|
||||||
<field name="infra_name" type="ExternalField" extkey_attcode="infra_id" target_attcode="name"/>
|
<field name="infra_name" type="ExternalField" extkey_attcode="infra_id" target_attcode="name"/>
|
||||||
<field name="infra_status" type="ExternalField" extkey_attcode="infra_id" target_attcode="status"/>
|
<field name="infra_status" type="ExternalField" extkey_attcode="infra_id" target_attcode="status"/>
|
||||||
<field name="error_id" type="ExternalKey" target_class="KnownError" jointype="" sql="error_id" is_null_allowed="false" on_target_delete="DEL_AUTO"/>
|
<field name="error_id" type="ExternalKey" target_class="KnownError" jointype="" sql="error_id" is_null_allowed="false" on_target_delete="DEL_AUTO"/>
|
||||||
<field name="error_name" type="ExternalField" extkey_attcode="error_id" target_attcode="name"/>
|
<field name="error_name" type="ExternalField" extkey_attcode="error_id" target_attcode="name"/>
|
||||||
<field name="reason" type="String" sql="dummy" default_value="" is_null_allowed="true"/>
|
<field name="reason" type="String" sql="dummy" default_value="" is_null_allowed="true"/>
|
||||||
</fields>
|
</fields>
|
||||||
<methods/>
|
<methods/>
|
||||||
<presentation>
|
<presentation>
|
||||||
<details>
|
<details>
|
||||||
<items>
|
<items>
|
||||||
<item>infra_id</item>
|
<item>infra_id</item>
|
||||||
<item>error_id</item>
|
<item>error_id</item>
|
||||||
<item>reason</item>
|
<item>reason</item>
|
||||||
</items>
|
</items>
|
||||||
</details>
|
</details>
|
||||||
<search>
|
<search>
|
||||||
<items>
|
<items>
|
||||||
<item>infra_id</item>
|
<item>infra_id</item>
|
||||||
<item>error_id</item>
|
<item>error_id</item>
|
||||||
</items>
|
</items>
|
||||||
</search>
|
</search>
|
||||||
<list>
|
<list>
|
||||||
<items>
|
<items>
|
||||||
<item>infra_id</item>
|
<item>infra_id</item>
|
||||||
<item>infra_status</item>
|
<item>infra_status</item>
|
||||||
<item>error_id</item>
|
<item>error_id</item>
|
||||||
<item>reason</item>
|
<item>reason</item>
|
||||||
</items>
|
</items>
|
||||||
</list>
|
</list>
|
||||||
</presentation>
|
</presentation>
|
||||||
</class>
|
</class>
|
||||||
<class name="lnkDocumentError" category="bizmodel,searchable,knownerrormgmt,lnkknownerror" parent="cmdbAbstractObject" abstract="false" key_type="autoincrement" is_link="1" db_table="documents_error_link" db_key_field="link_id" db_final_class_field="">
|
<class name="lnkDocumentError" category="bizmodel,searchable,knownerrormgmt,lnkknownerror" parent="cmdbAbstractObject" abstract="false" key_type="autoincrement" is_link="1" db_table="documents_error_link" db_key_field="link_id" db_final_class_field="">
|
||||||
<properties>
|
<properties>
|
||||||
<comment><![CDATA[/**
|
<comment><![CDATA[/**
|
||||||
* n-n link between any Contract and a Document
|
* n-n link between any Contract and a Document
|
||||||
*/]]></comment>
|
*/]]></comment>
|
||||||
<naming format="%1$s">
|
<naming format="%1$s">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="link_type"/>
|
<attribute name="link_type"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</naming>
|
</naming>
|
||||||
<display_template>../business/templates/default.html</display_template>
|
<display_template>../business/templates/default.html</display_template>
|
||||||
<icon></icon>
|
<icon></icon>
|
||||||
<reconciliation>
|
<reconciliation>
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="doc_id"/>
|
<attribute name="doc_id"/>
|
||||||
<attribute name="error_id"/>
|
<attribute name="error_id"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</reconciliation>
|
</reconciliation>
|
||||||
</properties>
|
</properties>
|
||||||
<fields>
|
<fields>
|
||||||
<field name="doc_id" type="ExternalKey" target_class="Document" jointype="" sql="doc_id" is_null_allowed="false" on_target_delete="DEL_AUTO"/>
|
<field name="doc_id" type="ExternalKey" target_class="Document" jointype="" sql="doc_id" is_null_allowed="false" on_target_delete="DEL_AUTO"/>
|
||||||
<field name="doc_name" type="ExternalField" extkey_attcode="doc_id" target_attcode="name"/>
|
<field name="doc_name" type="ExternalField" extkey_attcode="doc_id" target_attcode="name"/>
|
||||||
<field name="error_id" type="ExternalKey" target_class="KnownError" jointype="" sql="error_id" is_null_allowed="false" on_target_delete="DEL_AUTO"/>
|
<field name="error_id" type="ExternalKey" target_class="KnownError" jointype="" sql="error_id" is_null_allowed="false" on_target_delete="DEL_AUTO"/>
|
||||||
<field name="error_name" type="ExternalField" extkey_attcode="error_id" target_attcode="name"/>
|
<field name="error_name" type="ExternalField" extkey_attcode="error_id" target_attcode="name"/>
|
||||||
<field name="link_type" type="String" sql="link_type" default_value="" is_null_allowed="true"/>
|
<field name="link_type" type="String" sql="link_type" default_value="" is_null_allowed="true"/>
|
||||||
</fields>
|
</fields>
|
||||||
<methods/>
|
<methods/>
|
||||||
<presentation>
|
<presentation>
|
||||||
<details>
|
<details>
|
||||||
<items>
|
<items>
|
||||||
<item>doc_id</item>
|
<item>doc_id</item>
|
||||||
<item>error_name</item>
|
<item>error_name</item>
|
||||||
<item>link_type</item>
|
<item>link_type</item>
|
||||||
</items>
|
</items>
|
||||||
</details>
|
</details>
|
||||||
<list>
|
<list>
|
||||||
<items>
|
<items>
|
||||||
<item>doc_id</item>
|
<item>doc_id</item>
|
||||||
<item>error_name</item>
|
<item>error_name</item>
|
||||||
<item>link_type</item>
|
<item>link_type</item>
|
||||||
</items>
|
</items>
|
||||||
</list>
|
</list>
|
||||||
</presentation>
|
</presentation>
|
||||||
</class>
|
</class>
|
||||||
</classes>
|
</classes>
|
||||||
|
</itop_design>
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classes>
|
<itop_design>
|
||||||
<class name="Problem" category="bizmodel,searchable,problemmgmt" parent="Ticket" abstract="false" key_type="autoincrement" db_table="ticket_problem" db_key_field="id" db_final_class_field="">
|
<classes>
|
||||||
<properties>
|
<class name="Problem" category="bizmodel,searchable,problemmgmt" parent="Ticket" abstract="false" key_type="autoincrement" db_table="ticket_problem" db_key_field="id" db_final_class_field="">
|
||||||
<comment><![CDATA[/**
|
<properties>
|
||||||
|
<comment><![CDATA[/**
|
||||||
* Persistent classes for a CMDB
|
* Persistent classes for a CMDB
|
||||||
*
|
*
|
||||||
* @author Erwan Taloc <erwan.taloc@combodo.com>
|
* @author Erwan Taloc <erwan.taloc@combodo.com>
|
||||||
@@ -10,294 +11,294 @@
|
|||||||
* @author Denis Flaven <denis.flaven@combodo.com>
|
* @author Denis Flaven <denis.flaven@combodo.com>
|
||||||
* @license http://www.opensource.org/licenses/gpl-3.0.html LGPL
|
* @license http://www.opensource.org/licenses/gpl-3.0.html LGPL
|
||||||
*/]]></comment>
|
*/]]></comment>
|
||||||
<naming format="%1$s">
|
<naming format="%1$s">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="ref"/>
|
<attribute name="ref"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</naming>
|
</naming>
|
||||||
<display_template></display_template>
|
<display_template></display_template>
|
||||||
<icon>images/problem.png</icon>
|
<icon>images/problem.png</icon>
|
||||||
<reconciliation>
|
<reconciliation>
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="ref"/>
|
<attribute name="ref"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</reconciliation>
|
</reconciliation>
|
||||||
<order>
|
<order>
|
||||||
<columns>
|
<columns>
|
||||||
<column name="ref" ascending="false"/>
|
<column name="ref" ascending="false"/>
|
||||||
</columns>
|
</columns>
|
||||||
</order>
|
</order>
|
||||||
</properties>
|
</properties>
|
||||||
<fields>
|
<fields>
|
||||||
<field name="status" type="Enum" sql="status" default_value="new" is_null_allowed="false">
|
<field name="status" type="Enum" sql="status" default_value="new" is_null_allowed="false">
|
||||||
<values>
|
<values>
|
||||||
<value>new</value>
|
<value>new</value>
|
||||||
<value>assigned</value>
|
<value>assigned</value>
|
||||||
<value>resolved</value>
|
<value>resolved</value>
|
||||||
<value>closed</value>
|
<value>closed</value>
|
||||||
</values>
|
</values>
|
||||||
</field>
|
</field>
|
||||||
<field name="org_id" type="ExternalKey" target_class="Organization" jointype="" sql="org_id" is_null_allowed="false" on_target_delete="DEL_AUTO"/>
|
<field name="org_id" type="ExternalKey" target_class="Organization" jointype="" sql="org_id" is_null_allowed="false" on_target_delete="DEL_AUTO"/>
|
||||||
<field name="org_name" type="ExternalField" extkey_attcode="org_id" target_attcode="name"/>
|
<field name="org_name" type="ExternalField" extkey_attcode="org_id" target_attcode="name"/>
|
||||||
<field name="service_id" type="ExternalKey" target_class="Service" jointype="" filter="SELECT Service AS s JOIN SLA AS sla ON sla.service_id=s.id JOIN lnkContractToSLA AS ln ON ln.sla_id=sla.id JOIN CustomerContract AS cc ON ln.contract_id=cc.id WHERE cc.org_id =:this->org_id" sql="service_id" is_null_allowed="false" on_target_delete="DEL_MANUAL">
|
<field name="service_id" type="ExternalKey" target_class="Service" jointype="" filter="SELECT Service AS s JOIN SLA AS sla ON sla.service_id=s.id JOIN lnkContractToSLA AS ln ON ln.sla_id=sla.id JOIN CustomerContract AS cc ON ln.contract_id=cc.id WHERE cc.org_id =:this->org_id" sql="service_id" is_null_allowed="false" on_target_delete="DEL_MANUAL">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<attribute name="org_id"/>
|
<attribute name="org_id"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</field>
|
</field>
|
||||||
<field name="service_name" type="ExternalField" extkey_attcode="service_id" target_attcode="name"/>
|
<field name="service_name" type="ExternalField" extkey_attcode="service_id" target_attcode="name"/>
|
||||||
<field name="servicesubcategory_id" type="ExternalKey" target_class="ServiceSubcategory" jointype="" filter="SELECT ServiceSubcategory WHERE service_id = :this->service_id" sql="servicesubcategory_id" is_null_allowed="false" on_target_delete="DEL_MANUAL">
|
<field name="servicesubcategory_id" type="ExternalKey" target_class="ServiceSubcategory" jointype="" filter="SELECT ServiceSubcategory WHERE service_id = :this->service_id" sql="servicesubcategory_id" is_null_allowed="false" on_target_delete="DEL_MANUAL">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<attribute name="service_id"/>
|
|
||||||
</dependencies>
|
|
||||||
</field>
|
|
||||||
<field name="servicesubcategory_name" type="ExternalField" extkey_attcode="servicesubcategory_id" target_attcode="name"/>
|
|
||||||
<field name="product" type="String" sql="product" default_value="" is_null_allowed="true"/>
|
|
||||||
<field name="impact" type="Enum" sql="impact" default_value="1" is_null_allowed="false">
|
|
||||||
<values>
|
|
||||||
<value>1</value>
|
|
||||||
<value>2</value>
|
|
||||||
<value>3</value>
|
|
||||||
</values>
|
|
||||||
</field>
|
|
||||||
<field name="urgency" type="Enum" sql="urgency" default_value="1" is_null_allowed="false">
|
|
||||||
<values>
|
|
||||||
<value>1</value>
|
|
||||||
<value>2</value>
|
|
||||||
<value>3</value>
|
|
||||||
</values>
|
|
||||||
</field>
|
|
||||||
<field name="priority" type="Enum" sql="priority" default_value="1" is_null_allowed="false">
|
|
||||||
<values>
|
|
||||||
<value>1</value>
|
|
||||||
<value>2</value>
|
|
||||||
<value>3</value>
|
|
||||||
</values>
|
|
||||||
</field>
|
|
||||||
<field name="workgroup_id" type="ExternalKey" target_class="Team" jointype="" filter="SELECT Team AS t JOIN CustomerContract AS cc ON cc.support_team_id=t.id JOIN lnkContractToSLA AS ln ON ln.contract_id=cc.id JOIN SLA AS sla ON ln.sla_id=sla.id WHERE sla.service_id = :this->service_id AND cc.org_id = :this->org_id" sql="workgroup_id" is_null_allowed="false" on_target_delete="DEL_MANUAL">
|
|
||||||
<dependencies>
|
|
||||||
<attribute name="org_id"/>
|
|
||||||
<attribute name="service_id"/>
|
|
||||||
</dependencies>
|
|
||||||
</field>
|
|
||||||
<field name="workgroup_name" type="ExternalField" extkey_attcode="workgroup_id" target_attcode="name"/>
|
|
||||||
<field name="agent_id" type="ExternalKey" target_class="Person" jointype="" filter="SELECT Person AS p JOIN lnkTeamToContact AS l ON l.contact_id=p.id JOIN Team AS t ON l.team_id=t.id WHERE t.id = :this->workgroup_id" sql="agent_id" is_null_allowed="true" on_target_delete="DEL_MANUAL">
|
|
||||||
<dependencies>
|
|
||||||
<attribute name="workgroup_id"/>
|
|
||||||
</dependencies>
|
|
||||||
</field>
|
|
||||||
<field name="agent_name" type="ExternalField" extkey_attcode="agent_id" target_attcode="name"/>
|
|
||||||
<field name="agent_email" type="ExternalField" extkey_attcode="agent_id" target_attcode="email"/>
|
|
||||||
<field name="related_change_id" type="ExternalKey" target_class="Change" jointype="" sql="related_change_id" is_null_allowed="true" on_target_delete="DEL_MANUAL"/>
|
|
||||||
<field name="related_change_ref" type="ExternalField" extkey_attcode="related_change_id" target_attcode="ref"/>
|
|
||||||
<field name="close_date" type="DateTime" sql="close_date" default_value="" is_null_allowed="true"/>
|
|
||||||
<field name="last_update" type="DateTime" sql="last_update" default_value="" is_null_allowed="true"/>
|
|
||||||
<field name="assignment_date" type="DateTime" sql="assignment_date" default_value="" is_null_allowed="true"/>
|
|
||||||
<field name="resolution_date" type="DateTime" sql="resolution_date" default_value="" is_null_allowed="true"/>
|
|
||||||
<field name="knownerrors_list" type="LinkedSet" linked_class="KnownError" ext_key_to_me="problem_id" count_min="0" count_max="0"/>
|
|
||||||
</fields>
|
|
||||||
<lifecycle attribute="status">
|
|
||||||
<stimuli>
|
|
||||||
<stimulus name="ev_assign" type="StimulusUserAction"/>
|
|
||||||
<stimulus name="ev_reassign" type="StimulusUserAction"/>
|
|
||||||
<stimulus name="ev_resolve" type="StimulusUserAction"/>
|
|
||||||
<stimulus name="ev_close" type="StimulusUserAction"/>
|
|
||||||
</stimuli>
|
|
||||||
<states>
|
|
||||||
<state name="new">
|
|
||||||
<flags>
|
|
||||||
<attribute name="ref" read_only="1"/>
|
|
||||||
<attribute name="title"/>
|
|
||||||
<attribute name="description" must_change="1"/>
|
|
||||||
<attribute name="ticket_log" hidden="1"/>
|
|
||||||
<attribute name="start_date" read_only="1"/>
|
|
||||||
<attribute name="document_list"/>
|
|
||||||
<attribute name="ci_list"/>
|
|
||||||
<attribute name="contact_list"/>
|
|
||||||
<attribute name="incident_list"/>
|
|
||||||
<attribute name="status"/>
|
|
||||||
<attribute name="org_id" must_change="1"/>
|
|
||||||
<attribute name="org_name"/>
|
|
||||||
<attribute name="service_id" must_change="1"/>
|
|
||||||
<attribute name="service_name"/>
|
|
||||||
<attribute name="servicesubcategory_id" must_change="1"/>
|
|
||||||
<attribute name="servicesubcategory_name"/>
|
|
||||||
<attribute name="product" must_prompt="1"/>
|
|
||||||
<attribute name="impact" must_change="1"/>
|
|
||||||
<attribute name="urgency" must_change="1"/>
|
|
||||||
<attribute name="priority" read_only="1"/>
|
|
||||||
<attribute name="workgroup_id" must_change="1"/>
|
|
||||||
<attribute name="workgroup_name"/>
|
|
||||||
<attribute name="agent_id" hidden="1"/>
|
|
||||||
<attribute name="agent_name"/>
|
|
||||||
<attribute name="agent_email" hidden="1"/>
|
|
||||||
<attribute name="related_change_id" hidden="1"/>
|
|
||||||
<attribute name="related_change_ref"/>
|
|
||||||
<attribute name="close_date" hidden="1"/>
|
|
||||||
<attribute name="last_update" read_only="1"/>
|
|
||||||
<attribute name="assignment_date" hidden="1"/>
|
|
||||||
<attribute name="resolution_date" hidden="1"/>
|
|
||||||
<attribute name="knownerrors_list"/>
|
|
||||||
<attribute name="related_change_id_finalclass_recall"/>
|
|
||||||
</flags>
|
|
||||||
<transitions>
|
|
||||||
<transition stimulus="ev_assign" target="assigned">
|
|
||||||
<actions>
|
|
||||||
<action verb="SetAssignedDate"/>
|
|
||||||
</actions>
|
|
||||||
</transition>
|
|
||||||
</transitions>
|
|
||||||
</state>
|
|
||||||
<state name="assigned">
|
|
||||||
<flags>
|
|
||||||
<attribute name="ref" read_only="1"/>
|
|
||||||
<attribute name="title" read_only="1"/>
|
|
||||||
<attribute name="description" read_only="1"/>
|
|
||||||
<attribute name="ticket_log"/>
|
|
||||||
<attribute name="start_date" read_only="1"/>
|
|
||||||
<attribute name="document_list"/>
|
|
||||||
<attribute name="ci_list"/>
|
|
||||||
<attribute name="contact_list"/>
|
|
||||||
<attribute name="incident_list"/>
|
|
||||||
<attribute name="status"/>
|
|
||||||
<attribute name="org_id" read_only="1"/>
|
|
||||||
<attribute name="org_name"/>
|
|
||||||
<attribute name="service_id"/>
|
<attribute name="service_id"/>
|
||||||
<attribute name="service_name"/>
|
</dependencies>
|
||||||
<attribute name="servicesubcategory_id"/>
|
</field>
|
||||||
<attribute name="servicesubcategory_name"/>
|
<field name="servicesubcategory_name" type="ExternalField" extkey_attcode="servicesubcategory_id" target_attcode="name"/>
|
||||||
<attribute name="product"/>
|
<field name="product" type="String" sql="product" default_value="" is_null_allowed="true"/>
|
||||||
<attribute name="impact"/>
|
<field name="impact" type="Enum" sql="impact" default_value="1" is_null_allowed="false">
|
||||||
<attribute name="urgency"/>
|
<values>
|
||||||
<attribute name="priority" read_only="1"/>
|
<value>1</value>
|
||||||
<attribute name="workgroup_id" mandatory="1" must_prompt="1"/>
|
<value>2</value>
|
||||||
<attribute name="workgroup_name"/>
|
<value>3</value>
|
||||||
<attribute name="agent_id" mandatory="1" must_prompt="1"/>
|
</values>
|
||||||
<attribute name="agent_name"/>
|
</field>
|
||||||
<attribute name="agent_email" read_only="1"/>
|
<field name="urgency" type="Enum" sql="urgency" default_value="1" is_null_allowed="false">
|
||||||
<attribute name="related_change_id"/>
|
<values>
|
||||||
<attribute name="related_change_ref"/>
|
<value>1</value>
|
||||||
<attribute name="close_date" hidden="1"/>
|
<value>2</value>
|
||||||
<attribute name="last_update" read_only="1"/>
|
<value>3</value>
|
||||||
<attribute name="assignment_date" read_only="1"/>
|
</values>
|
||||||
<attribute name="resolution_date" hidden="1"/>
|
</field>
|
||||||
<attribute name="knownerrors_list"/>
|
<field name="priority" type="Enum" sql="priority" default_value="1" is_null_allowed="false">
|
||||||
<attribute name="related_change_id_finalclass_recall"/>
|
<values>
|
||||||
</flags>
|
<value>1</value>
|
||||||
<transitions>
|
<value>2</value>
|
||||||
<transition stimulus="ev_reassign" target="assigned">
|
<value>3</value>
|
||||||
<actions/>
|
</values>
|
||||||
</transition>
|
</field>
|
||||||
<transition stimulus="ev_resolve" target="resolved">
|
<field name="workgroup_id" type="ExternalKey" target_class="Team" jointype="" filter="SELECT Team AS t JOIN CustomerContract AS cc ON cc.support_team_id=t.id JOIN lnkContractToSLA AS ln ON ln.contract_id=cc.id JOIN SLA AS sla ON ln.sla_id=sla.id WHERE sla.service_id = :this->service_id AND cc.org_id = :this->org_id" sql="workgroup_id" is_null_allowed="false" on_target_delete="DEL_MANUAL">
|
||||||
<actions>
|
<dependencies>
|
||||||
<action verb="SetResolveDate"/>
|
<attribute name="org_id"/>
|
||||||
</actions>
|
<attribute name="service_id"/>
|
||||||
</transition>
|
</dependencies>
|
||||||
</transitions>
|
</field>
|
||||||
</state>
|
<field name="workgroup_name" type="ExternalField" extkey_attcode="workgroup_id" target_attcode="name"/>
|
||||||
<state name="resolved">
|
<field name="agent_id" type="ExternalKey" target_class="Person" jointype="" filter="SELECT Person AS p JOIN lnkTeamToContact AS l ON l.contact_id=p.id JOIN Team AS t ON l.team_id=t.id WHERE t.id = :this->workgroup_id" sql="agent_id" is_null_allowed="true" on_target_delete="DEL_MANUAL">
|
||||||
<flags>
|
<dependencies>
|
||||||
<attribute name="ref" read_only="1"/>
|
<attribute name="workgroup_id"/>
|
||||||
<attribute name="title" read_only="1"/>
|
</dependencies>
|
||||||
<attribute name="description" read_only="1"/>
|
</field>
|
||||||
<attribute name="ticket_log"/>
|
<field name="agent_name" type="ExternalField" extkey_attcode="agent_id" target_attcode="name"/>
|
||||||
<attribute name="start_date" read_only="1"/>
|
<field name="agent_email" type="ExternalField" extkey_attcode="agent_id" target_attcode="email"/>
|
||||||
<attribute name="document_list"/>
|
<field name="related_change_id" type="ExternalKey" target_class="Change" jointype="" sql="related_change_id" is_null_allowed="true" on_target_delete="DEL_MANUAL"/>
|
||||||
<attribute name="ci_list"/>
|
<field name="related_change_ref" type="ExternalField" extkey_attcode="related_change_id" target_attcode="ref"/>
|
||||||
<attribute name="contact_list"/>
|
<field name="close_date" type="DateTime" sql="close_date" default_value="" is_null_allowed="true"/>
|
||||||
<attribute name="incident_list"/>
|
<field name="last_update" type="DateTime" sql="last_update" default_value="" is_null_allowed="true"/>
|
||||||
<attribute name="status"/>
|
<field name="assignment_date" type="DateTime" sql="assignment_date" default_value="" is_null_allowed="true"/>
|
||||||
<attribute name="org_id" read_only="1"/>
|
<field name="resolution_date" type="DateTime" sql="resolution_date" default_value="" is_null_allowed="true"/>
|
||||||
<attribute name="org_name"/>
|
<field name="knownerrors_list" type="LinkedSet" linked_class="KnownError" ext_key_to_me="problem_id" count_min="0" count_max="0"/>
|
||||||
<attribute name="service_id" read_only="1"/>
|
</fields>
|
||||||
<attribute name="service_name"/>
|
<lifecycle attribute="status">
|
||||||
<attribute name="servicesubcategory_id" read_only="1"/>
|
<stimuli>
|
||||||
<attribute name="servicesubcategory_name"/>
|
<stimulus name="ev_assign" type="StimulusUserAction"/>
|
||||||
<attribute name="product" read_only="1"/>
|
<stimulus name="ev_reassign" type="StimulusUserAction"/>
|
||||||
<attribute name="impact" read_only="1"/>
|
<stimulus name="ev_resolve" type="StimulusUserAction"/>
|
||||||
<attribute name="urgency" read_only="1"/>
|
<stimulus name="ev_close" type="StimulusUserAction"/>
|
||||||
<attribute name="priority" read_only="1"/>
|
</stimuli>
|
||||||
<attribute name="workgroup_id" read_only="1"/>
|
<states>
|
||||||
<attribute name="workgroup_name"/>
|
<state name="new">
|
||||||
<attribute name="agent_id" read_only="1"/>
|
<flags>
|
||||||
<attribute name="agent_name"/>
|
<attribute name="ref" read_only="1"/>
|
||||||
<attribute name="agent_email" read_only="1"/>
|
<attribute name="title"/>
|
||||||
<attribute name="related_change_id"/>
|
<attribute name="description" must_change="1"/>
|
||||||
<attribute name="related_change_ref"/>
|
<attribute name="ticket_log" hidden="1"/>
|
||||||
<attribute name="close_date" hidden="1"/>
|
<attribute name="start_date" read_only="1"/>
|
||||||
<attribute name="last_update" read_only="1"/>
|
<attribute name="document_list"/>
|
||||||
<attribute name="assignment_date" read_only="1"/>
|
<attribute name="ci_list"/>
|
||||||
<attribute name="resolution_date" hidden="1"/>
|
<attribute name="contact_list"/>
|
||||||
<attribute name="knownerrors_list"/>
|
<attribute name="incident_list"/>
|
||||||
<attribute name="related_change_id_finalclass_recall"/>
|
<attribute name="status"/>
|
||||||
</flags>
|
<attribute name="org_id" must_change="1"/>
|
||||||
<transitions>
|
<attribute name="org_name"/>
|
||||||
<transition stimulus="ev_reassign" target="assigned">
|
<attribute name="service_id" must_change="1"/>
|
||||||
<actions/>
|
<attribute name="service_name"/>
|
||||||
</transition>
|
<attribute name="servicesubcategory_id" must_change="1"/>
|
||||||
<transition stimulus="ev_close" target="closed">
|
<attribute name="servicesubcategory_name"/>
|
||||||
<actions>
|
<attribute name="product" must_prompt="1"/>
|
||||||
<action verb="SetClosureDate"/>
|
<attribute name="impact" must_change="1"/>
|
||||||
</actions>
|
<attribute name="urgency" must_change="1"/>
|
||||||
</transition>
|
<attribute name="priority" read_only="1"/>
|
||||||
</transitions>
|
<attribute name="workgroup_id" must_change="1"/>
|
||||||
</state>
|
<attribute name="workgroup_name"/>
|
||||||
<state name="closed">
|
<attribute name="agent_id" hidden="1"/>
|
||||||
<flags>
|
<attribute name="agent_name"/>
|
||||||
<attribute name="ref" read_only="1"/>
|
<attribute name="agent_email" hidden="1"/>
|
||||||
<attribute name="title" read_only="1"/>
|
<attribute name="related_change_id" hidden="1"/>
|
||||||
<attribute name="description" read_only="1"/>
|
<attribute name="related_change_ref"/>
|
||||||
<attribute name="ticket_log" read_only="1"/>
|
<attribute name="close_date" hidden="1"/>
|
||||||
<attribute name="start_date" read_only="1"/>
|
<attribute name="last_update" read_only="1"/>
|
||||||
<attribute name="document_list"/>
|
<attribute name="assignment_date" hidden="1"/>
|
||||||
<attribute name="ci_list"/>
|
<attribute name="resolution_date" hidden="1"/>
|
||||||
<attribute name="contact_list"/>
|
<attribute name="knownerrors_list"/>
|
||||||
<attribute name="incident_list"/>
|
<attribute name="related_change_id_finalclass_recall"/>
|
||||||
<attribute name="status"/>
|
</flags>
|
||||||
<attribute name="org_id" read_only="1"/>
|
<transitions>
|
||||||
<attribute name="org_name"/>
|
<transition stimulus="ev_assign" target="assigned">
|
||||||
<attribute name="service_id" read_only="1"/>
|
<actions>
|
||||||
<attribute name="service_name"/>
|
<action verb="SetAssignedDate"/>
|
||||||
<attribute name="servicesubcategory_id" read_only="1"/>
|
</actions>
|
||||||
<attribute name="servicesubcategory_name"/>
|
</transition>
|
||||||
<attribute name="product" read_only="1"/>
|
</transitions>
|
||||||
<attribute name="impact" read_only="1"/>
|
</state>
|
||||||
<attribute name="urgency" read_only="1"/>
|
<state name="assigned">
|
||||||
<attribute name="priority" read_only="1"/>
|
<flags>
|
||||||
<attribute name="workgroup_id" read_only="1"/>
|
<attribute name="ref" read_only="1"/>
|
||||||
<attribute name="workgroup_name"/>
|
<attribute name="title" read_only="1"/>
|
||||||
<attribute name="agent_id" read_only="1"/>
|
<attribute name="description" read_only="1"/>
|
||||||
<attribute name="agent_name"/>
|
<attribute name="ticket_log"/>
|
||||||
<attribute name="agent_email" read_only="1"/>
|
<attribute name="start_date" read_only="1"/>
|
||||||
<attribute name="related_change_id"/>
|
<attribute name="document_list"/>
|
||||||
<attribute name="related_change_ref"/>
|
<attribute name="ci_list"/>
|
||||||
<attribute name="close_date" read_only="1"/>
|
<attribute name="contact_list"/>
|
||||||
<attribute name="last_update" read_only="1"/>
|
<attribute name="incident_list"/>
|
||||||
<attribute name="assignment_date" read_only="1"/>
|
<attribute name="status"/>
|
||||||
<attribute name="resolution_date" hidden="1"/>
|
<attribute name="org_id" read_only="1"/>
|
||||||
<attribute name="knownerrors_list"/>
|
<attribute name="org_name"/>
|
||||||
<attribute name="related_change_id_finalclass_recall"/>
|
<attribute name="service_id"/>
|
||||||
</flags>
|
<attribute name="service_name"/>
|
||||||
<transitions/>
|
<attribute name="servicesubcategory_id"/>
|
||||||
</state>
|
<attribute name="servicesubcategory_name"/>
|
||||||
</states>
|
<attribute name="product"/>
|
||||||
</lifecycle>
|
<attribute name="impact"/>
|
||||||
<methods>
|
<attribute name="urgency"/>
|
||||||
<method name="SetAssignedDate" static="false" access="public" type="LifecycleAction"><![CDATA[ public function SetAssignedDate($sStimulusCode)
|
<attribute name="priority" read_only="1"/>
|
||||||
|
<attribute name="workgroup_id" mandatory="1" must_prompt="1"/>
|
||||||
|
<attribute name="workgroup_name"/>
|
||||||
|
<attribute name="agent_id" mandatory="1" must_prompt="1"/>
|
||||||
|
<attribute name="agent_name"/>
|
||||||
|
<attribute name="agent_email" read_only="1"/>
|
||||||
|
<attribute name="related_change_id"/>
|
||||||
|
<attribute name="related_change_ref"/>
|
||||||
|
<attribute name="close_date" hidden="1"/>
|
||||||
|
<attribute name="last_update" read_only="1"/>
|
||||||
|
<attribute name="assignment_date" read_only="1"/>
|
||||||
|
<attribute name="resolution_date" hidden="1"/>
|
||||||
|
<attribute name="knownerrors_list"/>
|
||||||
|
<attribute name="related_change_id_finalclass_recall"/>
|
||||||
|
</flags>
|
||||||
|
<transitions>
|
||||||
|
<transition stimulus="ev_reassign" target="assigned">
|
||||||
|
<actions/>
|
||||||
|
</transition>
|
||||||
|
<transition stimulus="ev_resolve" target="resolved">
|
||||||
|
<actions>
|
||||||
|
<action verb="SetResolveDate"/>
|
||||||
|
</actions>
|
||||||
|
</transition>
|
||||||
|
</transitions>
|
||||||
|
</state>
|
||||||
|
<state name="resolved">
|
||||||
|
<flags>
|
||||||
|
<attribute name="ref" read_only="1"/>
|
||||||
|
<attribute name="title" read_only="1"/>
|
||||||
|
<attribute name="description" read_only="1"/>
|
||||||
|
<attribute name="ticket_log"/>
|
||||||
|
<attribute name="start_date" read_only="1"/>
|
||||||
|
<attribute name="document_list"/>
|
||||||
|
<attribute name="ci_list"/>
|
||||||
|
<attribute name="contact_list"/>
|
||||||
|
<attribute name="incident_list"/>
|
||||||
|
<attribute name="status"/>
|
||||||
|
<attribute name="org_id" read_only="1"/>
|
||||||
|
<attribute name="org_name"/>
|
||||||
|
<attribute name="service_id" read_only="1"/>
|
||||||
|
<attribute name="service_name"/>
|
||||||
|
<attribute name="servicesubcategory_id" read_only="1"/>
|
||||||
|
<attribute name="servicesubcategory_name"/>
|
||||||
|
<attribute name="product" read_only="1"/>
|
||||||
|
<attribute name="impact" read_only="1"/>
|
||||||
|
<attribute name="urgency" read_only="1"/>
|
||||||
|
<attribute name="priority" read_only="1"/>
|
||||||
|
<attribute name="workgroup_id" read_only="1"/>
|
||||||
|
<attribute name="workgroup_name"/>
|
||||||
|
<attribute name="agent_id" read_only="1"/>
|
||||||
|
<attribute name="agent_name"/>
|
||||||
|
<attribute name="agent_email" read_only="1"/>
|
||||||
|
<attribute name="related_change_id"/>
|
||||||
|
<attribute name="related_change_ref"/>
|
||||||
|
<attribute name="close_date" hidden="1"/>
|
||||||
|
<attribute name="last_update" read_only="1"/>
|
||||||
|
<attribute name="assignment_date" read_only="1"/>
|
||||||
|
<attribute name="resolution_date" hidden="1"/>
|
||||||
|
<attribute name="knownerrors_list"/>
|
||||||
|
<attribute name="related_change_id_finalclass_recall"/>
|
||||||
|
</flags>
|
||||||
|
<transitions>
|
||||||
|
<transition stimulus="ev_reassign" target="assigned">
|
||||||
|
<actions/>
|
||||||
|
</transition>
|
||||||
|
<transition stimulus="ev_close" target="closed">
|
||||||
|
<actions>
|
||||||
|
<action verb="SetClosureDate"/>
|
||||||
|
</actions>
|
||||||
|
</transition>
|
||||||
|
</transitions>
|
||||||
|
</state>
|
||||||
|
<state name="closed">
|
||||||
|
<flags>
|
||||||
|
<attribute name="ref" read_only="1"/>
|
||||||
|
<attribute name="title" read_only="1"/>
|
||||||
|
<attribute name="description" read_only="1"/>
|
||||||
|
<attribute name="ticket_log" read_only="1"/>
|
||||||
|
<attribute name="start_date" read_only="1"/>
|
||||||
|
<attribute name="document_list"/>
|
||||||
|
<attribute name="ci_list"/>
|
||||||
|
<attribute name="contact_list"/>
|
||||||
|
<attribute name="incident_list"/>
|
||||||
|
<attribute name="status"/>
|
||||||
|
<attribute name="org_id" read_only="1"/>
|
||||||
|
<attribute name="org_name"/>
|
||||||
|
<attribute name="service_id" read_only="1"/>
|
||||||
|
<attribute name="service_name"/>
|
||||||
|
<attribute name="servicesubcategory_id" read_only="1"/>
|
||||||
|
<attribute name="servicesubcategory_name"/>
|
||||||
|
<attribute name="product" read_only="1"/>
|
||||||
|
<attribute name="impact" read_only="1"/>
|
||||||
|
<attribute name="urgency" read_only="1"/>
|
||||||
|
<attribute name="priority" read_only="1"/>
|
||||||
|
<attribute name="workgroup_id" read_only="1"/>
|
||||||
|
<attribute name="workgroup_name"/>
|
||||||
|
<attribute name="agent_id" read_only="1"/>
|
||||||
|
<attribute name="agent_name"/>
|
||||||
|
<attribute name="agent_email" read_only="1"/>
|
||||||
|
<attribute name="related_change_id"/>
|
||||||
|
<attribute name="related_change_ref"/>
|
||||||
|
<attribute name="close_date" read_only="1"/>
|
||||||
|
<attribute name="last_update" read_only="1"/>
|
||||||
|
<attribute name="assignment_date" read_only="1"/>
|
||||||
|
<attribute name="resolution_date" hidden="1"/>
|
||||||
|
<attribute name="knownerrors_list"/>
|
||||||
|
<attribute name="related_change_id_finalclass_recall"/>
|
||||||
|
</flags>
|
||||||
|
<transitions/>
|
||||||
|
</state>
|
||||||
|
</states>
|
||||||
|
</lifecycle>
|
||||||
|
<methods>
|
||||||
|
<method name="SetAssignedDate" static="false" access="public" type="LifecycleAction"><![CDATA[ public function SetAssignedDate($sStimulusCode)
|
||||||
{
|
{
|
||||||
$this->Set('assignment_date', time());
|
$this->Set('assignment_date', time());
|
||||||
return true;
|
return true;
|
||||||
}]]></method>
|
}]]></method>
|
||||||
<method name="SetResolveDate" static="false" access="public" type="LifecycleAction"><![CDATA[ public function SetResolveDate($sStimulusCode)
|
<method name="SetResolveDate" static="false" access="public" type="LifecycleAction"><![CDATA[ public function SetResolveDate($sStimulusCode)
|
||||||
{
|
{
|
||||||
$this->Set('resolution_date', time());
|
$this->Set('resolution_date', time());
|
||||||
return true;
|
return true;
|
||||||
}]]></method>
|
}]]></method>
|
||||||
<method name="SetClosureDate" static="false" access="public" type="LifecycleAction"><![CDATA[ public function SetClosureDate($sStimulusCode)
|
<method name="SetClosureDate" static="false" access="public" type="LifecycleAction"><![CDATA[ public function SetClosureDate($sStimulusCode)
|
||||||
{
|
{
|
||||||
$this->Set('close_date', time());
|
$this->Set('close_date', time());
|
||||||
return true;
|
return true;
|
||||||
}]]></method>
|
}]]></method>
|
||||||
<method name="ComputePriority" static="false" access="public" type="LifecycleAction"><comment><![CDATA[/** Compute the priority of the ticket based on its impact and urgency
|
<method name="ComputePriority" static="false" access="public" type="LifecycleAction"><comment><![CDATA[/** Compute the priority of the ticket based on its impact and urgency
|
||||||
* @return integer The priority of the ticket 1(high) .. 3(low)
|
* @return integer The priority of the ticket 1(high) .. 3(low)
|
||||||
*/]]></comment><![CDATA[ public function ComputePriority()
|
*/]]></comment><![CDATA[ public function ComputePriority()
|
||||||
{
|
{
|
||||||
@@ -325,7 +326,7 @@
|
|||||||
$iPriority = $aPriorities[(int)$this->Get('impact')][(int)$this->Get('urgency')];
|
$iPriority = $aPriorities[(int)$this->Get('impact')][(int)$this->Get('urgency')];
|
||||||
return $iPriority;
|
return $iPriority;
|
||||||
}]]></method>
|
}]]></method>
|
||||||
<method name="ComputeValues" static="false" access="public" type="Overload-DBObject"><![CDATA[ public function ComputeValues()
|
<method name="ComputeValues" static="false" access="public" type="Overload-DBObject"><![CDATA[ public function ComputeValues()
|
||||||
{
|
{
|
||||||
// Compute the priority of the ticket
|
// Compute the priority of the ticket
|
||||||
$this->Set('priority', $this->ComputePriority());
|
$this->Set('priority', $this->ComputePriority());
|
||||||
@@ -343,91 +344,92 @@
|
|||||||
$this->Set('ref', $sName);
|
$this->Set('ref', $sName);
|
||||||
}
|
}
|
||||||
}]]></method>
|
}]]></method>
|
||||||
</methods>
|
</methods>
|
||||||
<presentation>
|
<presentation>
|
||||||
<details>
|
<details>
|
||||||
<items>
|
<items>
|
||||||
<item>document_list</item>
|
<item>document_list</item>
|
||||||
<item>ci_list</item>
|
<item>ci_list</item>
|
||||||
<item>contact_list</item>
|
<item>contact_list</item>
|
||||||
<item>incident_list</item>
|
<item>incident_list</item>
|
||||||
<item key="col:col1">
|
<item key="col:col1">
|
||||||
<items>
|
<items>
|
||||||
<item key="fieldset:Ticket:baseinfo">
|
<item key="fieldset:Ticket:baseinfo">
|
||||||
<items>
|
<items>
|
||||||
<item>ref</item>
|
<item>ref</item>
|
||||||
<item>title</item>
|
<item>title</item>
|
||||||
<item>org_id</item>
|
<item>org_id</item>
|
||||||
<item>status</item>
|
<item>status</item>
|
||||||
<item>priority</item>
|
<item>priority</item>
|
||||||
<item>service_id</item>
|
<item>service_id</item>
|
||||||
<item>servicesubcategory_id</item>
|
<item>servicesubcategory_id</item>
|
||||||
<item>product</item>
|
<item>product</item>
|
||||||
</items>
|
</items>
|
||||||
</item>
|
</item>
|
||||||
<item key="fieldset:Ticket:moreinfo">
|
<item key="fieldset:Ticket:moreinfo">
|
||||||
<items>
|
<items>
|
||||||
<item>impact</item>
|
<item>impact</item>
|
||||||
<item>urgency</item>
|
<item>urgency</item>
|
||||||
<item>description</item>
|
<item>description</item>
|
||||||
</items>
|
</items>
|
||||||
</item>
|
</item>
|
||||||
</items>
|
</items>
|
||||||
</item>
|
</item>
|
||||||
<item key="col:col2">
|
<item key="col:col2">
|
||||||
<items>
|
<items>
|
||||||
<item key="fieldset:Ticket:date">
|
<item key="fieldset:Ticket:date">
|
||||||
<items>
|
<items>
|
||||||
<item>start_date</item>
|
<item>start_date</item>
|
||||||
<item>last_update</item>
|
<item>last_update</item>
|
||||||
<item>assignment_date</item>
|
<item>assignment_date</item>
|
||||||
<item>close_date</item>
|
<item>close_date</item>
|
||||||
</items>
|
</items>
|
||||||
</item>
|
</item>
|
||||||
<item key="fieldset:Ticket:contact">
|
<item key="fieldset:Ticket:contact">
|
||||||
<items>
|
<items>
|
||||||
<item>workgroup_id</item>
|
<item>workgroup_id</item>
|
||||||
<item>agent_id</item>
|
<item>agent_id</item>
|
||||||
</items>
|
</items>
|
||||||
</item>
|
</item>
|
||||||
<item key="fieldset:Ticket:relation">
|
<item key="fieldset:Ticket:relation">
|
||||||
<items>
|
<items>
|
||||||
<item>related_change_id</item>
|
<item>related_change_id</item>
|
||||||
</items>
|
</items>
|
||||||
</item>
|
</item>
|
||||||
</items>
|
</items>
|
||||||
</item>
|
</item>
|
||||||
</items>
|
</items>
|
||||||
</details>
|
</details>
|
||||||
<search>
|
<search>
|
||||||
<items>
|
<items>
|
||||||
<item>ref</item>
|
<item>ref</item>
|
||||||
<item>title</item>
|
<item>title</item>
|
||||||
<item>org_id</item>
|
<item>org_id</item>
|
||||||
<item>start_date</item>
|
<item>start_date</item>
|
||||||
<item>status</item>
|
<item>status</item>
|
||||||
<item>service_id</item>
|
<item>service_id</item>
|
||||||
<item>servicesubcategory_id</item>
|
<item>servicesubcategory_id</item>
|
||||||
<item>product</item>
|
<item>product</item>
|
||||||
<item>impact</item>
|
<item>impact</item>
|
||||||
<item>urgency</item>
|
<item>urgency</item>
|
||||||
<item>priority</item>
|
<item>priority</item>
|
||||||
<item>workgroup_id</item>
|
<item>workgroup_id</item>
|
||||||
<item>agent_id</item>
|
<item>agent_id</item>
|
||||||
<item>agent_email</item>
|
<item>agent_email</item>
|
||||||
<item>close_date</item>
|
<item>close_date</item>
|
||||||
</items>
|
</items>
|
||||||
</search>
|
</search>
|
||||||
<list>
|
<list>
|
||||||
<items>
|
<items>
|
||||||
<item>title</item>
|
<item>title</item>
|
||||||
<item>org_id</item>
|
<item>org_id</item>
|
||||||
<item>start_date</item>
|
<item>start_date</item>
|
||||||
<item>status</item>
|
<item>status</item>
|
||||||
<item>service_id</item>
|
<item>service_id</item>
|
||||||
<item>priority</item>
|
<item>priority</item>
|
||||||
</items>
|
</items>
|
||||||
</list>
|
</list>
|
||||||
</presentation>
|
</presentation>
|
||||||
</class>
|
</class>
|
||||||
</classes>
|
</classes>
|
||||||
|
</itop_design>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -270,6 +270,7 @@ class ModelFactory
|
|||||||
{
|
{
|
||||||
protected $sRootDir;
|
protected $sRootDir;
|
||||||
protected $oDOMDocument;
|
protected $oDOMDocument;
|
||||||
|
protected $oRoot;
|
||||||
protected $oClasses;
|
protected $oClasses;
|
||||||
static protected $aLoadedClasses;
|
static protected $aLoadedClasses;
|
||||||
static protected $aWellKnownParents = array('DBObject', 'CMDBObject','cmdbAbstractObject');
|
static protected $aWellKnownParents = array('DBObject', 'CMDBObject','cmdbAbstractObject');
|
||||||
@@ -280,8 +281,10 @@ class ModelFactory
|
|||||||
{
|
{
|
||||||
$this->sRootDir = $sRootDir;
|
$this->sRootDir = $sRootDir;
|
||||||
$this->oDOMDocument = new DOMDocument('1.0', 'UTF-8');
|
$this->oDOMDocument = new DOMDocument('1.0', 'UTF-8');
|
||||||
|
$this->oRoot = $this->oDOMDocument->CreateElement('itop_design');
|
||||||
|
$this->oDOMDocument->AppendChild($this->oRoot);
|
||||||
$this->oClasses = $this->oDOMDocument->CreateElement('classes');
|
$this->oClasses = $this->oDOMDocument->CreateElement('classes');
|
||||||
$this->oDOMDocument->AppendChild($this->oClasses);
|
$this->oRoot->AppendChild($this->oClasses);
|
||||||
self::$aLoadedClasses = array();
|
self::$aLoadedClasses = array();
|
||||||
self::$aLoadedModules = array();
|
self::$aLoadedModules = array();
|
||||||
}
|
}
|
||||||
@@ -315,7 +318,7 @@ class ModelFactory
|
|||||||
$oNode->SetAttribute('_source', $sXmlFile);
|
$oNode->SetAttribute('_source', $sXmlFile);
|
||||||
}
|
}
|
||||||
$oXPath = new DOMXPath($oDocument);
|
$oXPath = new DOMXPath($oDocument);
|
||||||
$oNodeList = $oXPath->query('//classes/class');
|
$oNodeList = $oXPath->query('/itop_design/classes/class');
|
||||||
foreach($oNodeList as $oNode)
|
foreach($oNodeList as $oNode)
|
||||||
{
|
{
|
||||||
if ($oNode->hasAttribute('parent'))
|
if ($oNode->hasAttribute('parent'))
|
||||||
@@ -1109,10 +1112,12 @@ EOF
|
|||||||
public function GetDelta()
|
public function GetDelta()
|
||||||
{
|
{
|
||||||
$oDelta = new DOMDocument('1.0', 'UTF-8');
|
$oDelta = new DOMDocument('1.0', 'UTF-8');
|
||||||
$oRootNode = $oDelta->createElement('classes');
|
$oRootNode = $oDelta->createElement('itop_design');
|
||||||
$oDelta->appendChild($oRootNode);
|
$oDelta->appendChild($oRootNode);
|
||||||
|
$oClasses = $oDelta->createElement('classes');
|
||||||
|
$oRootNode->appendChild($oClasses);
|
||||||
|
|
||||||
$this->_priv_ImportModifiedChildren($oDelta, $oRootNode, $this->oDOMDocument->firstChild);
|
$this->_priv_ImportModifiedChildren($oDelta, $oClasses, $this->oDOMDocument->firstChild);
|
||||||
//file_put_contents($sXMLDestPath, $oDelta->saveXML());
|
//file_put_contents($sXMLDestPath, $oDelta->saveXML());
|
||||||
return $oDelta->saveXML();
|
return $oDelta->saveXML();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user