public class WorkflowRestImpl extends Object
Modifier and Type | Field and Description |
---|---|
protected org.activiti.engine.ProcessEngine |
activitiProcessEngine |
protected AuthorityService |
authorityService |
protected static String |
BPM_PACKAGE |
protected boolean |
deployWorkflowsInTenant |
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dictionaryService |
protected List<String> |
excludeModelTypes |
protected org.alfresco.service.namespace.NamespaceService |
namespaceService |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
protected org.alfresco.repo.tenant.TenantService |
tenantService |
Constructor and Description |
---|
WorkflowRestImpl() |
Modifier and Type | Method and Description |
---|---|
protected Item |
createItemForNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
Item |
createItemInProcess(String itemId,
String processId)
Create a new item in the process package variable
|
void |
deleteItemFromProcess(String itemId,
String processId)
Delete an item from the process package variable
|
CollectionWithPagingInfo<FormModelElement> |
getFormModelElements(org.alfresco.service.cmr.dictionary.TypeDefinition type,
Paging paging) |
Item |
getItemFromProcess(String itemId,
String processId)
Get an item from the process package variable
|
CollectionWithPagingInfo<Item> |
getItemsFromProcess(String processId,
Paging paging)
Get all items from the process package variable
|
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef(String itemId)
Create NodeRef from item id String
|
<T> T |
getParameter(Parameters parameters,
String parameterName,
Class<T> returnType)
Get the first parameter value, converted to the requested type.
|
protected Set<org.alfresco.service.namespace.QName> |
getTypesToExclude(org.alfresco.service.cmr.dictionary.TypeDefinition taskType) |
void |
setActivitiProcessEngine(org.activiti.engine.ProcessEngine activitiProcessEngine) |
void |
setActivitiWorkflowEngine(ActivitiWorkflowEngine activitiWorkflowEngine) |
void |
setAuthorityService(AuthorityService authorityService) |
void |
setDeployWorkflowsInTenant(boolean deployWorkflowsInTenant) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
protected List<org.activiti.engine.history.HistoricVariableInstance> |
validateIfUserAllowedToWorkWithProcess(String processId)
Validates if the logged in user is allowed to get information about a specific process instance.
|
protected static final String BPM_PACKAGE
protected org.alfresco.repo.tenant.TenantService tenantService
protected AuthorityService authorityService
protected org.alfresco.service.namespace.NamespaceService namespaceService
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected org.activiti.engine.ProcessEngine activitiProcessEngine
protected boolean deployWorkflowsInTenant
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void setAuthorityService(AuthorityService authorityService)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setActivitiProcessEngine(org.activiti.engine.ProcessEngine activitiProcessEngine)
public void setDeployWorkflowsInTenant(boolean deployWorkflowsInTenant)
public org.alfresco.service.cmr.repository.NodeRef getNodeRef(String itemId)
public CollectionWithPagingInfo<Item> getItemsFromProcess(String processId, Paging paging)
public Item getItemFromProcess(String itemId, String processId)
public Item createItemInProcess(String itemId, String processId)
public void deleteItemFromProcess(String itemId, String processId)
public <T> T getParameter(Parameters parameters, String parameterName, Class<T> returnType)
parameters
- used to extract parameter value fromparameterName
- name of the parameterreturnType
- type of object to returnIllegalArgumentException
- when no conversion for the given returnType is available or if returnType is null.InvalidArgumentException
- when conversion to the given type was not possiblepublic CollectionWithPagingInfo<FormModelElement> getFormModelElements(org.alfresco.service.cmr.dictionary.TypeDefinition type, Paging paging)
type
- the type to get the elements forpaging
- Pagingprotected Set<org.alfresco.service.namespace.QName> getTypesToExclude(org.alfresco.service.cmr.dictionary.TypeDefinition taskType)
taskType
- type of the taskprotected List<org.activiti.engine.history.HistoricVariableInstance> validateIfUserAllowedToWorkWithProcess(String processId)
processId
- identifier of the process instanceprotected Item createItemForNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public void setActivitiWorkflowEngine(ActivitiWorkflowEngine activitiWorkflowEngine)
Copyright © 2005–2017 Alfresco Software. All rights reserved.