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,
CopyService copyService)
Execute the Approve step for the Simple Workflow on a node.
|
static boolean |
isTaskEditable(String taskId,
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,
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, CopyService copyService) throws org.alfresco.error.AlfrescoRuntimeException
ref
- NodeRef to the node with the workflownodeService
- NodeService instancecopyService
- CopyService instanceorg.alfresco.error.AlfrescoRuntimeException
public static void reject(org.alfresco.service.cmr.repository.NodeRef ref, org.alfresco.service.cmr.repository.NodeService nodeService, CopyService copyService) throws org.alfresco.error.AlfrescoRuntimeException
ref
- NodeRef to the node with the workflownodeService
- NodeService instancecopyService
- CopyService instanceorg.alfresco.error.AlfrescoRuntimeException
public static Map<org.alfresco.service.namespace.QName,Serializable> prepareTaskParams(Node node)
node
- The node to package up for persistencepublic static boolean isTaskEditable(String taskId, ServletContext sc)
Copyright © 2005–2017 Alfresco Software. All rights reserved.