public class WorkflowRestImpl
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.activiti.engine.ProcessEngine |
activitiProcessEngine |
protected org.alfresco.service.cmr.security.AuthorityService |
authorityService |
protected static java.lang.String |
BPM_PACKAGE |
protected boolean |
deployWorkflowsInTenant |
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dictionaryService |
protected java.util.List |
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(java.lang.String itemId,
java.lang.String processId)
Create a new item in the process package variable
|
void |
deleteItemFromProcess(java.lang.String itemId,
java.lang.String processId)
Delete an item from the process package variable
|
CollectionWithPagingInfo |
getFormModelElements(org.alfresco.service.cmr.dictionary.TypeDefinition type,
Paging paging) |
Item |
getItemFromProcess(java.lang.String itemId,
java.lang.String processId)
Get an item from the process package variable
|
CollectionWithPagingInfo |
getItemsFromProcess(java.lang.String processId,
Paging paging)
Get all items from the process package variable
|
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef(java.lang.String itemId)
Create NodeRef from item id String
|
java.lang.Object |
getParameter(Parameters parameters,
java.lang.String parameterName,
java.lang.Class returnType)
Get the first parameter value, converted to the requested type.
|
protected java.util.Set |
getTypesToExclude(org.alfresco.service.cmr.dictionary.TypeDefinition taskType) |
void |
setActivitiProcessEngine(org.activiti.engine.ProcessEngine activitiProcessEngine) |
void |
setAuthorityService(org.alfresco.service.cmr.security.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 java.util.List |
validateIfUserAllowedToWorkWithProcess(java.lang.String processId)
Validates if the logged in user is allowed to get information about a specific process instance.
|
protected static final java.lang.String BPM_PACKAGE
protected org.alfresco.repo.tenant.TenantService tenantService
protected org.alfresco.service.cmr.security.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
protected java.util.List excludeModelTypes
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void setAuthorityService(org.alfresco.service.cmr.security.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(java.lang.String itemId)
public CollectionWithPagingInfo getItemsFromProcess(java.lang.String processId, Paging paging)
public Item getItemFromProcess(java.lang.String itemId, java.lang.String processId)
public Item createItemInProcess(java.lang.String itemId, java.lang.String processId)
public void deleteItemFromProcess(java.lang.String itemId, java.lang.String processId)
public java.lang.Object getParameter(Parameters parameters, java.lang.String parameterName, java.lang.Class returnType)
parameters
- used to extract parameter value fromparameterName
- name of the parameterreturnType
- type of object to returnjava.lang.IllegalArgumentException
- 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 getFormModelElements(org.alfresco.service.cmr.dictionary.TypeDefinition type, Paging paging)
type
- the type to get the elements forpaging
- protected java.util.Set getTypesToExclude(org.alfresco.service.cmr.dictionary.TypeDefinition taskType)
taskType
- type of the taskprotected java.util.List validateIfUserAllowedToWorkWithProcess(java.lang.String processId)
processId
- identifier of the process instanceprotected Item createItemForNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.