Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java @ 59:2c5d8f5bced1
Outputs integrated in describe and XForms integrated
gnv-artifacts/trunk@41 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 08 Sep 2009 16:21:46 +0000 |
parents | f31343d80d53 |
children | 5f47881f7c97 |
comparison
equal
deleted
inserted
replaced
58:f31343d80d53 | 59:2c5d8f5bced1 |
---|---|
88 Transition nextStep = this.transitions.get(transitionName); | 88 Transition nextStep = this.transitions.get(transitionName); |
89 // 2.Ergebnisse Berechnen | 89 // 2.Ergebnisse Berechnen |
90 this.current.advance(); | 90 this.current.advance(); |
91 // 3. Ergebnisse übergeben | 91 // 3. Ergebnisse übergeben |
92 nextStep.setDescibeData(this.current.getDescibeData()); | 92 nextStep.setDescibeData(this.current.getDescibeData()); |
93 nextStep.putInputData(this.current.getInputData()); | |
93 // 4. Umschalten auf neue Transistion | 94 // 4. Umschalten auf neue Transistion |
94 this.current = nextStep; | 95 this.current = nextStep; |
95 } catch (TransitionException e) { | 96 } catch (TransitionException e) { |
96 log.error(e,e); | 97 log.error(e,e); |
97 // TODO: Errormmessage senden. | 98 // TODO: Errormmessage senden. |
174 protected Document createDescibeOutput(){ | 175 protected Document createDescibeOutput(){ |
175 log.debug("GNVArtifactBase.createDescibeOutput"); | 176 log.debug("GNVArtifactBase.createDescibeOutput"); |
176 Document document = super.newDocument(); | 177 Document document = super.newDocument(); |
177 Element rootNode = this.createRootNode(document); | 178 Element rootNode = this.createRootNode(document); |
178 this.createHeader(rootNode, document, "describe"); | 179 this.createHeader(rootNode, document, "describe"); |
180 this.createOutputs(rootNode, document); | |
179 this.createCurrentState(rootNode, document); | 181 this.createCurrentState(rootNode, document); |
180 this.createReachableStates(rootNode, document); | 182 this.createReachableStates(rootNode, document); |
181 this.createModel(rootNode, document); | 183 this.createModel(rootNode, document); |
182 this.createUserInterface(rootNode, document); | 184 this.createUserInterface(rootNode, document); |
183 | 185 |
255 } | 257 } |
256 | 258 |
257 protected void createOutputs(Element parent, Document document){ | 259 protected void createOutputs(Element parent, Document document){ |
258 Element outputsNode = createElement(document,"outputs"); | 260 Element outputsNode = createElement(document,"outputs"); |
259 | 261 |
260 // TODO mit leben füllen. | 262 if (this.current != null){ |
263 this.current.describe(document, outputsNode); | |
264 } | |
261 | 265 |
262 parent.appendChild(outputsNode); | 266 parent.appendChild(outputsNode); |
263 } | 267 } |
264 | 268 |
265 /** | 269 /** |
286 returnValue.add(inputData); | 290 returnValue.add(inputData); |
287 } | 291 } |
288 } | 292 } |
289 return returnValue; | 293 return returnValue; |
290 } | 294 } |
291 | |
292 | |
293 } | 295 } |