|
Method Summary | ||
cancelWorkflow(String workflowId) Cancel an "in-flight" Workflow instance |
||
cancelWorkflows(List<String> workflowIds) Cancel a batch of "in-flight" Workflow instances |
||
long |
countTasks(WorkflowTaskQuery workflowTaskQuery) Get the number of tasks matching the given query |
|
long |
countWorkflows(WorkflowInstanceQuery workflowInstanceQuery) Get count of workflow instances |
|
createPackage(NodeRef container) Create a Workflow Package (a container of content to route through the Workflow). |
||
deleteWorkflow(String workflowId) Delete a Workflow instance. |
||
deployDefinition(NodeRef workflowDefinition) Deploy a Workflow Definition to the Alfresco Repository Note: The specified content object must be of type bpm:workflowdefinition. |
||
deployDefinition(String engineId, InputStream workflowDefinition, String mimetype) Deploy a Workflow Definition to the Alfresco Repository |
||
deployDefinition(String engineId, InputStream workflowDefinition, String mimetype, String name) Deploy a Workflow Definition to the Alfresco Repository |
||
endTask(String taskId, String transitionId) End the Task (i.e. |
||
fireEvent(String pathId, String event) Fire custom event against specified path |
||
getActiveWorkflows() Gets all active workflow instances. |
||
getActiveWorkflows(String workflowDefinitionId) Gets all active workflow instances of the specified Workflow Definition |
||
getAllDefinitions() Gets all deployed Workflow Definitions (with all previous versions) |
||
getAllDefinitionsByName(String workflowName) Gets all (including previous) Workflow Definitions for the given unique name |
||
getAssignedTasks(String authority, WorkflowTaskState state) Gets all tasks assigned to the specified authority |
||
getAssignedTasks(String authority, WorkflowTaskState state, boolean lazyInitialization) Gets all tasks assigned to the specified authority |
||
getCompletedWorkflows() Gets all completed workflow instances. |
||
getCompletedWorkflows(String workflowDefinitionId) Gets all completed workflow instances of the specified Workflow Definition |
||
getDefinitionById(String workflowDefinitionId) Gets a Workflow Definition by unique Id |
||
getDefinitionByName(String workflowName) Gets the latest Workflow Definition by unique name |
||
byte[] |
getDefinitionImage(String workflowDefinitionId) Gets a graphical view of the Workflow Definition |
|
getDefinitions() Gets latest deployed Workflow Definitions |
||
getPackageContents(NodeRef packageRef) Get a list of node refs to all the package contents. |
||
getPackageContents(String taskId) Get a list of node refs to all the package contents for the given task id. |
||
getPathProperties(String pathId) Gets the properties associated with the specified path (and parent paths) |
||
getPooledTasks(String authority) Gets the pooled tasks available to the specified authority |
||
getPooledTasks(String authority, boolean lazyinitialization) Gets the pooled tasks available to the specified authority |
||
getStartTask(String workflowInstanceId) Gets the start task instance for the given workflow instance. |
||
getStartTasks(List<String> workflowInstanceIds, boolean sameSession) Gets the start task instances for the given workflow instances. |
||
getTaskById(String taskId) Gets a Task by unique Id |
||
getTaskDefinitions(String workflowDefinitionId) Gets the Task Definitions for the given Workflow Definition |
||
getTasksForWorkflowPath(String pathId) Gets all Tasks associated with the specified path |
||
getTimers(String workflowId) Gets all active timers for the specified workflow |
||
getWorkflowById(String workflowId) Gets a specific workflow instances |
||
getWorkflowImage(String workflowInstanceId) Gets a graphical view of the workflow instance |
||
getWorkflowPaths(String workflowId) Gets all Paths for the specified Workflow instance. |
||
getWorkflows() Gets all workflow instances (both active and completed). |
||
getWorkflows(String workflowDefinitionId) Gets all workflow instances (both active and completed) of the specified Workflow Definition |
||
getWorkflows(WorkflowInstanceQuery workflowInstanceQuery) Gets all "in-flight" workflow instances according to the specified workflowInstanceQuery parameter |
||
getWorkflows(WorkflowInstanceQuery workflowInstanceQuery, int maxItems, int skipCount) Gets maxItems "in-flight" workflow instances according to the specified workflowInstanceQuery parameter Get maxItems and skipCount parameters form request |
||
getWorkflowsForContent(NodeRef packageItem, boolean active) Gets the Workflows that act upon the specified Repository content. |
||
boolean |
hasWorkflowImage(String workflowInstanceId) Determines if a graphical view of the workflow instance exists |
|
boolean |
isDefinitionDeployed(NodeRef workflowDefinition) Is the specified Workflow Definition already deployed? Note: the notion of "already deployed" may differ between bpm engines. |
|
boolean |
isDefinitionDeployed(String engineId, InputStream workflowDefinition, String mimetype) Is the specified Workflow Definition already deployed? Note: the notion of "already deployed" may differ between bpm engines. |
|
boolean |
isMultiTenantWorkflowDeploymentEnabled() | |
boolean |
isTaskClaimable(WorkflowTask task, String username) Determines if the given user can claim the given task |
|
boolean |
isTaskClaimable(WorkflowTask task, String username, boolean refreshTask) Determines if the given user can claim the given task |
|
boolean |
isTaskEditable(WorkflowTask task, String username) Determines if the given user can edit the given task |
|
boolean |
isTaskEditable(WorkflowTask task, String username, boolean refreshTask) Determines if the given user can edit the given task |
|
boolean |
isTaskReassignable(WorkflowTask task, String username) Determines if the given user can reassign the given task |
|
boolean |
isTaskReassignable(WorkflowTask task, String username, boolean refreshTask) Determines if the given user can reassign the given task |
|
boolean |
isTaskReleasable(WorkflowTask task, String username) Determines if the given user can release the given task |
|
boolean |
isTaskReleasable(WorkflowTask task, String username, boolean refreshTask) Determines if the given user can release the given task |
|
queryTasks(WorkflowTaskQuery query) Deprecated. Use overloaded method with the sameSession parameter (this method defaults the parameter to false). |
||
queryTasks(WorkflowTaskQuery query, boolean sameSession) Query for tasks |
||
signal(String pathId, String transitionId) Signal the transition from one Workflow Node to another |
||
startWorkflow(String workflowDefinitionId, Map<QName,Serializable> parameters) Start a Workflow Instance |
||
startWorkflowFromTemplate(NodeRef templateDefinition) Start a Workflow Instance from an existing "Start Task" template node held in the Repository. |
||
void |
undeployDefinition(String workflowDefinitionId) Undeploy an exisiting Workflow Definition TODO: Determine behaviour when "in-flight" workflow instances exist |
|
updateTask(String taskId, Map<QName,Serializable> properties, Map<QName,List<NodeRef>> add, Map<QName,List<NodeRef>> remove) Update the Properties and Associations of a Task |
true
, the
returned enities should be used inside of the transaction-boundaries of this service-call.
If false
, fully initialized entities are returned, just as with getAssignedTasks(String, WorkflowTaskState).
true
, the
returned enities should be used inside of the transaction-boundaries of this service-call.
If false
, fully initialized entities are returned, just as with getPooledTasks(String).
|