Package com.adobe.granite.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Workflow.State
Enumerates the possible states of a Workflow
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getId()
Returns theWorkflow
instance ID.java.lang.String
getInitiator()
Returns the initiator of theWorkflow
instance.java.lang.String
getState()
Returns the workflows state.java.util.Date
getTimeEnded()
Getter for the point in time where theWorkflow
was finished.java.util.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.java.util.List<WorkItem>
getWorkItems()
Returns the list of
s assigned to theWorkItem
Workflow
instance.java.util.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.adobe.granite.workflow.HasMetaData
getMetaDataMap
-
-
-
-
Method Detail
-
getId
java.lang.String getId()
Returns theWorkflow
instance ID.- Returns:
- The
Workflow
instance ID.
-
getWorkItems
java.util.List<WorkItem> getWorkItems()
Returns the list of
s assigned to theWorkItem
Workflow
instance.- Returns:
- The list of
s assigned to theWorkItem
Workflow
-
getWorkItems
java.util.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
-
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
java.lang.String getState()
Returns the workflows state. In the default implementation this could be one ofRUNNING
,SUSPENDED
,COMPLETED
orABORTED
.- Returns:
- The current workflows state.
-
getInitiator
java.lang.String getInitiator()
Returns the initiator of theWorkflow
instance.- Returns:
- The user who initiated the
Workflow
.
-
getTimeStarted
java.util.Date getTimeStarted()
Getter for the point in time where theWorkflow
instance was started.- Returns:
- The start time of the
Workflow
instance.
-
getTimeEnded
java.util.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.
-
-