public class WorkflowImpl extends ClientImpl implements BaseWorkflow, Serializable
| Constructor and Description |
|---|
WorkflowImpl(String host)
OKMAuth
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteProcessDefinition(long pdId)
Delete process definition.
|
void |
endTaskInstance(long tiId,
String transName)
End task instance.
|
List<ProcessDefinition> |
findAllProcessDefinitions()
Find all process definitions list.
|
ProcessDefinition |
findLastProcessDefinition(String name)
Find last process definition process definition.
|
List<ProcessDefinition> |
findLatestProcessDefinitions()
Find latest process definitions list.
|
TaskInstanceResultSet |
findPooledTaskInstances()
Find pooled task instances task instance result set.
|
List<ProcessInstance> |
findProcessInstances(long pdId)
Find process instances list.
|
List<ProcessInstance> |
findProcessInstancesByNode(String uuid)
Find process instances list by node
|
List<TaskInstance> |
findTaskInstances(long piId)
Find task instances list.
|
TaskInstanceResultSet |
findUserTaskInstances()
Find user task instances task instance result set.
|
ProcessDefinition |
getProcessDefinition(long pdId)
Gets process definition.
|
Map<String,List<FormElement>> |
getProcessDefinitionForms(long pdId)
Gets process definition forms.
|
String |
getProcessDefinitionImage(String pdId,
String uuid)
Gets process definition image.
|
ProcessInstance |
getProcessInstance(long piId)
Gets process instance.
|
String |
getSuggestBoxKeyValue(long pdId,
String uuid,
String taskName,
String propertyName,
String key)
Gets suggest box key value.
|
Map<String,String> |
getSuggestBoxKeyValuesFiltered(long pdId,
String uuid,
String taskName,
String propertyName,
String filter)
Gets suggest box key values filtered.
|
TaskInstance |
getTaskInstance(long tiId)
Gets task instance.
|
void |
registerProcessDefinition(InputStream is)
Register process definition.
|
ProcessInstance |
runProcessDefinition(long pdId,
String uuid,
Map<String,String> propertiesMap)
Run process definition process instance.
|
void |
setAuthorizationToken(String authorizationToken)
setAuthenticationToken
|
void |
setTaskInstanceActorId(long tiId,
String actorId)
Sets task instance actor id.
|
void |
setTaskInstanceValues(long pdId,
long tiId,
String tiName,
String transName,
Map<String,String> properties)
Sets task instance values.
|
void |
startTaskInstance(long tiId)
Start task instance.
|
getClient, resource, resource, resourcepublic WorkflowImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public void registerProcessDefinition(InputStream is) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException
BaseWorkflowregisterProcessDefinition in interface BaseWorkflowis - the isAccessDeniedException - the access denied exceptionParseException - the parse exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionWorkflowException - the workflow exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic void deleteProcessDefinition(long pdId)
throws AccessDeniedException,
RepositoryException,
DatabaseException,
WorkflowException,
UnknownException,
WebserviceException
BaseWorkflowdeleteProcessDefinition in interface BaseWorkflowpdId - the pd idAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionWorkflowException - the workflow exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic ProcessDefinition getProcessDefinition(long pdId) throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException
BaseWorkflowgetProcessDefinition in interface BaseWorkflowpdId - the pd idAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionWorkflowException - the workflow exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic ProcessInstance runProcessDefinition(long pdId, String uuid, Map<String,String> propertiesMap) throws WorkflowException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseWorkflowrunProcessDefinition in interface BaseWorkflowpdId - the pd iduuid - the uuidpropertiesMap - the properties mapWorkflowException - the workflow exceptionAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic List<ProcessInstance> findProcessInstances(long pdId) throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException
BaseWorkflowfindProcessInstances in interface BaseWorkflowpdId - the pd idAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionWorkflowException - the workflow exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic List<ProcessDefinition> findAllProcessDefinitions() throws RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException, AccessDeniedException
BaseWorkflowfindAllProcessDefinitions in interface BaseWorkflowRepositoryException - the repository exceptionDatabaseException - the database exceptionWorkflowException - the workflow exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionAccessDeniedException - the access denied exceptionpublic List<ProcessDefinition> findLatestProcessDefinitions() throws RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException, AccessDeniedException
BaseWorkflowfindLatestProcessDefinitions in interface BaseWorkflowRepositoryException - the repository exceptionDatabaseException - the database exceptionWorkflowException - the workflow exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionAccessDeniedException - the access denied exceptionpublic ProcessDefinition findLastProcessDefinition(String name) throws RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException, AccessDeniedException
BaseWorkflowfindLastProcessDefinition in interface BaseWorkflowname - the nameRepositoryException - the repository exceptionDatabaseException - the database exceptionWorkflowException - the workflow exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionAccessDeniedException - the access denied exceptionpublic ProcessInstance getProcessInstance(long piId) throws RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException, AccessDeniedException
BaseWorkflowgetProcessInstance in interface BaseWorkflowpiId - the pi idRepositoryException - the repository exceptionDatabaseException - the database exceptionWorkflowException - the workflow exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionAccessDeniedException - the access denied exceptionpublic TaskInstanceResultSet findUserTaskInstances() throws RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException, AccessDeniedException
BaseWorkflowfindUserTaskInstances in interface BaseWorkflowRepositoryException - the repository exceptionDatabaseException - the database exceptionWorkflowException - the workflow exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionAccessDeniedException - the access denied exceptionpublic List<TaskInstance> findTaskInstances(long piId) throws RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException, AccessDeniedException
BaseWorkflowfindTaskInstances in interface BaseWorkflowpiId - the pi idRepositoryException - the repository exceptionDatabaseException - the database exceptionWorkflowException - the workflow exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionAccessDeniedException - the access denied exceptionpublic void setTaskInstanceValues(long pdId,
long tiId,
String tiName,
String transName,
Map<String,String> properties)
throws RepositoryException,
DatabaseException,
WorkflowException,
UnknownException,
WebserviceException,
AccessDeniedException
BaseWorkflowsetTaskInstanceValues in interface BaseWorkflowpdId - the pd idtiId - the ti idtiName - the ti nametransName - the trans nameproperties - the propertiesRepositoryException - the repository exceptionDatabaseException - the database exceptionWorkflowException - the workflow exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionAccessDeniedException - the access denied exceptionpublic TaskInstance getTaskInstance(long tiId) throws RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException, AccessDeniedException
BaseWorkflowgetTaskInstance in interface BaseWorkflowtiId - the ti idRepositoryException - the repository exceptionDatabaseException - the database exceptionWorkflowException - the workflow exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionAccessDeniedException - the access denied exceptionpublic void setTaskInstanceActorId(long tiId,
String actorId)
throws RepositoryException,
DatabaseException,
WorkflowException,
UnknownException,
WebserviceException,
AccessDeniedException
BaseWorkflowsetTaskInstanceActorId in interface BaseWorkflowtiId - the ti idactorId - the actor idRepositoryException - the repository exceptionDatabaseException - the database exceptionWorkflowException - the workflow exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionAccessDeniedException - the access denied exceptionpublic void startTaskInstance(long tiId)
throws RepositoryException,
DatabaseException,
WorkflowException,
UnknownException,
WebserviceException,
AccessDeniedException
BaseWorkflowstartTaskInstance in interface BaseWorkflowtiId - the ti idRepositoryException - the repository exceptionDatabaseException - the database exceptionWorkflowException - the workflow exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionAccessDeniedException - the access denied exceptionpublic void endTaskInstance(long tiId,
String transName)
throws RepositoryException,
DatabaseException,
WorkflowException,
UnknownException,
WebserviceException,
AccessDeniedException
BaseWorkflowendTaskInstance in interface BaseWorkflowtiId - the ti idtransName - the trans nameRepositoryException - the repository exceptionDatabaseException - the database exceptionWorkflowException - the workflow exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionAccessDeniedException - the access denied exceptionpublic Map<String,List<FormElement>> getProcessDefinitionForms(long pdId) throws ParseException, AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException
BaseWorkflowgetProcessDefinitionForms in interface BaseWorkflowpdId - the pd idParseException - the parse exceptionAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionWorkflowException - the workflow exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic String getProcessDefinitionImage(String pdId, String uuid) throws PathNotFoundException, AccessDeniedException, ConversionException, AutomationException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseWorkflowgetProcessDefinitionImage in interface BaseWorkflowpdId - the pd iduuid - the uuidPathNotFoundException - 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 exceptionpublic TaskInstanceResultSet findPooledTaskInstances() throws RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException, AccessDeniedException
BaseWorkflowfindPooledTaskInstances in interface BaseWorkflowRepositoryException - the repository exceptionDatabaseException - the database exceptionWorkflowException - the workflow exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionAccessDeniedException - the access denied exceptionpublic List<ProcessInstance> findProcessInstancesByNode(String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException
BaseWorkflowfindProcessInstancesByNode in interface BaseWorkflowuuid - the uuidAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionWorkflowException - the workflow exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic String getSuggestBoxKeyValue(long pdId, String uuid, String taskName, String propertyName, String key) throws ParseException, AccessDeniedException, DatabaseException, PluginNotFoundException, UnknownException, WebserviceException
BaseWorkflowgetSuggestBoxKeyValue in interface BaseWorkflowpdId - the pd iduuid - the uuidtaskName - the task namepropertyName - the property namekey - the keyParseException - the parse exceptionAccessDeniedException - the access denied exceptionDatabaseException - the database exceptionPluginNotFoundException - the plugin not found exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic Map<String,String> getSuggestBoxKeyValuesFiltered(long pdId, String uuid, String taskName, String propertyName, String filter) throws ParseException, AccessDeniedException, DatabaseException, PluginNotFoundException, UnknownException, WebserviceException
BaseWorkflowgetSuggestBoxKeyValuesFiltered in interface BaseWorkflowpdId - the pd iduuid - the uuidtaskName - the task namepropertyName - the property namefilter - the filterParseException - the parse exceptionAccessDeniedException - the access denied exceptionDatabaseException - the database exceptionPluginNotFoundException - the plugin not found exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionCopyright © 2023 Open Knowledge Management System S.L.. All Rights Reserved.