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