]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/process/SlcExecution.java
Start working on serialized JMS
[gpl/argeo-slc.git] / runtime / org.argeo.slc.specs / src / main / java / org / argeo / slc / process / SlcExecution.java
index 7a81facf612b1c6529ef8a2fdd825d4c9057ef17..18d02a3bca0ba724a15bb915ae44578c172b55a9 100644 (file)
@@ -1,3 +1,19 @@
+/*\r
+ * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *         http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
 package org.argeo.slc.process;\r
 \r
 import java.io.Serializable;\r
@@ -8,7 +24,7 @@ import java.util.Map;
 import java.util.TreeMap;\r
 \r
 public class SlcExecution implements Serializable {\r
-       private static final long serialVersionUID = 1L;\r
+       private static final long serialVersionUID = -7607457971382118466L;\r
        public final static String STATUS_NONE = "DEFAULT";\r
        public final static String STATUS_SCHEDULED = "SCHEDULED";\r
        public final static String STATUS_RUNNING = "RUNNING";\r
@@ -29,6 +45,9 @@ public class SlcExecution implements Serializable {
        private List<SlcExecutionStep> steps = new ArrayList<SlcExecutionStep>();\r
        private List<RealizedFlow> realizedFlows = new ArrayList<RealizedFlow>();\r
 \r
+       /** Attachment uuid. */\r
+       private String realizedFlowsXml = null;\r
+\r
        public List<RealizedFlow> getRealizedFlows() {\r
                return realizedFlows;\r
        }\r
@@ -128,7 +147,7 @@ public class SlcExecution implements Serializable {
                        if (steps.size() == 0)\r
                                return null;\r
                        else\r
-                               return steps.get(0).getBegin();\r
+                               return steps.get(0).getTimestamp();\r
                }\r
        }\r
 \r
@@ -140,7 +159,22 @@ public class SlcExecution implements Serializable {
                        if (steps.size() == 0)\r
                                return null;\r
                        else\r
-                               return steps.get(steps.size() - 1).getBegin();\r
+                               return steps.get(steps.size() - 1).getTimestamp();\r
                }\r
        }\r
+\r
+       /**\r
+        * Not (yet) a stable API, should not be relied upon!\r
+        * \r
+        * @return an id or an url allowing to retrieve the XML, not the XML itself!\r
+        */\r
+       public String getRealizedFlowsXml() {\r
+               return realizedFlowsXml;\r
+       }\r
+\r
+       /** Not (yet) a stable API, should not be relied upon! */\r
+       public void setRealizedFlowsXml(String realizedFlowsXml) {\r
+               this.realizedFlowsXml = realizedFlowsXml;\r
+       }\r
+\r
 }\r