Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.reviews.r4e.report/src/org/eclipse/mylyn/reviews/r4e/report/internal/design/inspectionRecord.rptdesign')
-rw-r--r--org.eclipse.mylyn.reviews.r4e.report/src/org/eclipse/mylyn/reviews/r4e/report/internal/design/inspectionRecord.rptdesign84
1 files changed, 52 insertions, 32 deletions
diff --git a/org.eclipse.mylyn.reviews.r4e.report/src/org/eclipse/mylyn/reviews/r4e/report/internal/design/inspectionRecord.rptdesign b/org.eclipse.mylyn.reviews.r4e.report/src/org/eclipse/mylyn/reviews/r4e/report/internal/design/inspectionRecord.rptdesign
index 3574c186..2dd36093 100644
--- a/org.eclipse.mylyn.reviews.r4e.report/src/org/eclipse/mylyn/reviews/r4e/report/internal/design/inspectionRecord.rptdesign
+++ b/org.eclipse.mylyn.reviews.r4e.report/src/org/eclipse/mylyn/reviews/r4e/report/internal/design/inspectionRecord.rptdesign
@@ -2870,7 +2870,14 @@ Total.countDistinct ( row["xmi:id"] );</expression>
<property name="name">TotalPreparationTimeInHrs</property>
<expression name="expression">//Compute the total preparation time in hours &#13;
&#13;
-ret = Total.sum ( row["value"] ) / 60;</expression>
+//ret = Total.sum ( row["value"] ) / 60;&#13;
+ret = Total.sum ( row["value"] );&#13;
+&#13;
+if ( ret == null || ret == "" ) {&#13;
+ val = 0;&#13;
+} else {&#13;
+ val = ret / 60;&#13;
+ }</expression>
<property name="dataType">float</property>
</structure>
</list-property>
@@ -2923,30 +2930,30 @@ ret = Total.sum ( row["value"] ) / 60;</expression>
</structure>
</list-property>
<xml-property name="queryText"><![CDATA[table0#-TNAME-#table0#:#[//r4ecore:MapDateToDuration]#:#{xmi:id;STRING;@xmi:id},{key;STRING;@key},{value;STRING;@value}#:#<"ResTrans","http:%%org.eclipse.mylyn.reviews.r4e.model.transform%1.0";"xmi","http:%%www.omg.org%XMI";"r4ecore","http:%%org.eclipse.mylyn.reviews.r4e.core.model%";"xsi","http:%%www.w3.org%2001%XMLSchema-instance">]]></xml-property>
- <xml-property name="designerValues"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
-<model:DesignValues xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design" xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel">
- <Version>1.0</Version>
- <design:ResultSets derivedMetaData="true">
- <design:resultSetDefinitions>
- <design:resultSetColumns>
- <design:resultColumnDefinitions>
- <design:attributes>
- <design:name>href</design:name>
- <design:position>1</design:position>
- <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
- <design:precision>-1</design:precision>
- <design:scale>-1</design:scale>
- <design:nullability>Unknown</design:nullability>
- </design:attributes>
- <design:usageHints>
- <design:label>href</design:label>
- <design:formattingHints/>
- </design:usageHints>
- </design:resultColumnDefinitions>
- </design:resultSetColumns>
- <design:criteria/>
- </design:resultSetDefinitions>
- </design:ResultSets>
+ <xml-property name="designerValues"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
+<model:DesignValues xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design" xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel">
+ <Version>1.0</Version>
+ <design:ResultSets derivedMetaData="true">
+ <design:resultSetDefinitions>
+ <design:resultSetColumns>
+ <design:resultColumnDefinitions>
+ <design:attributes>
+ <design:name>href</design:name>
+ <design:position>1</design:position>
+ <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
+ <design:precision>-1</design:precision>
+ <design:scale>-1</design:scale>
+ <design:nullability>Unknown</design:nullability>
+ </design:attributes>
+ <design:usageHints>
+ <design:label>href</design:label>
+ <design:formattingHints/>
+ </design:usageHints>
+ </design:resultColumnDefinitions>
+ </design:resultSetColumns>
+ <design:criteria/>
+ </design:resultSetDefinitions>
+ </design:ResultSets>
</model:DesignValues>]]></xml-property>
<list-property name="privateDriverProperties">
<ex-property>
@@ -3451,7 +3458,10 @@ row["spentTime"] / 60</expression>
<expression name="expression">//Compute the Avg time per participant in DECISION PHASE&#13;
&#13;
&#13;
-Total.sum ( row["DecisionTimeInHrs"] )</expression>
+ret = Total.sum ( row["DecisionTimeInHrs"] )&#13;
+ if (ret == null ) {&#13;
+ ret = 0;&#13;
+ }</expression>
<property name="dataType">float</property>
</structure>
</list-property>
@@ -3462,6 +3472,11 @@ Total.sum ( row["DecisionTimeInHrs"] )</expression>
<text-property name="displayName">Comment Participant::xmi:id</text-property>
</structure>
<structure>
+ <property name="columnName">Comment Participant::GetOrganizer</property>
+ <property name="alias">GetOrganizer</property>
+ <text-property name="displayName">Comment Participant::GetOrganizer</text-property>
+ </structure>
+ <structure>
<property name="columnName">Comment Participant::CountParticipants</property>
<property name="alias">CountParticipants</property>
<text-property name="displayName">Comment Participant::CountParticipants</text-property>
@@ -3651,31 +3666,36 @@ Total.sum ( row["DecisionTimeInHrs"] )</expression>
</structure>
<structure>
<property name="position">18</property>
- <property name="name">DecisionTime::xmi:id</property>
+ <property name="name">GetOrganizer</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">19</property>
- <property name="name">value</property>
+ <property name="name">DecisionTime::xmi:id</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">20</property>
- <property name="name">spentTime</property>
+ <property name="name">value</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">21</property>
+ <property name="name">spentTime</property>
+ <property name="dataType">string</property>
+ </structure>
+ <structure>
+ <property name="position">22</property>
<property name="name">DecisionTimeInHrs</property>
<property name="dataType">float</property>
</structure>
<structure>
- <property name="position">22</property>
+ <property name="position">23</property>
<property name="name">DecisonTimeTotalReviewEffort</property>
<property name="dataType">float</property>
</structure>
<structure>
- <property name="position">23</property>
+ <property name="position">24</property>
<property name="name">AvgDecisionTime</property>
<property name="dataType">float</property>
</structure>
@@ -4910,7 +4930,7 @@ ret = totalPrepTime + totalDecisionTime;</expression>
totalTime = Total.max ( row["DecisionTimeInHrs"] );&#13;
&#13;
//Compute the ratio&#13;
-if ( totalTime == 0) {&#13;
+if ( totalTime == null || totalTime == 0) {&#13;
value = 0;&#13;
} else {&#13;
value = totalAno / totalTime;&#13;

Back to the top