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(java.lang.String id)
Get deployed workflow definition by ID
|
JscriptWorkflowDefinition |
getDefinitionByName(java.lang.String name)
Get deployed workflow definition by Name
|
JscriptWorkflowInstance |
getInstance(java.lang.String workflowInstanceID)
Get Workflow Instance by ID
|
org.mozilla.javascript.Scriptable |
getLatestDefinitions()
Gets the latest versions of the deployed, workflow definitions
|
org.mozilla.javascript.Scriptable |
getPooledTasks(java.lang.String authority)
Get pooled tasks
|
JscriptWorkflowTask |
getTask(java.lang.String id)
Get task by id
|
JscriptWorkflowTask |
getTaskById(java.lang.String id)
Get task by id.
|
void |
setServiceRegistry(ServiceRegistry services)
Sets the Service Registry property
|
getScope, setScopegetExtensionName, register, setExtensionName, setProcessorpublic void setServiceRegistry(ServiceRegistry services)
services - the service registrypublic JscriptWorkflowDefinition getDefinition(java.lang.String id)
id - the workflow definition IDpublic JscriptWorkflowDefinition getDefinitionByName(java.lang.String name)
name - the workflow definition namepublic org.mozilla.javascript.Scriptable getAssignedTasks()
public org.mozilla.javascript.Scriptable getCompletedTasks()
public JscriptWorkflowInstance getInstance(java.lang.String workflowInstanceID)
workflowInstanceID - ID of the workflow instance to retrievepublic org.mozilla.javascript.Scriptable getPooledTasks(java.lang.String authority)
authority - the authoritypublic JscriptWorkflowTask getTask(java.lang.String id)
id - task idpublic JscriptWorkflowTask getTaskById(java.lang.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 - 2010 Alfresco Software, Inc. All Rights Reserved.