Package com.day.cq.workflow.exec
Interface Workflow
-
- All Superinterfaces:
HasMetaData
public interface Workflow extends HasMetaData
AWorkflow
represents 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 (orWorkflowModel
s) that flow through the workflow instance.WorkItem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getId()
Returns theWorkflow
instance ID.String
getInitiator()
Returns the initiator of theWorkflow
instance.String
getState()
Returns the workflows state.Date
getTimeEnded()
Getter for the point in time where theWorkflow
was finished.Date
getTimeStarted()
Getter for the point in time where theWorkflow
instance was started.WorkflowData
getWorkflowData()
Returns theWorkflowData
object assigned to theWorkflow
instance.WorkflowModel
getWorkflowModel()
Returns the
that defines the underlying workflow model of theWorkflowModel
Workflow
instance.List<WorkItem>
getWorkItems()
Returns the list of
s assigned to theWorkItem
Workflow
instance.List<WorkItem>
getWorkItems(WorkItemFilter filter)
Returns a filtered list of
s assigned to theWorkItem
Workflow
instance.boolean
isActive()
Indicates if theWorkflow
instance is still active.-
Methods inherited from interface com.day.cq.workflow.HasMetaData
getMetaData, getMetaDataMap
-
-
-
-
Method Detail
-
getId
String getId()
Returns theWorkflow
instance ID.- Returns:
- The
Workflow
instance ID.
-
getWorkItems
List<WorkItem> getWorkItems()
Returns the list of
s assigned to theWorkItem
Workflow
instance.- Returns:
- The list of
s assigned to theWorkItem
Workflow
-
getWorkItems
List<WorkItem> getWorkItems(WorkItemFilter filter)
Returns a filtered list of
s assigned to theWorkItem
Workflow
instance.- Parameters:
filter
- One is able to filter a subset of the available
s by passing aWorkItem
impl.WorkItemFilter
- Returns:
- The list of
s assigned to theWorkItem
Workflow
- Since:
- 5.4
-
getWorkflowModel
WorkflowModel getWorkflowModel()
Returns the
that defines the underlying workflow model of theWorkflowModel
Workflow
instance.- Returns:
- The
of theWorkflowModel
Workflow
.
-
isActive
boolean isActive()
Indicates if theWorkflow
instance 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
,COMPLETED
orABORTED
.- Returns:
- The current workflows state.
-
getInitiator
String getInitiator()
Returns the initiator of theWorkflow
instance.- Returns:
- The user who initiated the
Workflow
.
-
getTimeStarted
Date getTimeStarted()
Getter for the point in time where theWorkflow
instance was started.- Returns:
- The start time of the
Workflow
instance.
-
getTimeEnded
Date getTimeEnded()
Getter for the point in time where theWorkflow
was finished.- Returns:
- The end time of the
Workflow
instance.
-
getWorkflowData
WorkflowData getWorkflowData()
Returns theWorkflowData
object assigned to theWorkflow
instance.- Returns:
- The
WorkflowData
object assigned to theWorkflow
instance.
-
-