<%
if (selectedTCsText.length() == 0) {
selectedTCsText = OperationalPolicyConstants.DEFAULT_TC_NAME+name;
} else {
selectedTCsText = OperationalPolicyConstants.DEFAULT_TC_NAME+name+":"+selectedTCsText;
}
if (goalType.equalsIgnoreCase("GOAL_TYPE_DISCRETIONARY")) {
if ((description.length() == 0) && (selectedTCsText.length() == 0)) {%>
<%}
else if ((description.length() == 0) && (selectedTCsText.length() > 0)) {%>
<%}
else if ((description.length() > 0) && (selectedTCsText.length() == 0)) {%>
<%}
else {%>
<%}
}
else if (goalType.equalsIgnoreCase("GOAL_TYPE_AVG_RESPONSE_TIME")) {
String transImportance = messages.getMessage(locale,importance);
String transTime = messages.getMessage(locale,goalIntervalString);
if (description.length() == 0) { %>
<%}
else { %>
<%}
if (selectedTCsText.length() > 0) { %>
<% }
// if (Integer.parseInt(goalDeltaValue) > 0) {
if (violationEnabled.booleanValue()) {
String gdvUnitString = messages.getMessage(locale, goalDeltaValueUnit);
String tpvUnitString = messages.getMessage(locale, timePeriodValueUnit);
%>
<% } %>
<% }
else if (goalType.equalsIgnoreCase("GOAL_TYPE_QUEUETIME")) {
String transImportance = messages.getMessage(locale,importance);
String transTime = messages.getMessage(locale,goalIntervalString);
if (description.length() == 0) { %>
<%}
else { %>
<%}
if (selectedTCsText.length() > 0) { %>
<% }
// if (Integer.parseInt(goalDeltaValue) > 0) {
if (violationEnabled.booleanValue()) {
String gdvUnitString = messages.getMessage(locale, goalDeltaValueUnit);
String tpvUnitString = messages.getMessage(locale, timePeriodValueUnit);
%>
<% } %>
<% }
else if (goalType.equalsIgnoreCase("GOAL_TYPE_COMPLETIONTIME")) {
String transImportance = messages.getMessage(locale,importance);
String transTime = messages.getMessage(locale,goalIntervalString);
if (description.length() == 0) { %>
<%}
else { %>
<%}
if (selectedTCsText.length() > 0) { %>
<% }
// if (Integer.parseInt(goalDeltaValue) > 0) {
if (violationEnabled.booleanValue()) {
String gdvUnitString = messages.getMessage(locale, goalDeltaValueUnit);
String tpvUnitString = messages.getMessage(locale, timePeriodValueUnit);
%>
<% } %>
<% }
else if (goalType.equalsIgnoreCase("GOAL_TYPE_PCT_RESPONSE_TIME")) {
String transImportance = messages.getMessage(locale,importance);
String transTime = messages.getMessage(locale,goalIntervalString);
if ((description.length() == 0) && (selectedTCsText.length() == 0)) { %>
<%}
else if ((description.length() > 0) && (selectedTCsText.length() == 0)) { %>
<%}
else if ((description.length() == 0) && (selectedTCsText.length() > 0)) { %>
<%}
else { %>
<%}%>
<% // if (Integer.parseInt(goalDeltaPercent) > 0) {
if (violationEnabled.booleanValue()) {
String tpvUnitString = messages.getMessage(locale, timePeriodValueUnit);
%>
<% } %>
<%}%>
|