package gw.rating.flow uses gw.api.locale.DisplayKey @ReadOnly enhancement CalcStepDefinitionUIEnhancement : CalcStepDefinition { property get StepTypeForDisplay(): String { return this.StepType == TC_LOOP ? this.StepType.DisplayName + " (" + this.StoreLocation + ")" : this.StepType.DisplayName } function indentValue(value: String, indentLevelMap: Map): String { if (value == null) return "" var indent = indentLevelMap.get(this) if (indent == null) { throw new IllegalStateException("row was not in rateRoutine's list of steps!") } return indent > 4 ? DisplayKey.get("Web.Rating.Flow.CalcRoutine.IndentationLevelFive", value) : (indent > 3) ? DisplayKey.get("Web.Rating.Flow.CalcRoutine.IndentationLevelFour", value) : (indent > 2) ? DisplayKey.get("Web.Rating.Flow.CalcRoutine.IndentationLevelThree", value) : (indent > 1) ? DisplayKey.get("Web.Rating.Flow.CalcRoutine.IndentationLevelTwo", value) : (indent > 0) ? DisplayKey.get("Web.Rating.Flow.CalcRoutine.IndentationLevelOne", value) : value } }