summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2013-07-24 16:28:10 +0200
committerAndrew Branson <andrew.branson@cern.ch>2013-07-24 16:28:10 +0200
commit2f54a2ed3e37cbb6af7a14829fe3fb17502cb6ab (patch)
tree040a63bda4da7b0cc5e6bdacbaee9ff5f776ca52
parent5f2380a46e6ec8e571abb2248abd90395dd7be70 (diff)
SchemaVersion is actually a string property. Probably shouldn't be
though.
-rw-r--r--src/main/java/com/c2kernel/lifecycle/instance/Activity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/c2kernel/lifecycle/instance/Activity.java b/src/main/java/com/c2kernel/lifecycle/instance/Activity.java
index b67b472..2384dc3 100644
--- a/src/main/java/com/c2kernel/lifecycle/instance/Activity.java
+++ b/src/main/java/com/c2kernel/lifecycle/instance/Activity.java
@@ -526,8 +526,8 @@ public class Activity extends WfVertex
hist = (History) Gateway.getStorage().get(entityPath.getSysKey(), ClusterStorage.HISTORY, this);
if (hasOutcome) {
String schemaName = isError?"Errors":(String)getProperties().get("SchemaType");
- Integer schemaVersion = isError?0:(Integer)getProperties().get("SchemaVersion");
- event = hist.addEvent(agent.getAgentName(), getCurrentAgentRole(), transitionID, getName(), getPath(), getType(), schemaName, schemaVersion, viewName, getCurrentState());
+ String schemaVersion = isError?"0":(String)getProperties().get("SchemaVersion");
+ event = hist.addEvent(agent.getAgentName(), getCurrentAgentRole(), transitionID, getName(), getPath(), getType(), schemaName, Integer.valueOf(schemaVersion), viewName, getCurrentState());
}
else
event = hist.addEvent(agent.getAgentName(), getCurrentAgentRole(), transitionID, getName(), getPath(), getType(), getCurrentState());