Ticket bizmodel,searchable,changemgmt true autoincrement change id %1$s images/change.png approved assigned closed implemented monitored new notapproved plannedscheduled rejected validated status new true reason true org_id]]> requestor_id Person true DEL_MANUAL requestor_id email true creation_date true impact true supervisor_group_id Team true DEL_MANUAL supervisor_group_id name true supervisor_group_id]]> supervisor_id Person true DEL_MANUAL supervisor_id email true manager_group_id Team true DEL_MANUAL manager_group_id name true manager_group_id]]> manager_id Person true DEL_MANUAL manager_id email true yes no outage no false fallback true id]]> parent_id Change true DEL_MANUAL parent_id ref true UserRequest parent_change_id none 0 0 Incident parent_change_id none 0 0 Problem related_change_id none 0 0 Change parent_id none 0 0 status false public StimulusUserAction Set('close_date', time()); return true; }]]> false public LifecycleAction Set('reason', ''); return true; }]]> false protected Overload-DBObject Get('contacts_list'); $oToImpact = $this->Get('functionalcis_list'); $oImpactedInfras = DBObjectSet::FromLinkSet($this, 'functionalcis_list', 'functionalci_id'); $aComputed = $oImpactedInfras->GetRelatedObjects('impacts', 10); if (isset($aComputed['FunctionalCI']) && is_array($aComputed['FunctionalCI'])) { foreach($aComputed['FunctionalCI'] as $iKey => $oObject) { $oNewLink = new lnkFunctionalCIToTicket(); $oNewLink->Set('functionalci_id', $iKey); $oToImpact->AddObject($oNewLink); } } if (isset($aComputed['Contact']) && is_array($aComputed['Contact'])) { foreach($aComputed['Contact'] as $iKey => $oObject) { $oNewLink = new lnkContactToTicket(); $oNewLink->Set('contact_id', $iKey); $oNewLink->Set('role', 'contact automatically computed'); $oToNotify->AddObject($oNewLink); } } $this->Set('creation_date', time()); $this->Set('last_update', time()); }]]> false protected Overload-DBObject Set('last_update', time()); }]]> false public Overload-DBObject Get('ref'); if (strlen($sCurrRef) == 0) { $iKey = $this->GetKey(); if ($iKey < 0) { // Object not yet in the Database $iKey = MetaModel::GetNextKey(get_class($this)); } $sName = sprintf('C-%06d', $iKey); $this->Set('ref', $sName); } }]]> /** * Get the icon representing this object * @param boolean $bImgTag If true the result is a full IMG tag (or an emtpy string if no icon is defined) * @return string Either the full IMG tag ($bImgTag == true) or just the path to the icon file */ false public Overload-DBObject Get('status'); switch($this->GetState()) { case 'approved': case 'implemented': case 'monitored': $sIcon = self::MakeIconFromName('change-approved.png'); break; case 'rejected': case 'notapproved': $sIcon = self::MakeIconFromName('change-rejected.png'); break; case 'closed': $sIcon = self::MakeIconFromName('change-closed.png'); break; default: $sIcon = MetaModel::GetClassIcon(get_class($this), $bImgTag); } return $sIcon; }]]> true protected Overload-DBObject "; } else { $sIcon = $sPath; } } return $sIcon; }]]>
10 20 30 40 50 60 70 80 10 10 20 30 40 50 20 10 20 30 40 50 60 70 90 10 10 20 30 40 20 10 100 10 10 20 30 40 50
10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 10 20 30 40 50 60 70
Change bizmodel,searchable,changemgmt false autoincrement change_routine id %1$s images/change.png status ev_assign assigned ev_plan plannedscheduled ev_implement implemented ev_monitor monitored ev_finish closed SetClosureDate ev_finish closed SetClosureDate
10 20 30 40 50 60 70 80 10 10 20 30 40 50 20 10 20 30 40 50 60 70 90 10 10 20 30 40 20 10 100 10 10 20 30 40 50
10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 10 20 30 40 50 60 70
Change bizmodel,searchable,changemgmt true autoincrement change_approved id %1$s images/change.png approval_date true approval_comment true status
10 20 30 40 50 60 70 80 10 10 20 30 40 50 60 20 10 20 30 40 50 60 70 90 10 10 20 30 40 20 10 100 10 10 20 30 40 50 60
10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 10 20 30 40 50 60 70
ApprovedChange bizmodel,searchable,changemgmt false autoincrement change_normal id %1$s images/change.png acceptance_date true acceptance_comment true status ev_validate validated ResetRejectReason ev_reject rejected ev_assign assigned ev_reopen new ev_plan plannedscheduled ev_approve approved ResetRejectReason ev_notapprove notapproved ev_implement implemented ev_replan plannedscheduled ev_monitor monitored ev_finish closed SetClosureDate ev_finish closed SetClosureDate
10 20 30 40 50 60 70 80 10 10 20 30 40 50 60 70 20 10 20 30 40 50 60 70 90 10 10 20 30 40 20 10 100 10 10 20 30 40 50 60 70
10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 10 20 30 40 50 60 70
ApprovedChange bizmodel,searchable,changemgmt false autoincrement change_emergency id %1$s images/change.png status ev_assign assigned ev_plan plannedscheduled ev_approve approved ResetRejectReason ev_notapprove notapproved ev_implement implemented ev_replan plannedscheduled ev_monitor monitored ev_finish closed SetClosureDate ev_finish closed SetClosureDate
10 20 30 40 50 60 70 80 10 10 20 30 40 50 60 20 10 20 30 40 50 60 70 90 10 10 20 30 40 20 10 100 10 10 20 30 40 50 60
10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 10 20 30 40 50 60 70
50 0 ChangeManagement overview.xml 1 ChangeManagement Change 2 ChangeManagement Change 3 ChangeManagement 1 Change:Shortcuts fast 2 Change:Shortcuts 1 fast 3 Change:Shortcuts fast 4 Change:Shortcuts fast