# HG changeset patch # User Raimund Renkert # Date 1352909516 -3600 # Node ID 3e1810e7219912912ac4c6e7865631004cde3d16 # Parent 2eabb5aa0bb6cfe357cf81c47e312f81b528c04e Add report facet if calculation had problems. diff -r 2eabb5aa0bb6 -r 3e1810e72199 flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/minfo/SedimentLoadCalculate.java --- 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;