public class WorkflowUtil extends 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(String taskId,
javax.servlet.ServletContext sc) |
static Map<org.alfresco.service.namespace.QName,Serializable> |
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 Map<org.alfresco.service.namespace.QName,Serializable> prepareTaskParams(Node node)
node - The node to package up for persistencepublic static boolean isTaskEditable(String taskId, javax.servlet.ServletContext sc)
Copyright © 2005–2018 Alfresco Software. All rights reserved.