N°653 Lifecycle flags can be defined on both states and transitions (Note: This is a beta version and need to be tested!)

SVN:trunk[4688]
This commit is contained in:
Guillaume Lajarige
2017-04-21 14:59:04 +00:00
parent 2e8c629195
commit 2fcf50bb88
6 changed files with 190 additions and 31 deletions

View File

@@ -1,5 +1,5 @@
<?php
// Copyright (C) 2014-2016 Combodo SARL
// Copyright (C) 2014-2017 Combodo SARL
//
// This file is part of iTop.
//
@@ -574,6 +574,16 @@ class iTopDesignFormat
{
$this->LogWarning('The attribute _delta="force" is not supported, converted to _delta="define" ('.$iCount.' instances processed).');
}
// Remove attribute flags on transitions
//
$oNodeList = $oXPath->query("/itop_design/classes//class/lifecycle/states/state/transitions/transition/flags");
$this->LogWarning('Before removing flags nodes');
foreach ($oNodeList as $oNode)
{
$this->LogWarning('Attribute flags '.self::GetItopNodePath($oNode).' is irrelevant on transition and must be removed.');
$this->DeleteNode($oNode);
}
}