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.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.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 Summary
Constructors Constructor Description WorkflowServiceImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
addNote(String taskId, String note)
void
appendDocuments(String taskId, Long[] docIds)
void
applyTriggersToTree(long rootId)
static com.logicaldoc.gui.common.client.beans.GUIWorkflow
buildGUIWorkflow(WorkflowDefinition definition)
com.logicaldoc.gui.common.client.beans.GUIWorkflow
claimTask(String taskId, String userId)
int
countAssignedTasks(String username)
void
delete(String workflowName)
void
deleteInstance(String instanceId)
void
deleteInstances(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
endTask(String taskId, String transitionName)
com.logicaldoc.gui.common.client.beans.GUIWorkflow
get(String workflowName, Integer version)
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
importSchema()
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 workflow)
void
saveTrigger(String folderId, String workflowId, String templateId, String events)
void
startWorkflow(String workflowName, String workflowDescription, String tag, long[] docIds)
void
turnBackTaskToPool(String taskId)
void
undeploy(String workflowName)
-
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPost
-
-
-
-
Method Detail
-
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)
-
buildGUIWorkflow
public static com.logicaldoc.gui.common.client.beans.GUIWorkflow buildGUIWorkflow(WorkflowDefinition definition)
-
delete
public void delete(String workflowName) throws com.logicaldoc.gui.common.client.ServerException
- 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(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
-
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 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
public void undeploy(String workflowName) throws com.logicaldoc.gui.common.client.ServerException
- Specified by:
undeploy
in interfacecom.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 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, 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)
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
-
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, 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
-
-