org.alfresco.web.bean.workflow
Class WorkflowUtil

java.lang.Object
  extended by org.alfresco.web.bean.workflow.WorkflowUtil
Direct Known Subclasses:
AVMWorkflowUtil

public class WorkflowUtil
extends java.lang.Object

Helper class for common Workflow functionality.

This class should be replaced with calls to a WorkflowService once it is available.


Constructor Summary
WorkflowUtil()
           
 
Method Summary
static void approve(org.alfresco.service.cmr.repository.NodeRef ref, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.repository.CopyService copyService)
          Execute the Approve step for the Simple Workflow on a node.
static boolean isTaskEditable(java.lang.String taskId, javax.servlet.ServletContext sc)
           
static java.util.Map prepareTaskParams(Node node)
          Prepares the given node for persistence in the workflow engine.
static void reject(org.alfresco.service.cmr.repository.NodeRef ref, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.repository.CopyService copyService)
          Execute the Reject step for the Simple Workflow on a node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowUtil

public WorkflowUtil()
Method Detail

approve

public static void approve(org.alfresco.service.cmr.repository.NodeRef ref,
                           org.alfresco.service.cmr.repository.NodeService nodeService,
                           org.alfresco.service.cmr.repository.CopyService copyService)
                    throws org.alfresco.error.AlfrescoRuntimeException
Execute the Approve step for the Simple Workflow on a node.

Parameters:
ref - NodeRef to the node with the workflow
nodeService - NodeService instance
copyService - CopyService instance
Throws:
org.alfresco.error.AlfrescoRuntimeException

reject

public static void reject(org.alfresco.service.cmr.repository.NodeRef ref,
                          org.alfresco.service.cmr.repository.NodeService nodeService,
                          org.alfresco.service.cmr.repository.CopyService copyService)
                   throws org.alfresco.error.AlfrescoRuntimeException
Execute the Reject step for the Simple Workflow on a node.

Parameters:
ref - NodeRef to the node with the workflow
nodeService - NodeService instance
copyService - CopyService instance
Throws:
org.alfresco.error.AlfrescoRuntimeException

prepareTaskParams

public static java.util.Map prepareTaskParams(Node node)
Prepares the given node for persistence in the workflow engine.

Parameters:
node - The node to package up for persistence
Returns:
The map of data representing the node

isTaskEditable

public static boolean isTaskEditable(java.lang.String taskId,
                                     javax.servlet.ServletContext sc)


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