craigmcc 01/08/21 18:01:50
Modified: workflow/src/java/org/apache/commons/workflow Activity.java
workflow/src/java/org/apache/commons/workflow/base
BaseActivity.java
Log:
Add an "id" property to activites.
Revision Changes Path
1.3 +18 -4
jakarta-commons-sandbox/workflow/src/java/org/apache/commons/workflow/Activity.java
Index: Activity.java
===================================================================
RCS file:
/home/cvs/jakarta-commons-sandbox/workflow/src/java/org/apache/commons/workflow/Activity.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Activity.java 2001/08/13 23:15:23 1.2
+++ Activity.java 2001/08/22 01:01:49 1.3
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-commons-sandbox/workflow/src/java/org/apache/commons/workflow/Activity.java,v
1.2 2001/08/13 23:15:23 craigmcc Exp $
- * $Revision: 1.2 $
- * $Date: 2001/08/13 23:15:23 $
+ * $Header:
/home/cvs/jakarta-commons-sandbox/workflow/src/java/org/apache/commons/workflow/Activity.java,v
1.3 2001/08/22 01:01:49 craigmcc Exp $
+ * $Revision: 1.3 $
+ * $Date: 2001/08/22 01:01:49 $
*
* ====================================================================
*
@@ -69,7 +69,7 @@
* within the <code>execute()</code> method of a <code>Context</code> that
* is utilizing this <code>Activity</code> definition.</p>
*
- * @version $Revision: 1.2 $ $Date: 2001/08/13 23:15:23 $
+ * @version $Revision: 1.3 $ $Date: 2001/08/22 01:01:49 $
* @author Craig R. McClanahan
*/
@@ -83,6 +83,20 @@
* Return the first Step associated with this Activity.
*/
public Step getFirstStep();
+
+
+ /**
+ * Return the unique identifier (within this Activity) of this Step.
+ */
+ public String getId();
+
+
+ /**
+ * Set the unique identifier (within this Activity) of this Step.
+ *
+ * @param id The new unique identifier
+ */
+ public void setId(String id);
/**
1.4 +32 -4
jakarta-commons-sandbox/workflow/src/java/org/apache/commons/workflow/base/BaseActivity.java
Index: BaseActivity.java
===================================================================
RCS file:
/home/cvs/jakarta-commons-sandbox/workflow/src/java/org/apache/commons/workflow/base/BaseActivity.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- BaseActivity.java 2001/08/17 20:37:00 1.3
+++ BaseActivity.java 2001/08/22 01:01:49 1.4
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-commons-sandbox/workflow/src/java/org/apache/commons/workflow/base/BaseActivity.java,v
1.3 2001/08/17 20:37:00 craigmcc Exp $
- * $Revision: 1.3 $
- * $Date: 2001/08/17 20:37:00 $
+ * $Header:
/home/cvs/jakarta-commons-sandbox/workflow/src/java/org/apache/commons/workflow/base/BaseActivity.java,v
1.4 2001/08/22 01:01:49 craigmcc Exp $
+ * $Revision: 1.4 $
+ * $Date: 2001/08/22 01:01:49 $
*
* ====================================================================
*
@@ -73,7 +73,7 @@
* management of the static relationships of Steps to each other as part
* of an owning Activity.</p>
*
- * @version $Revision: 1.3 $ $Date: 2001/08/17 20:37:00 $
+ * @version $Revision: 1.4 $ $Date: 2001/08/22 01:01:49 $
* @author Craig R. McClanahan
*/
@@ -90,6 +90,12 @@
/**
+ * The unique identifier of this Activity.
+ */
+ protected String id = null;
+
+
+ /**
* The last Step associated with this Activity.
*/
protected Step lastStep = null;
@@ -104,6 +110,28 @@
public Step getFirstStep() {
return (this.firstStep);
+
+ }
+
+
+ /**
+ * Return the unique identifier of this Activity.
+ */
+ public String getId() {
+
+ return (this.id);
+
+ }
+
+
+ /**
+ * Set the unique identifier of this Activity.
+ *
+ * @param id The new unique identifier
+ */
+ public void setId(String id) {
+
+ this.id = id;
}