#1022 Do cascade the resolution of an incident to its child requests + rework of the lifecycle/actions to ease the extensibility (New handlers: Rest, Copy, SetCurrentDate, SetCurrentUser, SetElapsedTime)

SVN:trunk[3423]
This commit is contained in:
Romain Quetiez
2014-11-19 09:44:52 +00:00
parent ca90f9b32a
commit f4b10d3e81
13 changed files with 802 additions and 104 deletions

View File

@@ -902,6 +902,10 @@
</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>
@@ -912,6 +916,10 @@
}]]></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>
@@ -1679,7 +1687,10 @@
<target>closed</target>
<actions>
<action>
<verb>SetClosureDate</verb>
<verb>SetCurrentDate</verb>
<params>
<param xsi:type="string">close_date</param>
</params>
</action>
</actions>
</transition>
@@ -1713,7 +1724,10 @@
<target>closed</target>
<actions>
<action>
<verb>SetClosureDate</verb>
<verb>SetCurrentDate</verb>
<params>
<param xsi:type="string">close_date</param>
</params>
</action>
</actions>
</transition>
@@ -3099,7 +3113,10 @@
<target>validated</target>
<actions>
<action>
<verb>ResetRejectReason</verb>
<verb>Reset</verb>
<params>
<param xsi:type="string">reason</param>
</params>
</action>
</actions>
</transition>
@@ -3236,7 +3253,10 @@
<target>approved</target>
<actions>
<action>
<verb>ResetRejectReason</verb>
<verb>Reset</verb>
<params>
<param xsi:type="string">reason</param>
</params>
</action>
</actions>
</transition>
@@ -3336,7 +3356,10 @@
<target>closed</target>
<actions>
<action>
<verb>SetClosureDate</verb>
<verb>SetCurrentDate</verb>
<params>
<param xsi:type="string">close_date</param>
</params>
</action>
</actions>
</transition>
@@ -3369,7 +3392,10 @@
<target>closed</target>
<actions>
<action>
<verb>SetClosureDate</verb>
<verb>SetCurrentDate</verb>
<params>
<param xsi:type="string">close_date</param>
</params>
</action>
</actions>
</transition>
@@ -3985,7 +4011,10 @@
<target>approved</target>
<actions>
<action>
<verb>ResetRejectReason</verb>
<verb>Reset</verb>
<params>
<param xsi:type="string">reason</param>
</params>
</action>
</actions>
</transition>
@@ -4085,7 +4114,10 @@
<target>closed</target>
<actions>
<action>
<verb>SetClosureDate</verb>
<verb>SetCurrentDate</verb>
<params>
<param xsi:type="string">close_date</param>
</params>
</action>
</actions>
</transition>
@@ -4119,7 +4151,10 @@
<target>closed</target>
<actions>
<action>
<verb>SetClosureDate</verb>
<verb>SetCurrentDate</verb>
<params>
<param xsi:type="string">close_date</param>
</params>
</action>
</actions>
</transition>