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