[jboss-cvs] jboss-seam/src/main/org/jboss/seam/bpm ...
Gavin King
gavin.king at jboss.com
Sat Aug 4 14:46:57 EDT 2007
User: gavin
Date: 07/08/04 14:46:57
Modified: src/main/org/jboss/seam/bpm PooledTask.java
Log:
pooledTask.unassign
Revision Changes Path
1.4 +23 -0 jboss-seam/src/main/org/jboss/seam/bpm/PooledTask.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PooledTask.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/bpm/PooledTask.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- PooledTask.java 19 Jun 2007 20:31:31 -0000 1.3
+++ PooledTask.java 4 Aug 2007 18:46:57 -0000 1.4
@@ -74,6 +74,29 @@
}
/**
+ * Unassign the TaskInstance with the id passed
+ * in the request parameter named "taskId" from
+ * the actor to which it is assigned, and return
+ * it to the pool it came from.
+ *
+ * @return a null outcome only if the task was not found
+ */
+ @Transactional
+ public String unassign()
+ {
+ TaskInstance taskInstance = getTaskInstance();
+ if (taskInstance!=null)
+ {
+ taskInstance.setActorId(null);
+ return "taskUnassigned";
+ }
+ else
+ {
+ return null;
+ }
+ }
+
+ /**
* @return the TaskInstance with the id passed
* in the request parameter named "taskId".
*/
More information about the jboss-cvs-commits
mailing list