comparison gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java @ 461:3ddc22aab764

Removed Encodingerrors from listed Files. All Files are now UTF-8 compliant. ISSUE137 gnv-artifacts/trunk@515 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 08 Jan 2010 14:27:49 +0000
parents 2f7a28f211c7
children 70df44021a9f
comparison
equal deleted inserted replaced
460:bdbca6022cf5 461:3ddc22aab764
108 log.debug("Statename: " + stateName); 108 log.debug("Statename: " + stateName);
109 if (this.isStateCurrentlyReachable(stateName)) { 109 if (this.isStateCurrentlyReachable(stateName)) {
110 try { 110 try {
111 State nextStep = this.states 111 State nextStep = this.states
112 .get(stateName); 112 .get(stateName);
113 // 1.Ergebnisse Berechnen 113 // 1.Calculate Results
114 this.current.advance(super.identifier, context.getMeta()); 114 this.current.advance(super.identifier, context.getMeta());
115 // 2. Ergebnisse Übergeben 115 // 2. Transfer Results
116 nextStep.putInputData(this.current.getInputData(), 116 nextStep.putInputData(this.current.getInputData(),
117 super.identifier); 117 super.identifier);
118 // 3. Umschalten auf neue Transistion 118 // 3. Switch to next State
119 this.current = nextStep; 119 this.current = nextStep;
120 120
121 // 4. Initialisieren des nächsten Schrittes == Laden der Daten 121 // 4. Initialize next Step
122 this.current.initialize(super.identifier, context.getMeta()); 122 this.current.initialize(super.identifier, context.getMeta());
123 123
124 result = new ArtifactXMLUtilities() 124 result = new ArtifactXMLUtilities()
125 .createSuccessReport("Advance success", 125 .createSuccessReport("Advance success",
126 XMLUtils.newDocument()); 126 XMLUtils.newDocument());
130 .createExceptionReport(e 130 .createExceptionReport(e
131 .getLocalizedMessage(), XMLUtils 131 .getLocalizedMessage(), XMLUtils
132 .newDocument()); 132 .newDocument());
133 } 133 }
134 } else { 134 } else {
135 String msg = "Transitionsübergang wird nicht unterstützt."; 135 String msg = "Statetransition is not supported";
136 log.error(msg); 136 log.error(msg);
137 result = new ArtifactXMLUtilities().createExceptionReport( 137 result = new ArtifactXMLUtilities().createExceptionReport(
138 msg, XMLUtils.newDocument()); 138 msg, XMLUtils.newDocument());
139 } 139 }
140 } else { 140 } else {
141 String msg = "Kein State aktiviert."; 141 String msg = "No State activated.";
142 log.error(msg); 142 log.error(msg);
143 result = new ArtifactXMLUtilities().createExceptionReport(msg, 143 result = new ArtifactXMLUtilities().createExceptionReport(msg,
144 XMLUtils.newDocument()); 144 XMLUtils.newDocument());
145 } 145 }
146 } catch (Exception e) { 146 } catch (Exception e) {

http://dive4elements.wald.intevation.org