01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.workflow.spi;
06:
07: /**
08: * Interface for a workflow entry.
09: *
10: * @author <a href="mailto:plightbo@hotmail.com">Pat Lightbody</a>
11: */
12: public interface WorkflowEntry {
13: //~ Static fields/initializers /////////////////////////////////////////////
14:
15: public static final int CREATED = 0;
16: public static final int ACTIVATED = 1;
17: public static final int SUSPENDED = 2;
18: public static final int KILLED = 3;
19: public static final int COMPLETED = 4;
20: public static final int UNKNOWN = -1;
21:
22: //~ Methods ////////////////////////////////////////////////////////////////
23:
24: /**
25: * Returns the unique ID of the workflow entry.
26: */
27: public long getId();
28:
29: /**
30: * Returns true if the workflow entry has been initialized.
31: */
32: public boolean isInitialized();
33:
34: public int getState();
35:
36: /**
37: * Returns the name of the workflow that this entry is an instance of.
38: */
39: public String getWorkflowName();
40: }
|