KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > workflow > spi > ojb > OJBWorkflowEntry


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 package com.opensymphony.workflow.spi.ojb;
6
7 import com.opensymphony.workflow.spi.WorkflowEntry;
8
9 import java.util.List JavaDoc;
10
11
12 /**
13  * @author picard
14  * Created on 9 sept. 2003
15  */

16 public class OJBWorkflowEntry implements WorkflowEntry {
17     //~ Instance fields ////////////////////////////////////////////////////////
18

19     List JavaDoc currentSteps;
20     List JavaDoc historySteps;
21     String JavaDoc workflowName;
22     long id;
23     private int state;
24
25     //~ Constructors ///////////////////////////////////////////////////////////
26

27     public OJBWorkflowEntry() {
28         super();
29     }
30
31     //~ Methods ////////////////////////////////////////////////////////////////
32

33     public void setCurrentSteps(List JavaDoc list) {
34         currentSteps = list;
35     }
36
37     public List JavaDoc getCurrentSteps() {
38         return currentSteps;
39     }
40
41     public void setHistorySteps(List JavaDoc list) {
42         historySteps = list;
43     }
44
45     public List JavaDoc getHistorySteps() {
46         return historySteps;
47     }
48
49     public void setId(long l) {
50         id = l;
51     }
52
53     public long getId() {
54         return id;
55     }
56
57     public boolean isInitialized() {
58         return state > 0;
59     }
60
61     public void setState(int state) {
62         this.state = state;
63     }
64
65     public int getState() {
66         return state;
67     }
68
69     public void setWorkflowName(String JavaDoc string) {
70         workflowName = string;
71     }
72
73     public String JavaDoc getWorkflowName() {
74         return workflowName;
75     }
76 }
77
Popular Tags