01: package com.opensymphony.workflow.designer;
02:
03: import com.opensymphony.workflow.loader.ResultDescriptor;
04: import com.opensymphony.workflow.loader.ActionDescriptor;
05:
06: public class ResultHolder {
07: private WorkflowCell fromCell;
08: private ResultDescriptor descriptor;
09: //the action that causes this result
10: private ActionDescriptor action;
11:
12: public ResultHolder(WorkflowCell fromCell,
13: ResultDescriptor resultDescriptor, ActionDescriptor action) {
14: this .fromCell = fromCell;
15: descriptor = resultDescriptor;
16: this .action = action;
17: }
18:
19: public WorkflowCell getFromCell() {
20: return fromCell;
21: }
22:
23: public int getStep() {
24: return descriptor.getStep();
25: }
26:
27: public ResultDescriptor getDescriptor() {
28: return descriptor;
29: }
30:
31: public int getSplit() {
32: return descriptor.getSplit();
33: }
34:
35: public int getJoin() {
36: return descriptor.getJoin();
37: }
38:
39: public ActionDescriptor getAction() {
40: return action;
41: }
42: }
|