Package com.openkm.sdk4j.definition
Interface BaseWorkflow
- All Known Implementing Classes:
WorkflowImpl
public interface BaseWorkflow
BaseWorkflow
- Author:
- sochoa
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteProcessDefinition(long pdId) Delete process definition.voidendTaskInstance(long tiId, String transName) End task instance.Find all process definitions list.Find last process definition process definition.Find latest process definitions list.findPooledTaskInstances(int offset, int limit) Find pooled task instances task instance result set.findProcessInstances(long pdId) Find process instances list.Find process instances list by nodefindTaskInstances(long piId) Find task instances list.findUserTaskInstances(int offset, int limit) Find user task instances task instance result set.getProcessDefinition(long pdId) Gets process definition.getProcessDefinitionForms(long pdId) Gets process definition forms.getProcessDefinitionImage(long pdId, String uuid) Gets process definition image.getProcessInstance(long piId) Gets process instance.getSuggestBoxKeyValue(long pdId, String uuid, String taskName, String propertyName, String key) Gets suggest box key value.getSuggestBoxKeyValuesFiltered(long pdId, String uuid, String taskName, String propertyName, String filter) Gets suggest box key values filtered.getTaskInstance(long tiId) Gets task instance.voidRegister process definition.runProcessDefinition(long pdId, String uuid, Map<String, String> propertiesMap) Run process definition process instance.voidsetTaskInstanceActorId(long tiId, String actorId) Sets task instance actor id.voidsetTaskInstanceValues(long pdId, long tiId, String tiName, String transName, Map<String, String> properties) Sets task instance values.voidstartTaskInstance(long tiId) Start task instance.
-
Method Details
-
registerProcessDefinition
void registerProcessDefinition(InputStream is) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException Register process definition.- Parameters:
is- the is- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWorkflowException- the workflow exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
deleteProcessDefinition
void deleteProcessDefinition(long pdId) throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException Delete process definition.- Parameters:
pdId- the pd id- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWorkflowException- the workflow exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getProcessDefinition
ProcessDefinition getProcessDefinition(long pdId) throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException Gets process definition.- Parameters:
pdId- the pd id- Returns:
- the process definition
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWorkflowException- the workflow exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getProcessDefinitionImage
String getProcessDefinitionImage(long pdId, String uuid) throws PathNotFoundException, AccessDeniedException, ConversionException, AutomationException, RepositoryException, DatabaseException, UnknownException, WebserviceException Gets process definition image.- Parameters:
pdId- the pd iduuid- the uuid- Returns:
- the process definition image
- Throws:
PathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionConversionException- the conversion exceptionAutomationException- the automation exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
runProcessDefinition
ProcessInstance runProcessDefinition(long pdId, String uuid, Map<String, String> propertiesMap) throws WorkflowException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceExceptionRun process definition process instance.- Parameters:
pdId- the pd iduuid- the uuidpropertiesMap- the properties map- Returns:
- the process instance
- Throws:
WorkflowException- the workflow exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findProcessInstances
List<ProcessInstance> findProcessInstances(long pdId) throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException Find process instances list.- Parameters:
pdId- the pd id- Returns:
- the list
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWorkflowException- the workflow exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findAllProcessDefinitions
List<ProcessDefinition> findAllProcessDefinitions() throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceExceptionFind all process definitions list.- Returns:
- the list
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWorkflowException- the workflow exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findLatestProcessDefinitions
List<ProcessDefinition> findLatestProcessDefinitions() throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceExceptionFind latest process definitions list.- Returns:
- the list
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWorkflowException- the workflow exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findLastProcessDefinition
ProcessDefinition findLastProcessDefinition(String name) throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException Find last process definition process definition.- Parameters:
name- the name- Returns:
- the process definition
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWorkflowException- the workflow exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getProcessInstance
ProcessInstance getProcessInstance(long piId) throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException Gets process instance.- Parameters:
piId- the pi id- Returns:
- the process instance
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWorkflowException- the workflow exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findUserTaskInstances
TaskInstanceResultSet findUserTaskInstances(int offset, int limit) throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException Find user task instances task instance result set.- Parameters:
offset- the offsetlimit- the limit- Returns:
- the task instance result set
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWorkflowException- the workflow exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findTaskInstances
List<TaskInstance> findTaskInstances(long piId) throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException Find task instances list.- Parameters:
piId- the pi id- Returns:
- the list
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWorkflowException- the workflow exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
setTaskInstanceValues
void setTaskInstanceValues(long pdId, long tiId, String tiName, String transName, Map<String, String> properties) throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceExceptionSets task instance values.- Parameters:
pdId- the pd idtiId- the ti idtiName- the ti nametransName- the trans nameproperties- the properties- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWorkflowException- the workflow exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getTaskInstance
TaskInstance getTaskInstance(long tiId) throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException Gets task instance.- Parameters:
tiId- the ti id- Returns:
- the task instance
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWorkflowException- the workflow exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
setTaskInstanceActorId
void setTaskInstanceActorId(long tiId, String actorId) throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException Sets task instance actor id.- Parameters:
tiId- the ti idactorId- the actor id- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWorkflowException- the workflow exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
startTaskInstance
void startTaskInstance(long tiId) throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException Start task instance.- Parameters:
tiId- the ti id- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWorkflowException- the workflow exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
endTaskInstance
void endTaskInstance(long tiId, String transName) throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException End task instance.- Parameters:
tiId- the ti idtransName- the trans name- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWorkflowException- the workflow exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getProcessDefinitionForms
Map<String,List<FormElement>> getProcessDefinitionForms(long pdId) throws ParseException, AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException Gets process definition forms.- Parameters:
pdId- the pd id- Returns:
- the process definition forms
- Throws:
ParseException- the parse exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWorkflowException- the workflow exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getSuggestBoxKeyValuesFiltered
Map<String,String> getSuggestBoxKeyValuesFiltered(long pdId, String uuid, String taskName, String propertyName, String filter) throws ParseException, AccessDeniedException, DatabaseException, PluginNotFoundException, UnknownException, WebserviceException Gets suggest box key values filtered.- Parameters:
pdId- the pd iduuid- the uuidtaskName- the task namepropertyName- the property namefilter- the filter- Returns:
- the suggest box key values filtered
- Throws:
ParseException- the parse exceptionAccessDeniedException- the access denied exceptionDatabaseException- the database exceptionPluginNotFoundException- the plugin not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getSuggestBoxKeyValue
String getSuggestBoxKeyValue(long pdId, String uuid, String taskName, String propertyName, String key) throws ParseException, AccessDeniedException, DatabaseException, PluginNotFoundException, UnknownException, WebserviceException Gets suggest box key value.- Parameters:
pdId- the pd iduuid- the uuidtaskName- the task namepropertyName- the property namekey- the key- Returns:
- the suggest box key value
- Throws:
ParseException- the parse exceptionAccessDeniedException- the access denied exceptionDatabaseException- the database exceptionPluginNotFoundException- the plugin not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findPooledTaskInstances
TaskInstanceResultSet findPooledTaskInstances(int offset, int limit) throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException Find pooled task instances task instance result set.- Parameters:
offset- the offsetlimit- the limit- Returns:
- the task instance result set
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWorkflowException- the workflow exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findProcessInstancesByNode
List<ProcessInstance> findProcessInstancesByNode(String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException Find process instances list by node- Parameters:
uuid- the uuid- Returns:
- the list
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWorkflowException- the workflow exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-