01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.workflow.spi;
06:
07: import java.io.Serializable;
08:
09: /**
10: * Simple implemenation.
11: *
12: * @author <a href="mailto:plightbo@hotmail.com">Pat Lightbody</a>
13: */
14: public class SimpleWorkflowEntry implements WorkflowEntry, Serializable {
15: //~ Instance fields ////////////////////////////////////////////////////////
16:
17: protected String workflowName;
18: protected boolean initialized;
19: protected int state;
20: protected long id;
21:
22: //~ Constructors ///////////////////////////////////////////////////////////
23:
24: public SimpleWorkflowEntry(long id, String workflowName, int state) {
25: this .id = id;
26: this .workflowName = workflowName;
27: this .state = state;
28: }
29:
30: //~ Methods ////////////////////////////////////////////////////////////////
31:
32: public void setId(long id) {
33: this .id = id;
34: }
35:
36: public long getId() {
37: return id;
38: }
39:
40: public void setInitialized(boolean initialized) {
41: this .initialized = initialized;
42: }
43:
44: public boolean isInitialized() {
45: return initialized;
46: }
47:
48: public void setState(int state) {
49: this .state = state;
50: }
51:
52: public int getState() {
53: return state;
54: }
55:
56: public void setWorkflowName(String workflowName) {
57: this .workflowName = workflowName;
58: }
59:
60: public String getWorkflowName() {
61: return workflowName;
62: }
63: }
|