|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.processor.BaseProcessorExtension
org.alfresco.repo.jscript.BaseScopableProcessorExtension
org.alfresco.repo.workflow.jscript.WorkflowManager
public class WorkflowManager
The Workflow Manager serves as the main entry point for scripts to create and interact with workflows. It is made available in the root scripting scope
Constructor Summary | |
---|---|
WorkflowManager()
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension |
---|
getScope, setScope |
Methods inherited from class org.alfresco.repo.processor.BaseProcessorExtension |
---|
getExtensionName, register, setExtensionName, setProcessor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkflowManager()
Method Detail |
---|
public void setServiceRegistry(ServiceRegistry services)
services
- the service registrypublic JscriptWorkflowDefinition getDefinition(java.lang.String id)
id
- the workflow definition ID
public JscriptWorkflowDefinition getDefinitionByName(java.lang.String name)
name
- the workflow definition name
public 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 retrieve
public org.mozilla.javascript.Scriptable getPooledTasks(java.lang.String authority)
authority
- the authority
public JscriptWorkflowTask getTask(java.lang.String id)
id
- task id
public JscriptWorkflowTask getTaskById(java.lang.String id)
getTask(String id)
for
those used to the Template API
id
- task id
public org.mozilla.javascript.Scriptable getLatestDefinitions()
public org.mozilla.javascript.Scriptable getAllDefinitions()
public ScriptNode createPackage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |