Package org.alfresco.repo.template
Class Workflow
- java.lang.Object
-
- org.alfresco.repo.processor.BaseProcessorExtension
-
- org.alfresco.repo.template.BaseTemplateProcessorExtension
-
- org.alfresco.repo.template.Workflow
-
- All Implemented Interfaces:
org.alfresco.processor.ProcessorExtension,TemplateProcessorExtension
public class Workflow extends BaseTemplateProcessorExtension
Workflow and task support in FreeMarker templates.- Author:
- Kevin Roast
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkflow.WorkflowTaskItemSimple bean wrapper around a WorkflowTask item
-
Constructor Summary
Constructors Constructor Description Workflow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Workflow.WorkflowTaskItem>getAssignedTasks()Return a list of objects representing the assigned tasks for the current userjava.util.List<Workflow.WorkflowTaskItem>getCompletedTasks()Return a list of objects representing the completed tasks for the current userjava.util.List<Workflow.WorkflowTaskItem>getPooledTasks()Return a list of objects representing the pooled tasks for the current userWorkflow.WorkflowTaskItemgetTaskById(java.lang.String taskId)Return a single object representing a task of the given taskId for the current uservoidsetServiceRegistry(ServiceRegistry services)Sets the service registry-
Methods inherited from class org.alfresco.repo.template.BaseTemplateProcessorExtension
getTemplateImageResolver, setTemplateImageResolver
-
Methods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
-
-
-
-
Method Detail
-
setServiceRegistry
public void setServiceRegistry(ServiceRegistry services)
Sets the service registry- Parameters:
services- the service registry
-
getAssignedTasks
public java.util.List<Workflow.WorkflowTaskItem> getAssignedTasks()
Return a list of objects representing the assigned tasks for the current user- Returns:
- list of WorkflowTaskItem bean objects
Workflow.WorkflowTaskItem
-
getPooledTasks
public java.util.List<Workflow.WorkflowTaskItem> getPooledTasks()
Return a list of objects representing the pooled tasks for the current user- Returns:
- list of WorkflowTaskItem bean objects
Workflow.WorkflowTaskItem
-
getCompletedTasks
public java.util.List<Workflow.WorkflowTaskItem> getCompletedTasks()
Return a list of objects representing the completed tasks for the current user- Returns:
- list of WorkflowTaskItem bean objects
Workflow.WorkflowTaskItem
-
getTaskById
public Workflow.WorkflowTaskItem getTaskById(java.lang.String taskId)
Return a single object representing a task of the given taskId for the current user- Returns:
- WorkflowTaskItem bean object
Workflow.WorkflowTaskItem
-
-