Package com.logicaldoc.workflow.service
Class WorkflowServiceImpl
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
com.logicaldoc.web.service.AbstractRemoteService
com.logicaldoc.workflow.service.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.logicaldoc.web.service.AbstractRemoteService
implements com.logicaldoc.gui.frontend.client.services.WorkflowService
Implementation of the WorkflowService
- Since:
- 6.0
- Author:
- Matteo Caruso - LogicalDOC
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.WorkflowService
com.logicaldoc.gui.frontend.client.services.WorkflowService.Instance
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
void
appendDocuments
(String taskId, List<Long> docIds) void
applyTriggersToTree
(long rootId) static com.logicaldoc.gui.common.client.beans.GUIWorkflow
buildGUIWorkflow
(WorkflowDefinition definition) com.logicaldoc.gui.common.client.beans.GUIWorkflow
int
countAssignedTasks
(String username) void
void
deleteInstance
(String instanceId) void
deleteInstances
(List<String> ids) void
deleteNote
(long noteId) void
deleteTrigger
(long id) com.logicaldoc.gui.common.client.beans.GUIWorkflow
deploy
(com.logicaldoc.gui.common.client.beans.GUIWorkflow workflow) void
com.logicaldoc.gui.common.client.beans.GUIWorkflow
com.logicaldoc.gui.common.client.beans.GUIWorkflow
getCompletionDiagram
(String workflowName, Integer version, String processInstanceId) com.logicaldoc.gui.common.client.beans.GUIWorkflow
getWorkflowDetailsByTask
(String taskId) com.logicaldoc.gui.common.client.beans.GUIWorkflow
List<com.logicaldoc.gui.common.client.beans.GUIWorkflow>
list()
static com.logicaldoc.gui.common.client.beans.GUIWorkflow
loadWorkflow
(String workflowName, Integer version, long tenantId) static com.logicaldoc.gui.common.client.beans.GUIWorkflow
loadWorkflowByTaskId
(String taskId, long tenantId) An utility method to load workflow definition by a task ID.com.logicaldoc.gui.common.client.beans.GUIWorkflow
reassignTask
(String taskId, String userId) void
removeDocument
(String taskId, long docId) com.logicaldoc.gui.common.client.beans.GUIWorkflow
save
(com.logicaldoc.gui.common.client.beans.GUIWorkflow guiWorkflow) void
saveACL
(com.logicaldoc.gui.common.client.beans.GUIWorkflow guiWorkflow) void
saveTrigger
(String folderId, String workflowId, String templateId, String events) void
startWorkflow
(String workflowName, String workflowDescription, String tag, String color, List<Long> docIds) void
turnBackTaskToPool
(String taskId) void
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPost
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost
Methods inherited from class javax.servlet.http.HttpServlet
service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
WorkflowServiceImpl
public WorkflowServiceImpl()
-
-
Method Details
-
get
public com.logicaldoc.gui.common.client.beans.GUIWorkflow get(String workflowName, Integer version) throws com.logicaldoc.gui.common.client.ServerException - Specified by:
get
in interfacecom.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, Integer version, String processInstanceId) throws com.logicaldoc.gui.common.client.ServerException - Specified by:
getCompletionDiagram
in interfacecom.logicaldoc.gui.frontend.client.services.WorkflowService
- Throws:
com.logicaldoc.gui.common.client.ServerException
-
loadWorkflow
public static com.logicaldoc.gui.common.client.beans.GUIWorkflow loadWorkflow(String workflowName, Integer version, long tenantId) throws com.logicaldoc.core.PersistenceException - Throws:
com.logicaldoc.core.PersistenceException
-
buildGUIWorkflow
public static com.logicaldoc.gui.common.client.beans.GUIWorkflow buildGUIWorkflow(WorkflowDefinition definition) throws com.logicaldoc.core.PersistenceException - Throws:
com.logicaldoc.core.PersistenceException
-
delete
- Specified by:
delete
in interfacecom.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 interfacecom.logicaldoc.gui.frontend.client.services.WorkflowService
- Throws:
com.logicaldoc.gui.common.client.ServerException
-
deleteInstances
public void deleteInstances(List<String> ids) throws com.logicaldoc.gui.common.client.ServerException - Specified by:
deleteInstances
in interfacecom.logicaldoc.gui.frontend.client.services.WorkflowService
- Throws:
com.logicaldoc.gui.common.client.ServerException
-
saveACL
public void saveACL(com.logicaldoc.gui.common.client.beans.GUIWorkflow guiWorkflow) throws com.logicaldoc.gui.common.client.ServerException - Specified by:
saveACL
in interfacecom.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 guiWorkflow) throws com.logicaldoc.gui.common.client.ServerException - Specified by:
save
in interfacecom.logicaldoc.gui.frontend.client.services.WorkflowService
- Throws:
com.logicaldoc.gui.common.client.ServerException
-
deploy
public com.logicaldoc.gui.common.client.beans.GUIWorkflow deploy(com.logicaldoc.gui.common.client.beans.GUIWorkflow workflow) throws com.logicaldoc.gui.common.client.ServerException - Specified by:
deploy
in interfacecom.logicaldoc.gui.frontend.client.services.WorkflowService
- Throws:
com.logicaldoc.gui.common.client.ServerException
-
undeploy
- Specified by:
undeploy
in interfacecom.logicaldoc.gui.frontend.client.services.WorkflowService
- Throws:
com.logicaldoc.gui.common.client.ServerException
-
list
public List<com.logicaldoc.gui.common.client.beans.GUIWorkflow> list() throws com.logicaldoc.gui.common.client.ServerException- Specified by:
list
in interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.logicaldoc.gui.frontend.client.services.WorkflowService
- Throws:
com.logicaldoc.gui.common.client.ServerException
-
startWorkflow
public void startWorkflow(String workflowName, String workflowDescription, String tag, String color, List<Long> docIds) throws com.logicaldoc.gui.common.client.ServerException - Specified by:
startWorkflow
in interfacecom.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 interfacecom.logicaldoc.gui.frontend.client.services.WorkflowService
- Throws:
com.logicaldoc.gui.common.client.ServerException
-
loadWorkflowByTaskId
public static com.logicaldoc.gui.common.client.beans.GUIWorkflow loadWorkflowByTaskId(String taskId, long tenantId) throws com.logicaldoc.core.PersistenceException An utility method to load workflow definition by a task ID.- Parameters:
taskId
- identifier of the task in a workflow instancetenantId
- identifier of the current tenant- Returns:
- the workflow scheme
- Throws:
com.logicaldoc.core.PersistenceException
- Error in the data layer
-
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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.logicaldoc.gui.frontend.client.services.WorkflowService
- Throws:
com.logicaldoc.gui.common.client.ServerException
-
appendDocuments
public void appendDocuments(String taskId, List<Long> docIds) throws com.logicaldoc.gui.common.client.ServerException - Specified by:
appendDocuments
in interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.logicaldoc.gui.frontend.client.services.WorkflowService
- Throws:
com.logicaldoc.gui.common.client.ServerException
-