summaryrefslogtreecommitdiff
path: root/source/com/c2kernel/lifecycle/WfVertexDef.java
diff options
context:
space:
mode:
Diffstat (limited to 'source/com/c2kernel/lifecycle/WfVertexDef.java')
-rw-r--r--source/com/c2kernel/lifecycle/WfVertexDef.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/com/c2kernel/lifecycle/WfVertexDef.java b/source/com/c2kernel/lifecycle/WfVertexDef.java
index 221f6ae..6a46bee 100644
--- a/source/com/c2kernel/lifecycle/WfVertexDef.java
+++ b/source/com/c2kernel/lifecycle/WfVertexDef.java
@@ -29,11 +29,11 @@ public abstract class WfVertexDef extends GraphableVertex
}
public abstract WfVertex instantiate() throws ObjectNotFoundException, InvalidDataException;
-
+
public void configureInstance(WfVertex newVertex) {
KeyValuePair[] k = getProperties().getKeyValuePairs();
- for (int i = 0; i < k.length; i++)
- newVertex.getProperties().put(k[i].getKey(), k[i].getValue());
+ for (KeyValuePair element : k)
+ newVertex.getProperties().put(element.getKey(), element.getValue());
newVertex.setID(getID());
if (getIsLayoutable()) {
newVertex.setInEdgeIds(getInEdgeIds());
@@ -42,17 +42,17 @@ public abstract class WfVertexDef extends GraphableVertex
newVertex.setOutlinePoints(getOutlinePoints());
}
}
-
+
/**
* Method verify.
- *
+ *
* @return boolean
*/
public abstract boolean verify();
/**
* Method getErrors.
- *
+ *
* @return String
*/
public String getErrors()
@@ -60,12 +60,12 @@ public abstract class WfVertexDef extends GraphableVertex
if (mErrors.size() == 0)
return "No error";
else
- return (String) mErrors.elementAt(0);
+ return mErrors.elementAt(0);
}
/**
* Method loop.
- *
+ *
* @return boolean
*/
public boolean loop()