public abstract class AbstractWorkflowService extends AlfrescoService implements WorkflowService
CONTENT_CACHE, RENDITION_CACHE, session
FILTER_ASSIGNEE_ALL, FILTER_ASSIGNEE_ME, FILTER_ASSIGNEE_UNASSIGNED, FILTER_DUE_7DAYS, FILTER_DUE_NODATE, FILTER_DUE_OVERDUE, FILTER_DUE_TODAY, FILTER_DUE_TOMORROW, FILTER_INITIATOR_ANY, FILTER_INITIATOR_ME, FILTER_KEY_ASSIGNEE, FILTER_KEY_DUE, FILTER_KEY_INITIATOR, FILTER_KEY_PRIORITY, FILTER_KEY_STATUS, FILTER_NO_ASSIGNEE, FILTER_PRIORITY_HIGH, FILTER_PRIORITY_LOW, FILTER_PRIORITY_MEDIUM, FILTER_STATUS_ACTIVE, FILTER_STATUS_ANY, FILTER_STATUS_COMPLETE
Constructor and Description |
---|
AbstractWorkflowService(AlfrescoSession repositorySession)
Default constructor for service.
|
Modifier and Type | Method and Description |
---|---|
protected static String |
decodeKey(String key) |
void |
deleteProcess(Process process)
Deletes a process.
|
protected static String |
encodeKey(String key) |
List<Document> |
getDocuments(Process process)
Returns a list items associated to the process.
|
List<Document> |
getDocuments(Task task)
Returns a list items associated to the the task.
|
ProcessDefinition |
getProcessDefinitionByKey(String processDefinitionKey)
Returns a single process definition that matches the (versionless)
specific key.
|
List<ProcessDefinition> |
getProcessDefinitions() |
abstract org.apache.chemistry.opencmis.commons.impl.UrlBuilder |
getProcessDiagramUrl(String processId) |
List<Process> |
getProcesses()
Returns a list of processes in progress for the current user.
Each process is an execution of a process definition. |
protected abstract org.apache.chemistry.opencmis.commons.impl.UrlBuilder |
getProcessUrl(Process process)
Internal method to retrieve a specific process url.
|
List<Task> |
getTasks()
Returns a list of task in progress for the current user.
|
List<Task> |
getTasks(Process process)
Get all the tasks in progress for the specified process.
|
clear, convertException, convertNode, convertNode, convertStatusCode, delete, describeContents, getHttpInvoker, getSessionHttp, isCloudSession, isListNull, isMapNull, isObjectNull, isOnPremiseSession, isStringNull, post, put, read, saveContentStream, writeToParcel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addDocuments, claimTask, completeTask, getDocuments, getDocuments, getProcess, getProcessDefinition, getProcessDefinitions, getProcessDiagram, getProcessDiagram, getProcesses, getTask, getTasks, getTasks, getVariables, getVariables, reassignTask, refresh, refresh, removeDocuments, startProcess, unclaimTask, updateVariables, updateVariables
public AbstractWorkflowService(AlfrescoSession repositorySession)
AbstractServiceRegistry
.repositorySession
- public List<ProcessDefinition> getProcessDefinitions()
getProcessDefinitions
in interface WorkflowService
public ProcessDefinition getProcessDefinitionByKey(String processDefinitionKey)
WorkflowService
getProcessDefinitionByKey
in interface WorkflowService
processDefinitionKey
- : unique keyprotected abstract org.apache.chemistry.opencmis.commons.impl.UrlBuilder getProcessUrl(Process process)
process
- : a process objectpublic void deleteProcess(Process process)
deleteProcess
in interface WorkflowService
process
- : process object to deletepublic List<Process> getProcesses()
getProcesses
in interface WorkflowService
public List<Task> getTasks(Process process)
getTasks
in interface WorkflowService
public abstract org.apache.chemistry.opencmis.commons.impl.UrlBuilder getProcessDiagramUrl(String processId)
public List<Document> getDocuments(Task task)
getDocuments
in interface WorkflowService
public List<Document> getDocuments(Process process)
getDocuments
in interface WorkflowService
public List<Task> getTasks()
getTasks
in interface WorkflowService
Copyright © 2012-2018 Alfresco Software. All Rights Reserved.