|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.core.EntityObject org.figure8.join.businessobjects.commons.Status
public class Status
This is an entity representing a process status.
Some process are well identified within Join workflow such as that returned
by the MANAGED_TYPES constant from this class. Defining status for these process
allow you to better monitor them.
Some status should also be marked as "terminal" in order to help Join detecting
process end and thus workflow transition. An exemple is the end of the assembly
creation process : when assembly has reached a terminal status, Join may propose
users to deploy this assembly onto an environnment ; thus starting a new deployment
preparation process, and so on...
Field Summary | |
---|---|
static java.lang.String |
ASSEMBLY_TYPE
Constant for the status type corresponding to assembly process. |
static java.lang.String |
BUILD_TYPE
Constant for the status type corresponding to build process. |
static java.lang.String |
DEPLOYMENT_PREPARATION_TYPE
Constant for the status type corresponding to deployment preparation process. |
static java.lang.String |
DEPLOYMENT_REALIZATION_TYPE
Constant for the status type corresponding to deployment realisation process. |
static java.lang.String[] |
MANAGED_TYPES
Constant for the list of managed status types (one type by process). |
Constructor Summary | |
---|---|
Status()
Creates a new insatnce of Status. |
|
Status(java.lang.String key,
java.lang.String label,
java.lang.String type)
Creates a new instance of Status with mandatory attributes. |
Method Summary | |
---|---|
java.lang.String |
getKey()
|
java.lang.String |
getLabel()
|
java.lang.String |
getType()
|
boolean |
isCancelled()
|
boolean |
isTerminal()
|
void |
setCancelled(boolean cancelled)
|
void |
setKey(java.lang.String key)
|
void |
setLabel(java.lang.String label)
|
void |
setTerminal(boolean terminal)
|
void |
setType(java.lang.String type)
|
Methods inherited from class org.figure8.join.core.EntityObject |
---|
clone, equals, getId, hashCode, isTransient |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BUILD_TYPE
public static final java.lang.String ASSEMBLY_TYPE
public static final java.lang.String DEPLOYMENT_PREPARATION_TYPE
public static final java.lang.String DEPLOYMENT_REALIZATION_TYPE
public static final java.lang.String[] MANAGED_TYPES
Constructor Detail |
---|
public Status()
public Status(java.lang.String key, java.lang.String label, java.lang.String type)
key
- The unique key for statuslabel
- The display label for statustype
- The type of process this status is forMethod Detail |
---|
public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- This status unique keypublic java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- This status label for displaypublic java.lang.String getType()
public void setType(java.lang.String type)
type
- The type of process this status is forpublic boolean isTerminal()
public void setTerminal(boolean terminal)
terminal
- Whether this status is terminal in processpublic boolean isCancelled()
public void setCancelled(boolean cancelled)
cancelled
- Whether this status is a cancel step in process
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |