KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > taskmgmt > exe > SwimlaneInstance


1 package org.jbpm.taskmgmt.exe;
2
3 import java.io.*;
4 import java.util.Set JavaDoc;
5
6 import org.jbpm.taskmgmt.def.*;
7
8 /**
9  * is a process role for a one process instance.
10  */

11 public class SwimlaneInstance implements Serializable, Assignable {
12
13   private static final long serialVersionUID = 1L;
14
15   long id = 0;
16   protected String JavaDoc name = null;
17   protected String JavaDoc actorId = null;
18   protected Set JavaDoc pooledActors = null;
19   protected Swimlane swimlane = null;
20   protected TaskMgmtInstance taskMgmtInstance = null;
21   
22   public SwimlaneInstance() {
23   }
24   
25   public SwimlaneInstance(Swimlane swimlane) {
26     this.name = swimlane.getName();
27     this.swimlane = swimlane;
28   }
29
30   public void setPooledActors(String JavaDoc[] actorIds) {
31     this.pooledActors = PooledActor.createPool(actorIds);
32   }
33
34   public long getId() {
35     return id;
36   }
37   public String JavaDoc getName() {
38     return name;
39   }
40   public Swimlane getSwimlane() {
41     return swimlane;
42   }
43   public String JavaDoc getActorId() {
44     return actorId;
45   }
46   public void setActorId(String JavaDoc actorId) {
47     this.actorId = actorId;
48   }
49   public TaskMgmtInstance getTaskMgmtInstance() {
50     return taskMgmtInstance;
51   }
52   public void setTaskMgmtInstance(TaskMgmtInstance taskMgmtInstance) {
53     this.taskMgmtInstance = taskMgmtInstance;
54   }
55   public Set JavaDoc getPooledActors() {
56     return pooledActors;
57   }
58   public void setPooledActors(Set JavaDoc pooledActors) {
59     this.pooledActors = pooledActors;
60   }
61   
62 }
63
Popular Tags