From 53040641471c131f759c932167bed79040c806c5 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Thu, 6 Mar 2014 16:30:41 +0100 Subject: 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 --- src/main/java/com/c2kernel/utils/ActDefCache.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 { } 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(), ""); -- cgit v1.2.3