org.alfresco.repo.template
Class Workflow

java.lang.Object
  extended by org.alfresco.repo.processor.BaseProcessorExtension
      extended by org.alfresco.repo.template.BaseTemplateProcessorExtension
          extended by 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.


Nested Class Summary
static class Workflow.WorkflowTaskItem
          Simple bean wrapper around a WorkflowTask item
 
Constructor Summary
Workflow()
           
 
Method Summary
 java.util.List getAssignedTasks()
          Return a list of objects representing the assigned tasks for the current user
 java.util.List getCompletedTasks()
          Return a list of objects representing the completed tasks for the current user
 java.util.List getPooledTasks()
          Return a list of objects representing the pooled tasks for the current user
 Workflow.WorkflowTaskItem getTaskById(java.lang.String taskId)
          Return a single object representing a task of the given taskId for the current user
 void setServiceRegistry(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.alfresco.processor.ProcessorExtension
getExtensionName
 

Constructor Detail

Workflow

public Workflow()
Method Detail

setServiceRegistry

public void setServiceRegistry(ServiceRegistry services)
Sets the service registry

Parameters:
services - the service registry

getAssignedTasks

public java.util.List 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 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 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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.