public interface WorkflowComponent
Modifier and Type | Method and Description |
---|---|
WorkflowInstance |
cancelWorkflow(String workflowId)
Cancel an "in-flight" Workflow instance
|
List<WorkflowInstance> |
cancelWorkflows(List<String> workflowIds)
Cancel a batch of "in-flight" Workflow instances
|
long |
countWorkflows(WorkflowInstanceQuery workflowInstanceQuery)
Get count of workflow instances
|
WorkflowInstance |
deleteWorkflow(String workflowId)
Delete an "in-flight" Workflow instance
|
WorkflowDeployment |
deployDefinition(InputStream workflowDefinition,
String mimetype)
Deploy a Workflow Definition
|
WorkflowDeployment |
deployDefinition(InputStream workflowDefinition,
String mimetype,
String name)
Deploy a Workflow Definition
|
WorkflowPath |
fireEvent(String pathId,
String event)
Fire custom event against specified path
|
List<WorkflowInstance> |
getActiveWorkflows()
Gets all "in-flight" active workflow instances.
|
List<WorkflowInstance> |
getActiveWorkflows(String workflowDefinitionId)
Gets all "in-flight" active workflow instances of the specified Workflow Definition
|
List<WorkflowDefinition> |
getAllDefinitions()
Gets all deployed Workflow Definitions (with all previous versions)
|
List<WorkflowDefinition> |
getAllDefinitionsByName(String workflowName)
Gets all (including previous) Workflow Definitions for the given unique name
|
List<WorkflowInstance> |
getCompletedWorkflows()
Gets all completed workflow instances.
|
List<WorkflowInstance> |
getCompletedWorkflows(String workflowDefinitionId)
Gets all "in-flight" completed workflow instances of the specified Workflow Definition
|
WorkflowDefinition |
getDefinitionById(String workflowDefinitionId)
Gets a Workflow Definition by unique Id
|
WorkflowDefinition |
getDefinitionByName(String workflowName)
Gets a Workflow Definition by unique name
|
byte[] |
getDefinitionImage(String workflowDefinitionId)
Gets a graphical view of the Workflow Definition
|
List<WorkflowDefinition> |
getDefinitions()
Gets all deployed Workflow Definitions
|
Map<org.alfresco.service.namespace.QName,Serializable> |
getPathProperties(String pathId)
Gets the properties associated with the specified path (and parent paths)
|
List<WorkflowTaskDefinition> |
getTaskDefinitions(String workflowDefinitionId)
Gets the Task Definitions for the given Workflow Definition
|
List<WorkflowTask> |
getTasksForWorkflowPath(String pathId)
Gets all Tasks associated with the specified path
|
List<WorkflowTimer> |
getTimers(String workflowId)
Gets all active timers for the specified workflow
|
WorkflowInstance |
getWorkflowById(String workflowId)
Gets a specific workflow instances
|
InputStream |
getWorkflowImage(String workflowInstanceId)
Gets a graphical view of the workflow instance
|
List<WorkflowPath> |
getWorkflowPaths(String workflowId)
Gets all Paths for the specified Workflow instance
|
List<WorkflowInstance> |
getWorkflows()
Gets all workflow instances (both active and completed).
|
List<WorkflowInstance> |
getWorkflows(String workflowDefinitionId)
Gets all "in-flight" workflow instances (both active and completed) of the specified Workflow Definition
|
List<WorkflowInstance> |
getWorkflows(WorkflowInstanceQuery workflowInstanceQuery)
Gets all "in-flight" workflow instances according to the specified workflowInstanceQuery parameter
|
List<WorkflowInstance> |
getWorkflows(WorkflowInstanceQuery workflowInstanceQuery,
int maxItems,
int skipCount)
Gets maxItems "in-flight" workflow instances according to the specified workflowInstanceQuery parameter
|
boolean |
hasWorkflowImage(String workflowInstanceId)
Determines if a graphical view of the workflow instance exists
|
boolean |
isDefinitionDeployed(InputStream workflowDefinition,
String mimetype)
Is the specified Workflow Definition already deployed?
Note: the notion of "already deployed" may differ between bpm engines.
|
WorkflowPath |
signal(String pathId,
String transitionId)
Signal the transition from one Workflow Node to another within an "in-flight"
process.
|
WorkflowPath |
startWorkflow(String workflowDefinitionId,
Map<org.alfresco.service.namespace.QName,Serializable> parameters)
Start a Workflow Instance
|
void |
undeployDefinition(String workflowDefinitionId)
Undeploy an exisiting Workflow Definition
TODO: Determine behaviour when "in-flight" workflow instances exist
|
WorkflowDeployment deployDefinition(InputStream workflowDefinition, String mimetype)
workflowDefinition
- the content object containing the definitionmimetype
- (optional) the mime type of the workflow definitionWorkflowDeployment deployDefinition(InputStream workflowDefinition, String mimetype, String name)
workflowDefinition
- the content object containing the definitionmimetype
- (optional) the mime type of the workflow definitionname
- (optional) a name to represent the deploymentboolean isDefinitionDeployed(InputStream workflowDefinition, String mimetype)
workflowDefinition
- the definition to checkmimetype
- the mimetype of the definitionvoid undeployDefinition(String workflowDefinitionId)
workflowDefinitionId
- the id of the definition to undeployList<WorkflowDefinition> getDefinitions()
@Auditable List<WorkflowDefinition> getAllDefinitions()
WorkflowDefinition getDefinitionById(String workflowDefinitionId)
workflowDefinitionId
- the workflow definition idWorkflowDefinition getDefinitionByName(String workflowName)
workflowName
- workflow name e.g. activiti$activitiReview@Auditable(parameters="workflowName") List<WorkflowDefinition> getAllDefinitionsByName(String workflowName)
workflowName
- workflow name e.g. activiti$activitiReview@Auditable(parameters="workflowDefinitionId") byte[] getDefinitionImage(String workflowDefinitionId)
workflowDefinitionId
- the workflow definition id@Auditable(parameters="workflowDefinitionId") List<WorkflowTaskDefinition> getTaskDefinitions(String workflowDefinitionId)
workflowDefinitionId
- the workflow definition idWorkflowPath startWorkflow(String workflowDefinitionId, Map<org.alfresco.service.namespace.QName,Serializable> parameters)
workflowDefinitionId
- the workflow definition idparameters
- the initial set of parameters used to populate the "Start Task" propertiesList<WorkflowInstance> getActiveWorkflows(String workflowDefinitionId)
workflowDefinitionId
- the workflow definition idList<WorkflowInstance> getCompletedWorkflows(String workflowDefinitionId)
workflowDefinitionId
- the workflow definition idList<WorkflowInstance> getWorkflows(String workflowDefinitionId)
workflowDefinitionId
- the workflow definition idList<WorkflowInstance> getWorkflows(WorkflowInstanceQuery workflowInstanceQuery)
workflowInstanceQuery
- WorkflowInstanceQueryList<WorkflowInstance> getWorkflows(WorkflowInstanceQuery workflowInstanceQuery, int maxItems, int skipCount)
workflowInstanceQuery
- WorkflowInstanceQuerymaxItems
- intskipCount
- intlong countWorkflows(WorkflowInstanceQuery workflowInstanceQuery)
workflowInstanceQuery
- WorkflowInstanceQueryList<WorkflowInstance> getActiveWorkflows()
List<WorkflowInstance> getCompletedWorkflows()
List<WorkflowInstance> getWorkflows()
WorkflowInstance getWorkflowById(String workflowId)
workflowId
- the id of the workflow to retrieveList<WorkflowPath> getWorkflowPaths(String workflowId)
workflowId
- workflow instance idMap<org.alfresco.service.namespace.QName,Serializable> getPathProperties(String pathId)
pathId
- workflow path idWorkflowInstance cancelWorkflow(String workflowId)
workflowId
- the workflow instance to cancelList<WorkflowInstance> cancelWorkflows(List<String> workflowIds)
workflowIds
- List of the workflow instances to cancelWorkflowInstance deleteWorkflow(String workflowId)
workflowId
- the workflow instance to cancelWorkflowPath signal(String pathId, String transitionId)
pathId
- the workflow path to signal ontransitionId
- the transition id to follow (or null, for the default transition)WorkflowPath fireEvent(String pathId, String event)
pathId
- the workflow path to fire event onevent
- name of eventList<WorkflowTask> getTasksForWorkflowPath(String pathId)
pathId
- the path idList<WorkflowTimer> getTimers(String workflowId)
boolean hasWorkflowImage(String workflowInstanceId)
workflowInstanceId
- the workflow instance idInputStream getWorkflowImage(String workflowInstanceId)
workflowInstanceId
- the workflow instance idCopyright © 2005–2017 Alfresco Software. All rights reserved.