public class WorkflowManager extends BaseScopableProcessorExtension
| Constructor and Description |
|---|
WorkflowManager() |
| Modifier and Type | Method and Description |
|---|---|
ScriptNode |
createPackage()
Create a workflow package (a container of content to route through a workflow)
|
org.mozilla.javascript.Scriptable |
getAllDefinitions()
Gets all versions of the deployed workflow definitions
|
org.mozilla.javascript.Scriptable |
getAssignedTasks()
Get tasks assigned to the current user.
|
org.mozilla.javascript.Scriptable |
getCompletedTasks()
Get completed tasks assigned to the current user.
|
JscriptWorkflowDefinition |
getDefinition(String id)
Get deployed workflow definition by ID
|
JscriptWorkflowDefinition |
getDefinitionByName(String name)
Get deployed workflow definition by Name
|
JscriptWorkflowInstance |
getInstance(String workflowInstanceID)
Get Workflow Instance by ID
|
org.mozilla.javascript.Scriptable |
getLatestDefinitions()
Gets the latest versions of the deployed, workflow definitions
|
int |
getMaxGroupReviewers() |
org.mozilla.javascript.Scriptable |
getPooledTasks(String authority)
Get pooled tasks
|
JscriptWorkflowTask |
getTask(String id)
Get task by id
|
JscriptWorkflowTask |
getTaskById(String id)
Get task by id.
|
void |
setMaxGroupReviewers(int maxGroupReviewers) |
void |
setServiceRegistry(ServiceRegistry services)
Sets the Service Registry property
|
getScope, setScopegetExtensionName, register, setExtensionName, setProcessorpublic void setServiceRegistry(ServiceRegistry services)
services - the service registrypublic void setMaxGroupReviewers(int maxGroupReviewers)
public int getMaxGroupReviewers()
public JscriptWorkflowDefinition getDefinition(String id)
id - the workflow definition IDpublic JscriptWorkflowDefinition getDefinitionByName(String name)
name - the workflow definition namepublic org.mozilla.javascript.Scriptable getAssignedTasks()
public org.mozilla.javascript.Scriptable getCompletedTasks()
public JscriptWorkflowInstance getInstance(String workflowInstanceID)
workflowInstanceID - ID of the workflow instance to retrievepublic org.mozilla.javascript.Scriptable getPooledTasks(String authority)
authority - the authoritypublic JscriptWorkflowTask getTask(String id)
id - task idpublic JscriptWorkflowTask getTaskById(String id)
getTask(String id) for
those used to the Template APIid - task idpublic org.mozilla.javascript.Scriptable getLatestDefinitions()
public org.mozilla.javascript.Scriptable getAllDefinitions()
public ScriptNode createPackage()
Copyright © 2005–2018 Alfresco Software. All rights reserved.