KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > workflow > spi > WorkflowEntry


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

5 package com.opensymphony.workflow.spi;
6
7
8 /**
9  * Interface for a workflow entry.
10  *
11  * @author <a HREF="mailto:plightbo@hotmail.com">Pat Lightbody</a>
12  */

13 public interface WorkflowEntry {
14     //~ Static fields/initializers /////////////////////////////////////////////
15

16     public static final int CREATED = 0;
17     public static final int ACTIVATED = 1;
18     public static final int SUSPENDED = 2;
19     public static final int KILLED = 3;
20     public static final int COMPLETED = 4;
21     public static final int UNKNOWN = -1;
22
23     //~ Methods ////////////////////////////////////////////////////////////////
24

25     /**
26      * Returns the unique ID of the workflow entry.
27      */

28     public long getId();
29
30     /**
31      * Returns true if the workflow entry has been initialized.
32      */

33     public boolean isInitialized();
34
35     public int getState();
36
37     /**
38      * Returns the name of the workflow that this entry is an instance of.
39      */

40     public String JavaDoc getWorkflowName();
41 }
42
Popular Tags