KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > taskmgmt > def > AssignmentHandler


1 package org.jbpm.taskmgmt.def;
2
3 import java.io.Serializable JavaDoc;
4
5 import org.jbpm.graph.exe.ExecutionContext;
6 import org.jbpm.taskmgmt.exe.Assignable;
7
8 /**
9  * assigns {@link org.jbpm.taskmgmt.exe.TaskInstance}s or
10  * {@link org.jbpm.taskmgmt.exe.SwimlaneInstance}s to
11  * actors.
12  */

13 public interface AssignmentHandler extends Serializable JavaDoc {
14
15   /**
16    * assigns the assignable (={@link org.jbpm.taskmgmt.exe.TaskInstance} or
17    * a {@link org.jbpm.taskmgmt.exe.SwimlaneInstance} to an swimlaneActorId or
18    * a set of {@link org.jbpm.taskmgmt.exe.PooledActor}s.
19    *
20    * <p>The swimlaneActorId is the user that is responsible for the given task or swimlane.
21    * The pooledActors represents a pool of actors to which the task or swimlane is
22    * offered. Any actors from the pool can then take a TaskInstance by calling
23    * {@link org.jbpm.taskmgmt.exe.TaskInstance#setActorId(String)}.
24    * </p>
25    */

26   void assign( Assignable assignable, ExecutionContext executionContext ) throws Exception JavaDoc;
27 }
28
Popular Tags