Class WorkflowRestImpl

    • Field Detail

      • namespaceService

        protected org.alfresco.service.namespace.NamespaceService namespaceService
      • dictionaryService

        protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
      • activitiProcessEngine

        protected org.activiti.engine.ProcessEngine activitiProcessEngine
      • deployWorkflowsInTenant

        protected boolean deployWorkflowsInTenant
      • excludeModelTypes

        protected List<String> excludeModelTypes
    • Constructor Detail

      • WorkflowRestImpl

        public WorkflowRestImpl()
    • Method Detail

      • setTenantService

        public void setTenantService​(TenantService tenantService)
      • setAuthorityService

        public void setAuthorityService​(AuthorityService authorityService)
      • setNamespaceService

        public void setNamespaceService​(org.alfresco.service.namespace.NamespaceService namespaceService)
      • setDictionaryService

        public void setDictionaryService​(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
      • setNodeService

        public void setNodeService​(NodeService nodeService)
      • setActivitiProcessEngine

        public void setActivitiProcessEngine​(org.activiti.engine.ProcessEngine activitiProcessEngine)
      • setDeployWorkflowsInTenant

        public void setDeployWorkflowsInTenant​(boolean deployWorkflowsInTenant)
      • getNodeRef

        public NodeRef getNodeRef​(String itemId)
        Create NodeRef from item id String
      • getItemFromProcess

        public Item getItemFromProcess​(String itemId,
                                       String processId)
        Get an item from the process package variable
      • createItemInProcess

        public Item createItemInProcess​(String itemId,
                                        String processId)
        Create a new item in the process package variable
      • deleteItemFromProcess

        public void deleteItemFromProcess​(String itemId,
                                          String processId)
        Delete an item from the process package variable
      • getParameter

        public <T> T getParameter​(Parameters parameters,
                                  String parameterName,
                                  Class<T> returnType)
        Get the first parameter value, converted to the requested type.
        Parameters:
        parameters - used to extract parameter value from
        parameterName - name of the parameter
        returnType - type of object to return
        Returns:
        the converted parameter value. Null, if the parameter has no value.
        Throws:
        IllegalArgumentException - when no conversion for the given returnType is available or if returnType is null.
        InvalidArgumentException - when conversion to the given type was not possible
      • getFormModelElements

        public CollectionWithPagingInfo<FormModelElement> getFormModelElements​(org.alfresco.service.cmr.dictionary.TypeDefinition type,
                                                                               Paging paging)
        Parameters:
        type - the type to get the elements for
        paging - Paging
        Returns:
        collection with all valid form-model elements for the given type.
      • getTypesToExclude

        protected Set<org.alfresco.service.namespace.QName> getTypesToExclude​(org.alfresco.service.cmr.dictionary.TypeDefinition taskType)
        Parameters:
        taskType - type of the task
        Returns:
        all types (and aspects) which properties should not be used for form-model elements
      • validateIfUserAllowedToWorkWithProcess

        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. If the user is not allowed an exception is thrown.
        Parameters:
        processId - identifier of the process instance
      • createItemForNodeRef

        protected Item createItemForNodeRef​(NodeRef nodeRef)
      • setActivitiWorkflowEngine

        public void setActivitiWorkflowEngine​(ActivitiWorkflowEngine activitiWorkflowEngine)