diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2013-10-27 21:06:45 +0100 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2013-10-27 21:06:45 +0100 |
| commit | 79bdf4aa01fb9ca991de032733919923a19192c8 (patch) | |
| tree | 3804d7f5b9fc2858bb27f7649d46f275613afd41 /src/main/java/com/c2kernel/lifecycle/ActivitySlotDef.java | |
| parent | 30cd736670a579985890d8c2dfe363bacbad7568 (diff) | |
3.0-SNAPSHOT
Do Integer.parseInt(propObj.toString()) to tolerate String or Integer
version properties.
Diffstat (limited to 'src/main/java/com/c2kernel/lifecycle/ActivitySlotDef.java')
| -rw-r--r-- | src/main/java/com/c2kernel/lifecycle/ActivitySlotDef.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/main/java/com/c2kernel/lifecycle/ActivitySlotDef.java b/src/main/java/com/c2kernel/lifecycle/ActivitySlotDef.java index 9a3819b..514dc72 100644 --- a/src/main/java/com/c2kernel/lifecycle/ActivitySlotDef.java +++ b/src/main/java/com/c2kernel/lifecycle/ActivitySlotDef.java @@ -44,7 +44,7 @@ public class ActivitySlotDef extends WfVertexDef public ActivityDef getTheActivityDef() throws ObjectNotFoundException, InvalidDataException
{
- ActivityDef actDef = LocalObjectLoader.getActDef(getActivityDef(), getActVersion());
+ ActivityDef actDef = LocalObjectLoader.getActDef(getActivityDef(), getVersionNumberProperty("Version"));
if (actDef instanceof CompositeActivityDef)
mIsComposite = true;
return actDef;
@@ -142,14 +142,6 @@ public class ActivitySlotDef extends WfVertexDef {
return (String) getProperties().get("Name");
}
- public int getActVersion() throws InvalidDataException
- {
- Object verObj = getProperties().get("Version");
- if (verObj instanceof Integer)
- return (Integer)verObj;
- else
- throw new InvalidDataException("Version string was not an integer", "");
- }
@Override
public WfVertex instantiate() throws ObjectNotFoundException, InvalidDataException {
|
