public class WorkflowUtil
extends java.lang.Object
This class should be replaced with calls to a WorkflowService once it is available.
| Constructor and Description |
|---|
WorkflowUtil() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
ref - NodeRef to the node with the workflownodeService - NodeService instancecopyService - CopyService instanceorg.alfresco.error.AlfrescoRuntimeExceptionpublic 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
ref - NodeRef to the node with the workflownodeService - NodeService instancecopyService - CopyService instanceorg.alfresco.error.AlfrescoRuntimeExceptionpublic static java.util.Map prepareTaskParams(Node node)
node - The node to package up for persistencepublic static boolean isTaskEditable(java.lang.String taskId,
javax.servlet.ServletContext sc)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.