From 9dbce79cb5798feb92c4862e694ceeb8799ba284 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Thu, 31 Jan 2013 21:02:47 +0100 Subject: Added ViewName field to Event. Filled in with the Viewpoint name if specified in the Activity properties, making it possible to derive previous states of the Viewpoint. Closes #96 Cleanup outcome storing code. Throw an exception if SchemaType filled in and outcome is empty. --- src/main/java/com/c2kernel/events/History.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/com/c2kernel/events/History.java') diff --git a/src/main/java/com/c2kernel/events/History.java b/src/main/java/com/c2kernel/events/History.java index 868eaea..88f5460 100644 --- a/src/main/java/com/c2kernel/events/History.java +++ b/src/main/java/com/c2kernel/events/History.java @@ -28,6 +28,7 @@ public class History extends RemoteMap { String stepName, String stepPath, String stepType, + String viewName, int stepCurrentState) { Logger.msg(7, "History.addEvent() - creating new event for "+stepTransitionId+" on "+stepName+" in "+mSysKey); Event newEvent = new Event(); @@ -38,6 +39,7 @@ public class History extends RemoteMap { newEvent.setStepName(stepName); newEvent.setStepPath(stepPath); newEvent.setStepType(stepType); + newEvent.setViewName(viewName); newEvent.setCurrentState(stepCurrentState); newEvent.setTimeStamp(Event.getGMT()); return storeNewEvent(newEvent); @@ -48,6 +50,7 @@ public class History extends RemoteMap { String stepName, String stepPath, String stepType, + String viewName, int stepCurrentState, String timeString) throws Exception { Logger.msg(7, "History.addEvent() - creating new event for "+stepTransitionId+" on "+stepName+" in "+mSysKey); @@ -59,6 +62,7 @@ public class History extends RemoteMap { newEvent.setStepName(stepName); newEvent.setStepPath(stepPath); newEvent.setStepType(stepType); + newEvent.setViewName(viewName); newEvent.setCurrentState(stepCurrentState); newEvent.setTimeString(timeString); return storeNewEvent(newEvent); -- cgit v1.2.3