|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.oodt.cas.workflow.lifecycle.WorkflowLifecycle
public class WorkflowLifecycle
Defines the lifecycle of a Workflow
, identifying what
WorkflowStatus
es belong to a particular phase.
Field Summary | |
---|---|
static String |
DEFAULT_LIFECYCLE
|
static String |
NO_WORKFLOW_ID
|
Constructor Summary | |
---|---|
WorkflowLifecycle()
Default Constructor. |
|
WorkflowLifecycle(String name,
String workflowId)
Constructs a new WorkflowLifecycle with the given parameters. |
Method Summary | |
---|---|
void |
addStage(WorkflowLifecycleStage stage)
Adds a WorkflowStage to this WorkflowLifecycle. |
void |
clearStages()
Clears the WorkflowStage s in this WorkflowLifecycle. |
String |
getName()
|
WorkflowLifecycleStage |
getStageForWorkflow(String status)
Gets the associated WorkflowLifecycleStage for a
WorkflowInstance with a given status. |
SortedSet |
getStages()
|
String |
getWorkflowId()
|
boolean |
removeStage(WorkflowLifecycleStage stage)
Removes the given WorkflowStage from this WorkflowLifecycle. |
void |
setName(String name)
|
void |
setWorkflowId(String workflowId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_LIFECYCLE
public static final String NO_WORKFLOW_ID
Constructor Detail |
---|
public WorkflowLifecycle()
public WorkflowLifecycle(String name, String workflowId)
name
- The name of the WorkflowLifecycle.workflowId
- The associated identifier for the Workflow
s that this
WorkflowLifecycle is appropriate for.Method Detail |
---|
public String getName()
public void setName(String name)
name
- the name to setpublic SortedSet getStages()
public void addStage(WorkflowLifecycleStage stage)
WorkflowStage
to this WorkflowLifecycle.
stage
- The WorkflowStage
to add to this WorkflowLifecycle.public boolean removeStage(WorkflowLifecycleStage stage)
WorkflowStage
from this WorkflowLifecycle.
stage
- The WorkflowStage
to remove.
public void clearStages()
WorkflowStage
s in this WorkflowLifecycle.
public String getWorkflowId()
public void setWorkflowId(String workflowId)
workflowId
- the workflowId to setpublic WorkflowLifecycleStage getStageForWorkflow(String status)
WorkflowLifecycleStage
for a
WorkflowInstance
with a given status.
status
- The status of the WorkflowInstance
to get the
WorkflowLifecycleStage
for.
WorkflowLifecycleStage
for the
WorkflowInstance
with the given status, or null if that
status does not exist in any defined
WorkflowLifecycleStage
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |