KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > workflow > designer > ResultHolder


1 package com.opensymphony.workflow.designer;
2
3 import com.opensymphony.workflow.loader.ResultDescriptor;
4 import com.opensymphony.workflow.loader.ActionDescriptor;
5 import org.jgraph.graph.DefaultGraphCell;
6
7 public class ResultHolder
8 {
9   private WorkflowCell fromCell;
10   private ResultDescriptor descriptor;
11   //the action that causes this result
12
private ActionDescriptor action;
13
14   public ResultHolder(WorkflowCell fromCell, ResultDescriptor resultDescriptor, ActionDescriptor action)
15   {
16     this.fromCell = fromCell;
17     descriptor = resultDescriptor;
18     this.action = action;
19   }
20
21   public DefaultGraphCell getFromCell()
22   {
23     return fromCell;
24   }
25
26   public int getStep()
27   {
28     return descriptor.getStep();
29   }
30
31   public ResultDescriptor getDescriptor()
32   {
33     return descriptor;
34   }
35
36   public int getSplit()
37   {
38     return descriptor.getSplit();
39   }
40
41   public int getJoin()
42   {
43     return descriptor.getJoin();
44   }
45
46   public ActionDescriptor getAction()
47   {
48     return action;
49   }
50 }
51
Popular Tags