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 DictionaryService |
dictionaryService |
protected List<String> |
excludeModelTypes |
protected NamespaceService |
namespaceService |
protected NodeService |
nodeService |
protected TenantService |
tenantService |
| Constructor and Description |
|---|
WorkflowRestImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected Item |
createItemForNodeRef(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(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
|
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<QName> |
getTypesToExclude(TypeDefinition taskType) |
void |
setActivitiProcessEngine(org.activiti.engine.ProcessEngine activitiProcessEngine) |
void |
setActivitiWorkflowEngine(ActivitiWorkflowEngine activitiWorkflowEngine) |
void |
setAuthorityService(AuthorityService authorityService) |
void |
setDeployWorkflowsInTenant(boolean deployWorkflowsInTenant) |
void |
setDictionaryService(DictionaryService dictionaryService) |
void |
setNamespaceService(NamespaceService namespaceService) |
void |
setNodeService(NodeService nodeService) |
void |
setTenantService(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 TenantService tenantService
protected AuthorityService authorityService
protected NamespaceService namespaceService
protected DictionaryService dictionaryService
protected NodeService nodeService
protected org.activiti.engine.ProcessEngine activitiProcessEngine
protected boolean deployWorkflowsInTenant
public void setTenantService(TenantService tenantService)
public void setAuthorityService(AuthorityService authorityService)
public void setNamespaceService(NamespaceService namespaceService)
public void setDictionaryService(DictionaryService dictionaryService)
public void setNodeService(NodeService nodeService)
public void setActivitiProcessEngine(org.activiti.engine.ProcessEngine activitiProcessEngine)
public void setDeployWorkflowsInTenant(boolean deployWorkflowsInTenant)
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(TypeDefinition type, Paging paging)
type - the type to get the elements forpaging - Pagingprotected Set<QName> getTypesToExclude(TypeDefinition taskType)
taskType - type of the taskprotected List<org.activiti.engine.history.HistoricVariableInstance> validateIfUserAllowedToWorkWithProcess(String processId)
processId - identifier of the process instancepublic void setActivitiWorkflowEngine(ActivitiWorkflowEngine activitiWorkflowEngine)
Copyright © 2005–2020 Alfresco Software. All rights reserved.