diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2014-03-06 16:30:41 +0100 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2014-03-06 16:30:41 +0100 |
| commit | 53040641471c131f759c932167bed79040c806c5 (patch) | |
| tree | 008cd18c7e097e3e8a0f373dbfef0afff1225f10 | |
| parent | 696ec0bc6f005ea75db10cff9eded999456e47f2 (diff) | |
ActivityDefs loaded from ActDefCache get a 'Version' property set with
their Viewpoint name so the resulting Activity's version will be set
correctly. Refs #168
| -rw-r--r-- | src/main/java/com/c2kernel/utils/ActDefCache.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/c2kernel/utils/ActDefCache.java b/src/main/java/com/c2kernel/utils/ActDefCache.java index ab2bd90..66695f5 100644 --- a/src/main/java/com/c2kernel/utils/ActDefCache.java +++ b/src/main/java/com/c2kernel/utils/ActDefCache.java @@ -34,6 +34,7 @@ public class ActDefCache extends DescriptionObjectCache<ActivityDef> { }
try {
thisActDef = (ActivityDef)Gateway.getMarshaller().unmarshall(marshalledAct);
+ thisActDef.getProperties().put("Version", version);
} catch (Exception ex) {
Logger.error(ex);
throw new InvalidDataException("Could not unmarshall '"+name+"' v"+version+": "+ex.getMessage(), "");
|
