comparison artifacts/src/main/java/org/dive4elements/river/artifacts/D4EArtifact.java @ 8979:951a4af24a09

Fixed: 'error_no_export_found' after changing calculation mode in SINFO.
author gernotbelger
date Thu, 05 Apr 2018 17:12:23 +0200
parents 5e38e2924c07
children c5a496bf1b0b
comparison
equal deleted inserted replaced
8978:b5600453bb8f 8979:951a4af24a09
1012 } 1012 }
1013 log.debug("Facet: " + facet.getName()); 1013 log.debug("Facet: " + facet.getName());
1014 log.debug("Bound to out: " + getBoundToOut()); 1014 log.debug("Bound to out: " + getBoundToOut());
1015 log.debug("OutName: " + outName); 1015 log.debug("OutName: " + outName);
1016 1016
1017 // REMARK: look for facets of the current state
1018 final List<Facet> currentFacets = facets.get(getCurrentStateId());
1019 if( currentFacets != null ) {
1020 for (Facet f: currentFacets) {
1021 if (f.getIndex() == index && f.getName().equals(name))
1022 return f;
1023 }
1024 }
1025
1026 // REMARK: this is old code, we should never get here actually.
1027 // This posed leads to a problem when the user changes the calculation-mode after one calculation was executed.
1028 // If both (new and old) calculations contained the same output-facet, it could happen that an old facet was executed
1029 // with the calculation results of the new calculation.
1017 for (List<Facet> fs: facets.values()) { 1030 for (List<Facet> fs: facets.values()) {
1018 for (Facet f: fs) { 1031 for (Facet f: fs) {
1019 if (f.getIndex() == index && f.getName().equals(name)) { 1032 if (f.getIndex() == index && f.getName().equals(name)) {
1020 return f; 1033 return f;
1021 } 1034 }

http://dive4elements.wald.intevation.org