diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2013-01-31 21:02:47 +0100 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2013-01-31 21:02:47 +0100 |
| commit | 9dbce79cb5798feb92c4862e694ceeb8799ba284 (patch) | |
| tree | c10e8c3fe3c0032051a0810a08eb0a742c0c9889 /src/main/java/com/c2kernel/events/History.java | |
| parent | 1047226fc3fe1bf42dced7c8afc2ccc6f441657a (diff) | |
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.
Diffstat (limited to 'src/main/java/com/c2kernel/events/History.java')
| -rw-r--r-- | src/main/java/com/c2kernel/events/History.java | 4 |
1 files changed, 4 insertions, 0 deletions
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<Event> { 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<Event> { 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<Event> { 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<Event> { newEvent.setStepName(stepName);
newEvent.setStepPath(stepPath);
newEvent.setStepType(stepType);
+ newEvent.setViewName(viewName);
newEvent.setCurrentState(stepCurrentState);
newEvent.setTimeString(timeString);
return storeNewEvent(newEvent);
|
