01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.workflow.spi.ojb;
06:
07: import com.opensymphony.workflow.spi.WorkflowEntry;
08:
09: import java.util.List;
10:
11: /**
12: * @author picard
13: * Created on 9 sept. 2003
14: */
15: public class OJBWorkflowEntry implements WorkflowEntry {
16: //~ Instance fields ////////////////////////////////////////////////////////
17:
18: List currentSteps;
19: List historySteps;
20: String workflowName;
21: long id;
22: private int state;
23:
24: //~ Constructors ///////////////////////////////////////////////////////////
25:
26: public OJBWorkflowEntry() {
27: super ();
28: }
29:
30: //~ Methods ////////////////////////////////////////////////////////////////
31:
32: public void setCurrentSteps(List list) {
33: currentSteps = list;
34: }
35:
36: public List getCurrentSteps() {
37: return currentSteps;
38: }
39:
40: public void setHistorySteps(List list) {
41: historySteps = list;
42: }
43:
44: public List getHistorySteps() {
45: return historySteps;
46: }
47:
48: public void setId(long l) {
49: id = l;
50: }
51:
52: public long getId() {
53: return id;
54: }
55:
56: public boolean isInitialized() {
57: return state > 0;
58: }
59:
60: public void setState(int state) {
61: this .state = state;
62: }
63:
64: public int getState() {
65: return state;
66: }
67:
68: public void setWorkflowName(String string) {
69: workflowName = string;
70: }
71:
72: public String getWorkflowName() {
73: return workflowName;
74: }
75: }
|