Class SoapWorkflowService
java.lang.Object
com.logicaldoc.webservice.AbstractService
com.logicaldoc.workflow.webservice.soap.endpoint.SoapWorkflowService
- All Implemented Interfaces:
- WorkflowService
public class SoapWorkflowService
extends com.logicaldoc.webservice.AbstractService
implements WorkflowService
Implementation of the WorkflowService
- Since:
- 7.6
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionAdds a new notevoidappendDocuments(String sid, String taskId, List<Long> docIds) Appends new documents to the workflowvoidClaims a taskvoidCompletes a task taking a given transitiongetHistories(String sid, String instanceId, WorkflowEvent event) Gets the histories of a workflow instanceRetrieves the tasks assigned to the current usergetTasksICanOwn(String sid) Retrieves the tasks that can be owned by the current usergetWorkflows(String sid) Lists the available workflowsvoidReassigns a task to another userLaunches a new workflow instancevoidTurns a task back to poolMethods inherited from class com.logicaldoc.webservice.AbstractServiceconvertDateToString, convertStringToDate, getCurrentMessage, isValidateSession, setCurrentMessage, setValidateSession
- 
Constructor Details- 
SoapWorkflowServicepublic SoapWorkflowService()
 
- 
- 
Method Details- 
claimpublic void claim(String sid, String taskId) throws com.logicaldoc.core.PersistenceException, FeatureNotEnabledException, com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException Description copied from interface:WorkflowServiceClaims a task- Specified by:
- claimin interface- WorkflowService
- Parameters:
- sid- identifier of the session
- taskId- identifier of the task
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the data layer
- FeatureNotEnabledException- Feature not enabled in the license
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- com.logicaldoc.webservice.WebserviceException- Webservice error
 
- 
completepublic void complete(String sid, String taskId, String transition) throws com.logicaldoc.core.security.authentication.AuthenticationException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException, WorkflowValidationException Description copied from interface:WorkflowServiceCompletes a task taking a given transition- Specified by:
- completein interface- WorkflowService
- Parameters:
- sid- identifier of the session
- taskId- identifier of the task
- transition- name of the transition
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- FeatureNotEnabledException- Feature not enabled in the license
- com.logicaldoc.webservice.WebserviceException- Webservice error
- com.logicaldoc.core.PersistenceException- Error in the data layer
- WorkflowValidationException- The task cannot be completed due to validation failures
 
- 
unclaimpublic void unclaim(String sid, String taskId) throws com.logicaldoc.core.security.authentication.AuthenticationException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:WorkflowServiceTurns a task back to pool- Specified by:
- unclaimin interface- WorkflowService
- Parameters:
- sid- identifier of the session
- taskId- identifier of the task
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- FeatureNotEnabledException- Feature not enabled in the license
- com.logicaldoc.webservice.WebserviceException- Webservice error
- com.logicaldoc.core.PersistenceException- Error in the data layer
 
- 
reassignpublic void reassign(String sid, String taskId, long userId) throws com.logicaldoc.core.security.authentication.AuthenticationException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:WorkflowServiceReassigns a task to another user- Specified by:
- reassignin interface- WorkflowService
- Parameters:
- sid- identifier of the session
- taskId- identifier of the task
- userId- identifier of the user
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- FeatureNotEnabledException- Feature not enabled in the license
- com.logicaldoc.webservice.WebserviceException- Webservice error
- com.logicaldoc.core.PersistenceException- Error in the data layer
 
- 
addNotepublic WSWorkflowHistory addNote(String sid, String taskId, String note) throws com.logicaldoc.core.security.authentication.AuthenticationException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:WorkflowServiceAdds a new note- Specified by:
- addNotein interface- WorkflowService
- Parameters:
- sid- identifier of the session
- taskId- identifier of the task
- note- text of the note
- Returns:
- the event created for this note
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- FeatureNotEnabledException- Feature not enabled in the license
- com.logicaldoc.webservice.WebserviceException- Webservice error
- com.logicaldoc.core.PersistenceException- Error in the data layer
 
- 
getHistoriespublic List<WSWorkflowHistory> getHistories(String sid, String instanceId, WorkflowEvent event) throws com.logicaldoc.core.security.authentication.AuthenticationException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:WorkflowServiceGets the histories of a workflow instance- Specified by:
- getHistoriesin interface- WorkflowService
- Parameters:
- sid- identifier of the session
- instanceId- identifier of the workflow instance
- event- optional filter on a specific event type
- Returns:
- the histories
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- FeatureNotEnabledException- Feature not enabled in the license
- com.logicaldoc.webservice.WebserviceException- Webservice error
- com.logicaldoc.core.PersistenceException- Error in the data layer
 
- 
appendDocumentspublic void appendDocuments(String sid, String taskId, List<Long> docIds) throws com.logicaldoc.core.security.authentication.AuthenticationException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:WorkflowServiceAppends new documents to the workflow- Specified by:
- appendDocumentsin interface- WorkflowService
- Parameters:
- sid- identifier of the session
- taskId- identifier of the task
- docIds- identifiers of the documents to append
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- FeatureNotEnabledException- Feature not enabled in the license
- com.logicaldoc.webservice.WebserviceException- Webservice error
- com.logicaldoc.core.PersistenceException- Error in the data layer
 
- 
getTasksAssignedToMepublic List<WSWorkflowTask> getTasksAssignedToMe(String sid) throws com.logicaldoc.core.security.authentication.AuthenticationException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:WorkflowServiceRetrieves the tasks assigned to the current user- Specified by:
- getTasksAssignedToMein interface- WorkflowService
- Parameters:
- sid- identifier of the session
- Returns:
- list of tasks
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- FeatureNotEnabledException- Feature not enabled in the license
- com.logicaldoc.webservice.WebserviceException- Webservice error
- com.logicaldoc.core.PersistenceException- Error in the data layer
 
- 
getTasksICanOwnpublic List<WSWorkflowTask> getTasksICanOwn(String sid) throws com.logicaldoc.core.security.authentication.AuthenticationException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:WorkflowServiceRetrieves the tasks that can be owned by the current user- Specified by:
- getTasksICanOwnin interface- WorkflowService
- Parameters:
- sid- identifier of the session
- Returns:
- list of tasks
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- FeatureNotEnabledException- Feature not enabled in the license
- com.logicaldoc.webservice.WebserviceException- Webservice error
- com.logicaldoc.core.PersistenceException- Error in the data layer
 
- 
getWorkflowspublic List<String> getWorkflows(String sid) throws com.logicaldoc.core.security.authentication.AuthenticationException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:WorkflowServiceLists the available workflows- Specified by:
- getWorkflowsin interface- WorkflowService
- Parameters:
- sid- identifier of the session
- Returns:
- list of the workflow names
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- FeatureNotEnabledException- Feature not enabled in the license
- com.logicaldoc.webservice.WebserviceException- Webservice error
- com.logicaldoc.core.PersistenceException- Error in the data layer
 
- 
startWorkflowpublic String startWorkflow(String sid, String workflow, String tag, String color, List<Long> docIds) throws com.logicaldoc.core.security.authentication.AuthenticationException, FeatureNotEnabledException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:WorkflowServiceLaunches a new workflow instance- Specified by:
- startWorkflowin interface- WorkflowService
- Parameters:
- sid- identifier of the session
- workflow- name of the workflow
- tag- a tag you can assign to the new instance
- docIds- identifiers of the documents to be appended to the workflow
- Returns:
- identifier of the workflow instance
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- FeatureNotEnabledException- Feature not enabled in the license
- com.logicaldoc.webservice.WebserviceException- Webservice error
- com.logicaldoc.core.PersistenceException- Error in the data layer
 
 
-