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<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.
|
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
public WorkflowImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public void registerProcessDefinition(InputStream is) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, WorkflowException, UnknownException, WebserviceException
BaseWorkflow
registerProcessDefinition
in interface BaseWorkflow
is
- 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
BaseWorkflow
deleteProcessDefinition
in interface BaseWorkflow
pdId
- 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
BaseWorkflow
getProcessDefinition
in interface BaseWorkflow
pdId
- 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
BaseWorkflow
runProcessDefinition
in interface BaseWorkflow
pdId
- 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
BaseWorkflow
findProcessInstances
in interface BaseWorkflow
pdId
- 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
BaseWorkflow
findAllProcessDefinitions
in interface BaseWorkflow
RepositoryException
- 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
BaseWorkflow
findLatestProcessDefinitions
in interface BaseWorkflow
RepositoryException
- 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
BaseWorkflow
findLastProcessDefinition
in interface BaseWorkflow
name
- 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
BaseWorkflow
getProcessInstance
in interface BaseWorkflow
piId
- 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
BaseWorkflow
findUserTaskInstances
in interface BaseWorkflow
RepositoryException
- 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
BaseWorkflow
findTaskInstances
in interface BaseWorkflow
piId
- 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
BaseWorkflow
setTaskInstanceValues
in interface BaseWorkflow
pdId
- 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
BaseWorkflow
getTaskInstance
in interface BaseWorkflow
tiId
- 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
BaseWorkflow
setTaskInstanceActorId
in interface BaseWorkflow
tiId
- 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
BaseWorkflow
startTaskInstance
in interface BaseWorkflow
tiId
- 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
BaseWorkflow
endTaskInstance
in interface BaseWorkflow
tiId
- 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
BaseWorkflow
getProcessDefinitionForms
in interface BaseWorkflow
pdId
- 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
BaseWorkflow
getProcessDefinitionImage
in interface BaseWorkflow
pdId
- 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
BaseWorkflow
findPooledTaskInstances
in interface BaseWorkflow
RepositoryException
- the repository exceptionDatabaseException
- the database exceptionWorkflowException
- the workflow exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionCopyright © 2021 Open Knowledge Management System S.L.. All Rights Reserved.