|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.day.cq.workflow.impl.exec.CQWorkflow
public class CQWorkflow
The CQWorkflow class implements the Workflow interface.
| Field Summary | |
|---|---|
static String |
START_COMMENT
Meta data key for a comment that can be added when starting a Workflow. |
static String |
STATE_ABORTED
|
static String |
STATE_COMPLETED
|
static String |
STATE_RUNNING
|
static String |
STATE_SUSPENDED
|
static String |
TERMINATE_COMMENT
Meta data key for a comment that can be added when a Workflow is terminated. |
| Constructor Summary | |
|---|---|
CQWorkflow()
|
|
| Method Summary | |
|---|---|
String |
getId()
Returns the Workflow instance ID. |
String |
getInitiator()
Returns the initiator of the Workflow instance. |
Dictionary<String,String> |
getMetaData()
Provides meta data assigned to the entity. |
String |
getState()
Returns the workflows state. |
Date |
getTimeEnded()
Getter for the point in time where the Workflow was
finished. |
Date |
getTimeStarted()
Getter for the point in time where the Workflow instance
was started. |
WorkflowData |
getWorkflowData()
Returns the WorkflowData object assigned to the
Workflow instance. |
WorkflowModel |
getWorkflowModel()
Returns the that defines the
underlying workflow model of the Workflow instance. |
List<WorkItem> |
getWorkItems()
Returns the list of s assigned to the
Workflow instance. |
boolean |
isActive()
Indicates if the Workflow instance is still active. |
void |
setId(String id)
|
void |
setInitiator(String initiator)
|
void |
setModel(CQWorkflowModel model)
|
void |
setState(String state)
|
void |
setTimeEnded(Date time)
|
void |
setTimeStarted(Date time)
|
void |
setWorkflowData(CQWorkflowData workflowData)
|
void |
setWorkItems(List<WorkItem> workItems)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String START_COMMENT
Workflow.
public static final String TERMINATE_COMMENT
Workflow is terminated.
public static final String STATE_RUNNING
public static final String STATE_COMPLETED
public static final String STATE_SUSPENDED
public static final String STATE_ABORTED
| Constructor Detail |
|---|
public CQWorkflow()
| Method Detail |
|---|
public List<WorkItem> getWorkItems()
WorkflowWorkItems assigned to the
Workflow instance.
getWorkItems in interface WorkflowWorkItems assigned to the
Workflowpublic WorkflowModel getWorkflowModel()
WorkflowWorkflowModel that defines the
underlying workflow model of the Workflow instance.
getWorkflowModel in interface WorkflowWorkflowModel of the
Workflow.public boolean isActive()
WorkflowWorkflow instance is still active.
isActive in interface Workflowpublic String getState()
WorkflowRUNNING, SUSPENDED,
COMPLETED or ABORTED.
getState in interface Workflowpublic String getInitiator()
WorkflowWorkflow instance.
getInitiator in interface WorkflowWorkflow.public Date getTimeStarted()
WorkflowWorkflow instance
was started.
getTimeStarted in interface WorkflowWorkflow instance.public Date getTimeEnded()
WorkflowWorkflow was
finished.
getTimeEnded in interface WorkflowWorkflow instance.public String getId()
WorkflowWorkflow instance ID.
getId in interface WorkflowWorkflow instance ID.public WorkflowData getWorkflowData()
WorkflowWorkflowData object assigned to the
Workflow instance.
getWorkflowData in interface WorkflowWorkflowData object assigned to the
Workflow instance.public Dictionary<String,String> getMetaData()
HasMetaData
getMetaData in interface HasMetaDatapublic void setState(String state)
public void setInitiator(String initiator)
public void setModel(CQWorkflowModel model)
public void setId(String id)
public void setTimeStarted(Date time)
public void setTimeEnded(Date time)
public void setWorkItems(List<WorkItem> workItems)
public void setWorkflowData(CQWorkflowData workflowData)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||