Package org.bonitasoft.web.client.api
Interface ProcessApi
-
- All Superinterfaces:
ApiClient.Api
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public interface ProcessApi extends ApiClient.Api
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classProcessApi.SearchProcessesQueryParamsA convenience class for generating query parameters for thesearchProcessesmethod in a fluent style.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProcessDefinitioncreateProcess(ProcessCreateRequest body)Create the Process Create the Process.ApiResponse<ProcessDefinition>createProcessWithHttpInfo(ProcessCreateRequest body)Create the Process Similar tocreateProcessbut it also returns the http response headers .voiddeleteProcessById(String id)Delete the Process by ID Delete the single Process for the given ID.voiddeleteProcessByIds(List<String> requestBody)Delete the Process by IDs Delete Process for the given list of ID.ApiResponse<Void>deleteProcessByIdsWithHttpInfo(List<String> requestBody)Delete the Process by IDs Similar todeleteProcessByIdsbut it also returns the http response headers .ApiResponse<Void>deleteProcessByIdWithHttpInfo(String id)Delete the Process by ID Similar todeleteProcessByIdbut it also returns the http response headers .ProcessDefinitiongetProcessById(String id)Finds the Process by ID Returns the single Process for the given IDApiResponse<ProcessDefinition>getProcessByIdWithHttpInfo(String id)Finds the Process by ID Similar togetProcessByIdbut it also returns the http response headers .ContractgetProcessContractById(String id)Finds the Process contract by ID Returns the process contract for the given IDApiResponse<Contract>getProcessContractByIdWithHttpInfo(String id)Finds the Process contract by ID Similar togetProcessContractByIdbut it also returns the http response headers .DesignProcessDefinitiongetProcessDesignById(String id)Finds the Process design by ID Returns the single Process design for the given IDApiResponse<DesignProcessDefinition>getProcessDesignByIdWithHttpInfo(String id)Finds the Process design by ID Similar togetProcessDesignByIdbut it also returns the http response headers .ProcessInstantiationResponseinstanciateProcess(String id, Map<String,Object> body)Instanciate the process Instanciate the process with the provided contract values.ApiResponse<ProcessInstantiationResponse>instanciateProcessWithHttpInfo(String id, Map<String,Object> body)Instanciate the process Similar toinstanciateProcessbut it also returns the http response headers .List<ProcessDefinition>searchProcesses(Integer p, Integer c, List<String> f, String o, String s)Finds Processes Finds Processes with pagination params and filters - can order (default is ASC) on `name`, `version`, `deploymentDate`, `deployedBy`, `activationState`, `configurationState`, `processId`, `displayName`, `lastUpdateDate`, `categoryId`, `label` - can search on `name`, `displayName` or `version` - can filter on `name`, `version`, `deploymentDate`, `deployedBy`, `activationState` with the value DISABLED or ENABLED, `configurationState` with the value UNRESOLVED, or RESOLVED, `processId`, `displayName`, `lastUpdateDate`, `categoryId`, `label`, `supervisor_id`List<ProcessDefinition>searchProcesses(Map<String,Object> queryParams)Finds Processes Finds Processes with pagination params and filters - can order (default is ASC) on `name`, `version`, `deploymentDate`, `deployedBy`, `activationState`, `configurationState`, `processId`, `displayName`, `lastUpdateDate`, `categoryId`, `label` - can search on `name`, `displayName` or `version` - can filter on `name`, `version`, `deploymentDate`, `deployedBy`, `activationState` with the value DISABLED or ENABLED, `configurationState` with the value UNRESOLVED, or RESOLVED, `processId`, `displayName`, `lastUpdateDate`, `categoryId`, `label`, `supervisor_id` Note, this is equivalent to the othersearchProcessesmethod, but with the query parameters collected into a single Map parameter.ApiResponse<List<ProcessDefinition>>searchProcessesWithHttpInfo(Integer p, Integer c, List<String> f, String o, String s)Finds Processes Similar tosearchProcessesbut it also returns the http response headers .ApiResponse<List<ProcessDefinition>>searchProcessesWithHttpInfo(Map<String,Object> queryParams)Finds Processes Finds Processes with pagination params and filters - can order (default is ASC) on `name`, `version`, `deploymentDate`, `deployedBy`, `activationState`, `configurationState`, `processId`, `displayName`, `lastUpdateDate`, `categoryId`, `label` - can search on `name`, `displayName` or `version` - can filter on `name`, `version`, `deploymentDate`, `deployedBy`, `activationState` with the value DISABLED or ENABLED, `configurationState` with the value UNRESOLVED, or RESOLVED, `processId`, `displayName`, `lastUpdateDate`, `categoryId`, `label`, `supervisor_id` Note, this is equivalent to the othersearchProcessesthat receives the query parameters as a map, but this one also exposes the Http response headersvoidupdateProcessById(String id, ProcessUpdateRequest processUpdateRequest)Update the Process by ID Update the Process for the given IDApiResponse<Void>updateProcessByIdWithHttpInfo(String id, ProcessUpdateRequest processUpdateRequest)Update the Process by ID Similar toupdateProcessByIdbut it also returns the http response headers .voidupdateProcessConnectorByProcessId(String id, String connectorImplId, String connectorImplVersion, UpdateProcessConnectorByProcessIdRequest updateProcessConnectorByProcessIdRequest)Update the Process Connector by Process ID Update the ProcessConnector for the given IDApiResponse<Void>updateProcessConnectorByProcessIdWithHttpInfo(String id, String connectorImplId, String connectorImplVersion, UpdateProcessConnectorByProcessIdRequest updateProcessConnectorByProcessIdRequest)Update the Process Connector by Process ID Similar toupdateProcessConnectorByProcessIdbut it also returns the http response headers .StringuploadProcess(File file)Upload a bar file Upload a bar fileApiResponse<String>uploadProcessWithHttpInfo(File file)Upload a bar file Similar touploadProcessbut it also returns the http response headers .
-
-
-
Method Detail
-
createProcess
ProcessDefinition createProcess(ProcessCreateRequest body)
Create the Process Create the Process. A process resource is created using the content of a .bar file that has previously been uploaded, using the [processUpload servlet](#operation/uploadProcess), to get the process archive path.- Parameters:
body- Partial Process description (required)- Returns:
- ProcessDefinition
-
createProcessWithHttpInfo
ApiResponse<ProcessDefinition> createProcessWithHttpInfo(ProcessCreateRequest body)
Create the Process Similar tocreateProcessbut it also returns the http response headers . Create the Process. A process resource is created using the content of a .bar file that has previously been uploaded, using the [processUpload servlet](#operation/uploadProcess), to get the process archive path.- Parameters:
body- Partial Process description (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
deleteProcessById
void deleteProcessById(String id)
Delete the Process by ID Delete the single Process for the given ID. **Warning: Beware! Data loss risk!** Deleting a process will automatically delete all its process instances (on-going and archived alike). Thus, the operation may take a long time, and fail if the transaction timeout is not large enough. This feature should only be used on non-production environments. **Please proceed at your own risk.**- Parameters:
id- ID of the Process to delete (required)
-
deleteProcessByIdWithHttpInfo
ApiResponse<Void> deleteProcessByIdWithHttpInfo(String id)
Delete the Process by ID Similar todeleteProcessByIdbut it also returns the http response headers . Delete the single Process for the given ID. **Warning: Beware! Data loss risk!** Deleting a process will automatically delete all its process instances (on-going and archived alike). Thus, the operation may take a long time, and fail if the transaction timeout is not large enough. This feature should only be used on non-production environments. **Please proceed at your own risk.**- Parameters:
id- ID of the Process to delete (required)
-
deleteProcessByIds
void deleteProcessByIds(List<String> requestBody)
Delete the Process by IDs Delete Process for the given list of ID. **Warning: Beware! Data loss risk!** Deleting a process will automatically delete all its process instances (on-going and archived alike). Thus, the operation may take a long time, and fail if the transaction timeout is not large enough. This feature should only be used on non-production environments. **Please proceed at your own risk.**- Parameters:
requestBody- (optional)
-
deleteProcessByIdsWithHttpInfo
ApiResponse<Void> deleteProcessByIdsWithHttpInfo(List<String> requestBody)
Delete the Process by IDs Similar todeleteProcessByIdsbut it also returns the http response headers . Delete Process for the given list of ID. **Warning: Beware! Data loss risk!** Deleting a process will automatically delete all its process instances (on-going and archived alike). Thus, the operation may take a long time, and fail if the transaction timeout is not large enough. This feature should only be used on non-production environments. **Please proceed at your own risk.**- Parameters:
requestBody- (optional)
-
getProcessById
ProcessDefinition getProcessById(String id)
Finds the Process by ID Returns the single Process for the given ID- Parameters:
id- ID of the Process to return (required)- Returns:
- ProcessDefinition
-
getProcessByIdWithHttpInfo
ApiResponse<ProcessDefinition> getProcessByIdWithHttpInfo(String id)
Finds the Process by ID Similar togetProcessByIdbut it also returns the http response headers . Returns the single Process for the given ID- Parameters:
id- ID of the Process to return (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
getProcessContractById
Contract getProcessContractById(String id)
Finds the Process contract by ID Returns the process contract for the given ID- Parameters:
id- ID of the Process to get the contract from (required)- Returns:
- Contract
-
getProcessContractByIdWithHttpInfo
ApiResponse<Contract> getProcessContractByIdWithHttpInfo(String id)
Finds the Process contract by ID Similar togetProcessContractByIdbut it also returns the http response headers . Returns the process contract for the given ID- Parameters:
id- ID of the Process to get the contract from (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
getProcessDesignById
DesignProcessDefinition getProcessDesignById(String id)
Finds the Process design by ID Returns the single Process design for the given ID- Parameters:
id- ID of the Process to get the design from (required)- Returns:
- DesignProcessDefinition
-
getProcessDesignByIdWithHttpInfo
ApiResponse<DesignProcessDefinition> getProcessDesignByIdWithHttpInfo(String id)
Finds the Process design by ID Similar togetProcessDesignByIdbut it also returns the http response headers . Returns the single Process design for the given ID- Parameters:
id- ID of the Process to get the design from (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
instanciateProcess
ProcessInstantiationResponse instanciateProcess(String id, Map<String,Object> body)
Instanciate the process Instanciate the process with the provided contract values.- Parameters:
id- ID of the process to instanciate (required)body- A JSON object matching process contract. (required)- Returns:
- ProcessInstantiationResponse
-
instanciateProcessWithHttpInfo
ApiResponse<ProcessInstantiationResponse> instanciateProcessWithHttpInfo(String id, Map<String,Object> body)
Instanciate the process Similar toinstanciateProcessbut it also returns the http response headers . Instanciate the process with the provided contract values.- Parameters:
id- ID of the process to instanciate (required)body- A JSON object matching process contract. (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
searchProcesses
List<ProcessDefinition> searchProcesses(Integer p, Integer c, List<String> f, String o, String s)
Finds Processes Finds Processes with pagination params and filters - can order (default is ASC) on `name`, `version`, `deploymentDate`, `deployedBy`, `activationState`, `configurationState`, `processId`, `displayName`, `lastUpdateDate`, `categoryId`, `label` - can search on `name`, `displayName` or `version` - can filter on `name`, `version`, `deploymentDate`, `deployedBy`, `activationState` with the value DISABLED or ENABLED, `configurationState` with the value UNRESOLVED, or RESOLVED, `processId`, `displayName`, `lastUpdateDate`, `categoryId`, `label`, `supervisor_id`- Parameters:
p- index of the page to display (required)c- maximum number of elements to retrieve (required)f- can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)o- can order on attributes (optional)s- can search on attributes (optional)- Returns:
- List<ProcessDefinition>
-
searchProcessesWithHttpInfo
ApiResponse<List<ProcessDefinition>> searchProcessesWithHttpInfo(Integer p, Integer c, List<String> f, String o, String s)
Finds Processes Similar tosearchProcessesbut it also returns the http response headers . Finds Processes with pagination params and filters - can order (default is ASC) on `name`, `version`, `deploymentDate`, `deployedBy`, `activationState`, `configurationState`, `processId`, `displayName`, `lastUpdateDate`, `categoryId`, `label` - can search on `name`, `displayName` or `version` - can filter on `name`, `version`, `deploymentDate`, `deployedBy`, `activationState` with the value DISABLED or ENABLED, `configurationState` with the value UNRESOLVED, or RESOLVED, `processId`, `displayName`, `lastUpdateDate`, `categoryId`, `label`, `supervisor_id`- Parameters:
p- index of the page to display (required)c- maximum number of elements to retrieve (required)f- can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)o- can order on attributes (optional)s- can search on attributes (optional)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
searchProcesses
List<ProcessDefinition> searchProcesses(Map<String,Object> queryParams)
Finds Processes Finds Processes with pagination params and filters - can order (default is ASC) on `name`, `version`, `deploymentDate`, `deployedBy`, `activationState`, `configurationState`, `processId`, `displayName`, `lastUpdateDate`, `categoryId`, `label` - can search on `name`, `displayName` or `version` - can filter on `name`, `version`, `deploymentDate`, `deployedBy`, `activationState` with the value DISABLED or ENABLED, `configurationState` with the value UNRESOLVED, or RESOLVED, `processId`, `displayName`, `lastUpdateDate`, `categoryId`, `label`, `supervisor_id` Note, this is equivalent to the othersearchProcessesmethod, but with the query parameters collected into a single Map parameter. This is convenient for services with optional query parameters, especially when used with theProcessApi.SearchProcessesQueryParamsclass that allows for building up this map in a fluent style.- Parameters:
queryParams- Map of query parameters as name-value pairsThe following elements may be specified in the query map:
- p - index of the page to display (required)
- c - maximum number of elements to retrieve (required)
- f - can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)
- o - can order on attributes (optional)
- s - can search on attributes (optional)
- Returns:
- List<ProcessDefinition>
-
searchProcessesWithHttpInfo
ApiResponse<List<ProcessDefinition>> searchProcessesWithHttpInfo(Map<String,Object> queryParams)
Finds Processes Finds Processes with pagination params and filters - can order (default is ASC) on `name`, `version`, `deploymentDate`, `deployedBy`, `activationState`, `configurationState`, `processId`, `displayName`, `lastUpdateDate`, `categoryId`, `label` - can search on `name`, `displayName` or `version` - can filter on `name`, `version`, `deploymentDate`, `deployedBy`, `activationState` with the value DISABLED or ENABLED, `configurationState` with the value UNRESOLVED, or RESOLVED, `processId`, `displayName`, `lastUpdateDate`, `categoryId`, `label`, `supervisor_id` Note, this is equivalent to the othersearchProcessesthat receives the query parameters as a map, but this one also exposes the Http response headers- Parameters:
queryParams- Map of query parameters as name-value pairsThe following elements may be specified in the query map:
- p - index of the page to display (required)
- c - maximum number of elements to retrieve (required)
- f - can filter on attributes with the format f={filter\\_name}={filter\\_value} with the name/value pair as url encoded string. (optional)
- o - can order on attributes (optional)
- s - can search on attributes (optional)
- Returns:
- List<ProcessDefinition>
-
updateProcessById
void updateProcessById(String id, ProcessUpdateRequest processUpdateRequest)
Update the Process by ID Update the Process for the given ID- Parameters:
id- ID of the Process to return (required)processUpdateRequest- Partial Process description (required)
-
updateProcessByIdWithHttpInfo
ApiResponse<Void> updateProcessByIdWithHttpInfo(String id, ProcessUpdateRequest processUpdateRequest)
Update the Process by ID Similar toupdateProcessByIdbut it also returns the http response headers . Update the Process for the given ID- Parameters:
id- ID of the Process to return (required)processUpdateRequest- Partial Process description (required)
-
updateProcessConnectorByProcessId
void updateProcessConnectorByProcessId(String id, String connectorImplId, String connectorImplVersion, UpdateProcessConnectorByProcessIdRequest updateProcessConnectorByProcessIdRequest)
Update the Process Connector by Process ID Update the ProcessConnector for the given ID- Parameters:
id- ID of the process to update (required)connectorImplId- ID of the Process Connector implementation to update (required)connectorImplVersion- Version of the Process Connector implementation to update (required)updateProcessConnectorByProcessIdRequest- Partial ProcessConnector description (required)
-
updateProcessConnectorByProcessIdWithHttpInfo
ApiResponse<Void> updateProcessConnectorByProcessIdWithHttpInfo(String id, String connectorImplId, String connectorImplVersion, UpdateProcessConnectorByProcessIdRequest updateProcessConnectorByProcessIdRequest)
Update the Process Connector by Process ID Similar toupdateProcessConnectorByProcessIdbut it also returns the http response headers . Update the ProcessConnector for the given ID- Parameters:
id- ID of the process to update (required)connectorImplId- ID of the Process Connector implementation to update (required)connectorImplVersion- Version of the Process Connector implementation to update (required)updateProcessConnectorByProcessIdRequest- Partial ProcessConnector description (required)
-
uploadProcess
String uploadProcess(File file)
Upload a bar file Upload a bar file- Parameters:
file- (optional)- Returns:
- String
-
uploadProcessWithHttpInfo
ApiResponse<String> uploadProcessWithHttpInfo(File file)
Upload a bar file Similar touploadProcessbut it also returns the http response headers . Upload a bar file- Parameters:
file- (optional)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
-