diff gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/fis/FISArtifact.java @ 325:3eff9241ea1e

Refactoring of the Transitionmodel. Now each Transition is responsible to allocate the Data which is required to describe or feed it. gnv-artifacts/trunk@390 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 01 Dec 2009 15:58:02 +0000
parents 3e82b4f1c455
children e964a3d8f7bc
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/fis/FISArtifact.java	Mon Nov 30 15:08:47 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/fis/FISArtifact.java	Tue Dec 01 15:58:02 2009 +0000
@@ -91,33 +91,14 @@
                         "action/hash/@value");
                 this.productArtifact = this.current.getArtifactFactory()
                         .createArtifact(uuid, context);
+                
                 Document feedDocument = xmlUtilities.reInitDocument(this
                         .createFeedProductArtifactDocument(uuid, hash));
                 log.debug("Feed ==> "
                           + this.xmlUtilities
                                   .writeDocument2String(feedDocument));
-                Document descibeDocument = xmlUtilities
-                        .reInitDocument(this.
-                                        productArtifact.
-                                        describe(xmlUtilities.
-                                                 reInitDocument(this.
-                                                 createDescribeRequestBody(uuid, 
-                                                                           hash, 
-                                                                           false)),
-                                                 context));
-                log.debug("Descibe ==> "
-                          + this.xmlUtilities
-                                  .writeDocument2String(descibeDocument));
                 this.productArtifact.feed(feedDocument, context);
-                String targetName = Config.getStringXPath(descibeDocument,
-                        "result/reachable-states/state/@name");
-                Document advanceDocument = xmlUtilities.reInitDocument(this
-                        .createAdvanceProductArtifactDocument(uuid, hash,
-                                targetName));
-                log.debug("Advance ==> "
-                          + this.xmlUtilities
-                                  .writeDocument2String(advanceDocument));
-                result = this.productArtifact.advance(advanceDocument, context);
+                result = ((GNVArtifactBase)this.productArtifact).initialize(context);
             } else {
                 String msg = "Artifact is not configured properly. Call feed first.";
                 log.error(msg);

http://dive4elements.wald.intevation.org