Class WorkflowServiceImpl

  • All Implemented Interfaces:
    com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, com.logicaldoc.gui.frontend.client.services.WorkflowService, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class WorkflowServiceImpl
    extends com.google.gwt.user.server.rpc.RemoteServiceServlet
    implements com.logicaldoc.gui.frontend.client.services.WorkflowService
    Implementation of the WorkflowService
    Since:
    6.0
    Author:
    Matteo Caruso - LogicalDOC
    See Also:
    Serialized Form
    • Constructor Detail

      • WorkflowServiceImpl

        public WorkflowServiceImpl()
    • Method Detail

      • get

        public com.logicaldoc.gui.common.client.beans.GUIWorkflow get​(String workflowName)
                                                               throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        get in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • getCompletionDiagram

        public com.logicaldoc.gui.common.client.beans.GUIWorkflow getCompletionDiagram​(String workflowName,
                                                                                       String processInstanceId)
                                                                                throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        getCompletionDiagram in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • loadWorkflow

        public com.logicaldoc.gui.common.client.beans.GUIWorkflow loadWorkflow​(String workflowName,
                                                                               long tenantId)
      • delete

        public void delete​(String workflowName)
                    throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        delete in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • deleteInstance

        public void deleteInstance​(String instanceId)
                            throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        deleteInstance in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • save

        public com.logicaldoc.gui.common.client.beans.GUIWorkflow save​(com.logicaldoc.gui.common.client.beans.GUIWorkflow workflow)
                                                                throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        save in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • deploy

        public void deploy​(com.logicaldoc.gui.common.client.beans.GUIWorkflow workflow)
                    throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        deploy in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • undeploy

        public void undeploy​(String workflowName)
                      throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        undeploy in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • list

        public com.logicaldoc.gui.common.client.beans.GUIWorkflow[] list()
                                                                  throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        list in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • deleteTrigger

        public void deleteTrigger​(long id)
                           throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        deleteTrigger in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • applyTriggersToTree

        public void applyTriggersToTree​(long rootId)
                                 throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        applyTriggersToTree in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • saveTrigger

        public void saveTrigger​(String folderId,
                                String workflowId,
                                String templateId,
                                String events)
                         throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        saveTrigger in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • startWorkflow

        public void startWorkflow​(String workflowName,
                                  String workflowDescription,
                                  String tag,
                                  long[] docIds)
                           throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        startWorkflow in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • getWorkflowDetailsByTask

        public com.logicaldoc.gui.common.client.beans.GUIWorkflow getWorkflowDetailsByTask​(String taskId)
                                                                                    throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        getWorkflowDetailsByTask in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • claimTask

        public com.logicaldoc.gui.common.client.beans.GUIWorkflow claimTask​(String taskId,
                                                                            String userId)
                                                                     throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        claimTask in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • reassignTask

        public com.logicaldoc.gui.common.client.beans.GUIWorkflow reassignTask​(String taskId,
                                                                               String userId)
                                                                        throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        reassignTask in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • turnBackTaskToPool

        public void turnBackTaskToPool​(String taskId)
                                throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        turnBackTaskToPool in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • endTask

        public void endTask​(String taskId,
                            String transitionName)
                     throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        endTask in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • countAssignedTasks

        public int countAssignedTasks​(String username)
                               throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        countAssignedTasks in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • appendDocuments

        public void appendDocuments​(String taskId,
                                    Long[] docIds)
                             throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        appendDocuments in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • importSchema

        public com.logicaldoc.gui.common.client.beans.GUIWorkflow importSchema()
                                                                        throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        importSchema in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • deleteNote

        public void deleteNote​(long noteId)
                        throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        deleteNote in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • addNote

        public long addNote​(String taskId,
                            String note)
                     throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        addNote in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException
      • removeDocument

        public void removeDocument​(String taskId,
                                   long docId)
                            throws com.logicaldoc.gui.common.client.ServerException
        Specified by:
        removeDocument in interface com.logicaldoc.gui.frontend.client.services.WorkflowService
        Throws:
        com.logicaldoc.gui.common.client.ServerException