Mercurial > dive4elements > river
changeset 4519:3e1810e72199
Add report facet if calculation had problems.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 14 Nov 2012 17:11:56 +0100 |
parents | 2eabb5aa0bb6 |
children | 0b330ed218f6 |
files | flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/minfo/SedimentLoadCalculate.java |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/minfo/SedimentLoadCalculate.java Wed Nov 14 17:10:24 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/minfo/SedimentLoadCalculate.java Wed Nov 14 17:11:56 2012 +0100 @@ -13,6 +13,7 @@ import de.intevation.flys.artifacts.model.CalculationResult; import de.intevation.flys.artifacts.model.DataFacet; import de.intevation.flys.artifacts.model.FacetTypes; +import de.intevation.flys.artifacts.model.ReportFacet; import de.intevation.flys.artifacts.model.minfo.SedimentLoadCalculation; import de.intevation.flys.artifacts.model.minfo.SedimentLoadFacet; import de.intevation.flys.artifacts.model.minfo.SedimentLoadResult; @@ -72,7 +73,9 @@ generateOffEpochFacets(context, newFacets, results, getID(), hash); } logger.debug("Created " + newFacets.size() + " new Facets."); - + if (res.getReport().hasProblems()) { + newFacets.add(new ReportFacet(ComputeType.ADVANCE, hash, id)); + } facets.addAll(newFacets); return res;