Package com.day.cq.workflow.exec
Interface Workflow
-
- All Superinterfaces:
HasMetaData
public interface Workflow extends HasMetaData
AWorkflowrepresents the current state of an instance of a. In terms of petri nets the state of a workflow instance can be considered as the collections of tokens (orWorkflowModels) that flow through the workflow instance.WorkItem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetId()Returns theWorkflowinstance ID.StringgetInitiator()Returns the initiator of theWorkflowinstance.StringgetState()Returns the workflows state.DategetTimeEnded()Getter for the point in time where theWorkflowwas finished.DategetTimeStarted()Getter for the point in time where theWorkflowinstance was started.WorkflowDatagetWorkflowData()Returns theWorkflowDataobject assigned to theWorkflowinstance.WorkflowModelgetWorkflowModel()Returns thethat defines the underlying workflow model of theWorkflowModelWorkflowinstance.List<WorkItem>getWorkItems()Returns the list ofs assigned to theWorkItemWorkflowinstance.List<WorkItem>getWorkItems(WorkItemFilter filter)Returns a filtered list ofs assigned to theWorkItemWorkflowinstance.booleanisActive()Indicates if theWorkflowinstance is still active.-
Methods inherited from interface com.day.cq.workflow.HasMetaData
getMetaData, getMetaDataMap
-
-
-
-
Method Detail
-
getId
String getId()
Returns theWorkflowinstance ID.- Returns:
- The
Workflowinstance ID.
-
getWorkItems
List<WorkItem> getWorkItems()
Returns the list ofs assigned to theWorkItemWorkflowinstance.- Returns:
- The list of
s assigned to theWorkItemWorkflow
-
getWorkItems
List<WorkItem> getWorkItems(WorkItemFilter filter)
Returns a filtered list ofs assigned to theWorkItemWorkflowinstance.- Parameters:
filter- One is able to filter a subset of the availables by passing aWorkItemimpl.WorkItemFilter- Returns:
- The list of
s assigned to theWorkItemWorkflow - Since:
- 5.4
-
getWorkflowModel
WorkflowModel getWorkflowModel()
Returns thethat defines the underlying workflow model of theWorkflowModelWorkflowinstance.- Returns:
- The
of theWorkflowModelWorkflow.
-
isActive
boolean isActive()
Indicates if theWorkflowinstance is still active.- Returns:
- True if active, otherwise false.
-
getState
String getState()
Returns the workflows state. In the default implementation this could be one ofRUNNING,SUSPENDED,COMPLETEDorABORTED.- Returns:
- The current workflows state.
-
getInitiator
String getInitiator()
Returns the initiator of theWorkflowinstance.- Returns:
- The user who initiated the
Workflow.
-
getTimeStarted
Date getTimeStarted()
Getter for the point in time where theWorkflowinstance was started.- Returns:
- The start time of the
Workflowinstance.
-
getTimeEnded
Date getTimeEnded()
Getter for the point in time where theWorkflowwas finished.- Returns:
- The end time of the
Workflowinstance.
-
getWorkflowData
WorkflowData getWorkflowData()
Returns theWorkflowDataobject assigned to theWorkflowinstance.- Returns:
- The
WorkflowDataobject assigned to theWorkflowinstance.
-
-