Package org.bonitasoft.web.client.api
Interface ProcessInstanceApi
-
- All Superinterfaces:
ApiClient.Api
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public interface ProcessInstanceApi extends ApiClient.Api
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classProcessInstanceApi.GetProcessInstanceByIdQueryParamsA convenience class for generating query parameters for thegetProcessInstanceByIdmethod in a fluent style.static classProcessInstanceApi.SearchProcessInstancesQueryParamsA convenience class for generating query parameters for thesearchProcessInstancesmethod in a fluent style.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProcessInstancecreateProcessInstance(ProcessInstanceCreateRequest body)Create the ProcessInstance   Create the ProcessInstance This way of creating a process instance using this method will only work for processes in which no contract is defined.ApiResponse<ProcessInstance>createProcessInstanceWithHttpInfo(ProcessInstanceCreateRequest body)Create the ProcessInstance Similar tocreateProcessInstancebut it also returns the http response headers .voiddeleteProcessInstanceById(String id)Delete the ProcessInstance by ID Delete the single ProcessInstance for the given IDvoiddeleteProcessInstanceByIds(List<String> requestBody)Delete the ProcessInstance by batch   Delete a list of ProcessInstances for the given IDsApiResponse<Void>deleteProcessInstanceByIdsWithHttpInfo(List<String> requestBody)Delete the ProcessInstance by batch Similar todeleteProcessInstanceByIdsbut it also returns the http response headers .ApiResponse<Void>deleteProcessInstanceByIdWithHttpInfo(String id)Delete the ProcessInstance by ID Similar todeleteProcessInstanceByIdbut it also returns the http response headers .Map<String,Object>getContextByProcessInstanceId(String id)Finds the Context by ProcessInstance ID Returns the Context for the given ProcessInstance IDApiResponse<Map<String,Object>>getContextByProcessInstanceIdWithHttpInfo(String id)Finds the Context by ProcessInstance ID Similar togetContextByProcessInstanceIdbut it also returns the http response headers .ProcessInstancegetProcessInstanceById(String id, String n)Finds the ProcessInstance by ID Returns the single ProcessInstance for the given IDProcessInstancegetProcessInstanceById(String id, Map<String,Object> queryParams)Finds the ProcessInstance by ID Returns the single ProcessInstance for the given ID Note, this is equivalent to the othergetProcessInstanceByIdmethod, but with the query parameters collected into a single Map parameter.ApiResponse<ProcessInstance>getProcessInstanceByIdWithHttpInfo(String id, String n)Finds the ProcessInstance by ID Similar togetProcessInstanceByIdbut it also returns the http response headers .ApiResponse<ProcessInstance>getProcessInstanceByIdWithHttpInfo(String id, Map<String,Object> queryParams)Finds the ProcessInstance by ID Returns the single ProcessInstance for the given ID Note, this is equivalent to the othergetProcessInstanceByIdthat receives the query parameters as a map, but this one also exposes the Http response headersList<ProcessInstance>searchProcessInstances(Integer p, Integer c, List<String> f, String o)Finds ProcessInstances Finds ProcessInstances with pagination params and filters You can filter on: * `processDefinitionId`: The process derfinition ID * `name`: the process name * `started_by`: the ID of the user who started the process * `team_manager_id`: allow to retrieve the process instances in which all users with this manager ID ar involved) * `supervisor_id`: allow the retrived the process instances of all processes the user with this ID is supervisor of) beware you cannot use team_manager_id and supervisor_id at the same timeList<ProcessInstance>searchProcessInstances(Map<String,Object> queryParams)Finds ProcessInstances Finds ProcessInstances with pagination params and filters You can filter on: * `processDefinitionId`: The process derfinition ID * `name`: the process name * `started_by`: the ID of the user who started the process * `team_manager_id`: allow to retrieve the process instances in which all users with this manager ID ar involved) * `supervisor_id`: allow the retrived the process instances of all processes the user with this ID is supervisor of) beware you cannot use team_manager_id and supervisor_id at the same time Note, this is equivalent to the othersearchProcessInstancesmethod, but with the query parameters collected into a single Map parameter.ApiResponse<List<ProcessInstance>>searchProcessInstancesWithHttpInfo(Integer p, Integer c, List<String> f, String o)Finds ProcessInstances Similar tosearchProcessInstancesbut it also returns the http response headers .ApiResponse<List<ProcessInstance>>searchProcessInstancesWithHttpInfo(Map<String,Object> queryParams)Finds ProcessInstances Finds ProcessInstances with pagination params and filters You can filter on: * `processDefinitionId`: The process derfinition ID * `name`: the process name * `started_by`: the ID of the user who started the process * `team_manager_id`: allow to retrieve the process instances in which all users with this manager ID ar involved) * `supervisor_id`: allow the retrived the process instances of all processes the user with this ID is supervisor of) beware you cannot use team_manager_id and supervisor_id at the same time Note, this is equivalent to the othersearchProcessInstancesthat receives the query parameters as a map, but this one also exposes the Http response headers
-
-
-
Method Detail
-
createProcessInstance
ProcessInstance createProcessInstance(ProcessInstanceCreateRequest body)
Create the ProcessInstance   Create the ProcessInstance This way of creating a process instance using this method will only work for processes in which no contract is defined. To instantiate a process with a contract, check the process instantiation resource documentation.- Parameters:
body- **Warning**: The attribute `variables` on the request payload is used to initialize the process variables (not BDM variables). If you want to initialize BDM variables at process instantiation, add a contract on the process and map BDM variables to the contract data. See Start a process using an instantiation contract for usage. (required)- Returns:
- ProcessInstance
-
createProcessInstanceWithHttpInfo
ApiResponse<ProcessInstance> createProcessInstanceWithHttpInfo(ProcessInstanceCreateRequest body)
Create the ProcessInstance Similar tocreateProcessInstancebut it also returns the http response headers .   Create the ProcessInstance This way of creating a process instance using this method will only work for processes in which no contract is defined. To instantiate a process with a contract, check the process instantiation resource documentation.- Parameters:
body- **Warning**: The attribute `variables` on the request payload is used to initialize the process variables (not BDM variables). If you want to initialize BDM variables at process instantiation, add a contract on the process and map BDM variables to the contract data. See Start a process using an instantiation contract for usage. (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
deleteProcessInstanceById
void deleteProcessInstanceById(String id)
Delete the ProcessInstance by ID Delete the single ProcessInstance for the given ID- Parameters:
id- ID of the ProcessInstance to delete (required)
-
deleteProcessInstanceByIdWithHttpInfo
ApiResponse<Void> deleteProcessInstanceByIdWithHttpInfo(String id)
Delete the ProcessInstance by ID Similar todeleteProcessInstanceByIdbut it also returns the http response headers . Delete the single ProcessInstance for the given ID- Parameters:
id- ID of the ProcessInstance to delete (required)
-
deleteProcessInstanceByIds
void deleteProcessInstanceByIds(List<String> requestBody)
Delete the ProcessInstance by batch   Delete a list of ProcessInstances for the given IDs- Parameters:
requestBody- (optional)
-
deleteProcessInstanceByIdsWithHttpInfo
ApiResponse<Void> deleteProcessInstanceByIdsWithHttpInfo(List<String> requestBody)
Delete the ProcessInstance by batch Similar todeleteProcessInstanceByIdsbut it also returns the http response headers .   Delete a list of ProcessInstances for the given IDs- Parameters:
requestBody- (optional)
-
getContextByProcessInstanceId
Map<String,Object> getContextByProcessInstanceId(String id)
Finds the Context by ProcessInstance ID Returns the Context for the given ProcessInstance ID- Parameters:
id- ID of the ProcessInstance that has the Context to return (required)- Returns:
- Map<String, Object>
-
getContextByProcessInstanceIdWithHttpInfo
ApiResponse<Map<String,Object>> getContextByProcessInstanceIdWithHttpInfo(String id)
Finds the Context by ProcessInstance ID Similar togetContextByProcessInstanceIdbut it also returns the http response headers . Returns the Context for the given ProcessInstance ID- Parameters:
id- ID of the ProcessInstance that has the Context to return (required)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
getProcessInstanceById
ProcessInstance getProcessInstanceById(String id, String n)
Finds the ProcessInstance by ID Returns the single ProcessInstance for the given ID- Parameters:
id- ID of the ProcessInstance to return (required)n- Count of related resources (optional)- Returns:
- ProcessInstance
-
getProcessInstanceByIdWithHttpInfo
ApiResponse<ProcessInstance> getProcessInstanceByIdWithHttpInfo(String id, String n)
Finds the ProcessInstance by ID Similar togetProcessInstanceByIdbut it also returns the http response headers . Returns the single ProcessInstance for the given ID- Parameters:
id- ID of the ProcessInstance to return (required)n- Count of related resources (optional)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
getProcessInstanceById
ProcessInstance getProcessInstanceById(String id, Map<String,Object> queryParams)
Finds the ProcessInstance by ID Returns the single ProcessInstance for the given ID Note, this is equivalent to the othergetProcessInstanceByIdmethod, but with the query parameters collected into a single Map parameter. This is convenient for services with optional query parameters, especially when used with theProcessInstanceApi.GetProcessInstanceByIdQueryParamsclass that allows for building up this map in a fluent style.- Parameters:
id- ID of the ProcessInstance to return (required)queryParams- Map of query parameters as name-value pairsThe following elements may be specified in the query map:
- n - Count of related resources (optional)
- Returns:
- ProcessInstance
-
getProcessInstanceByIdWithHttpInfo
ApiResponse<ProcessInstance> getProcessInstanceByIdWithHttpInfo(String id, Map<String,Object> queryParams)
Finds the ProcessInstance by ID Returns the single ProcessInstance for the given ID Note, this is equivalent to the othergetProcessInstanceByIdthat receives the query parameters as a map, but this one also exposes the Http response headers- Parameters:
id- ID of the ProcessInstance to return (required)queryParams- Map of query parameters as name-value pairsThe following elements may be specified in the query map:
- n - Count of related resources (optional)
- Returns:
- ProcessInstance
-
searchProcessInstances
List<ProcessInstance> searchProcessInstances(Integer p, Integer c, List<String> f, String o)
Finds ProcessInstances Finds ProcessInstances with pagination params and filters You can filter on: * `processDefinitionId`: The process derfinition ID * `name`: the process name * `started_by`: the ID of the user who started the process * `team_manager_id`: allow to retrieve the process instances in which all users with this manager ID ar involved) * `supervisor_id`: allow the retrived the process instances of all processes the user with this ID is supervisor of) beware you cannot use team_manager_id and supervisor_id at the same time- 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)- Returns:
- List<ProcessInstance>
-
searchProcessInstancesWithHttpInfo
ApiResponse<List<ProcessInstance>> searchProcessInstancesWithHttpInfo(Integer p, Integer c, List<String> f, String o)
Finds ProcessInstances Similar tosearchProcessInstancesbut it also returns the http response headers . Finds ProcessInstances with pagination params and filters You can filter on: * `processDefinitionId`: The process derfinition ID * `name`: the process name * `started_by`: the ID of the user who started the process * `team_manager_id`: allow to retrieve the process instances in which all users with this manager ID ar involved) * `supervisor_id`: allow the retrived the process instances of all processes the user with this ID is supervisor of) beware you cannot use team_manager_id and supervisor_id at the same time- 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)- Returns:
- A ApiResponse that wraps the response boyd and the http headers.
-
searchProcessInstances
List<ProcessInstance> searchProcessInstances(Map<String,Object> queryParams)
Finds ProcessInstances Finds ProcessInstances with pagination params and filters You can filter on: * `processDefinitionId`: The process derfinition ID * `name`: the process name * `started_by`: the ID of the user who started the process * `team_manager_id`: allow to retrieve the process instances in which all users with this manager ID ar involved) * `supervisor_id`: allow the retrived the process instances of all processes the user with this ID is supervisor of) beware you cannot use team_manager_id and supervisor_id at the same time Note, this is equivalent to the othersearchProcessInstancesmethod, but with the query parameters collected into a single Map parameter. This is convenient for services with optional query parameters, especially when used with theProcessInstanceApi.SearchProcessInstancesQueryParamsclass 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)
- Returns:
- List<ProcessInstance>
-
searchProcessInstancesWithHttpInfo
ApiResponse<List<ProcessInstance>> searchProcessInstancesWithHttpInfo(Map<String,Object> queryParams)
Finds ProcessInstances Finds ProcessInstances with pagination params and filters You can filter on: * `processDefinitionId`: The process derfinition ID * `name`: the process name * `started_by`: the ID of the user who started the process * `team_manager_id`: allow to retrieve the process instances in which all users with this manager ID ar involved) * `supervisor_id`: allow the retrived the process instances of all processes the user with this ID is supervisor of) beware you cannot use team_manager_id and supervisor_id at the same time Note, this is equivalent to the othersearchProcessInstancesthat 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)
- Returns:
- List<ProcessInstance>
-
-