Class ProcessInstanceSearchRequestImpl
java.lang.Object
io.camunda.client.impl.search.request.TypedSearchRequestPropertyProvider<ProcessInstanceSearchQuery>
io.camunda.client.impl.search.request.ProcessInstanceSearchRequestImpl
- All Implemented Interfaces:
FinalCommandStep<SearchResponse<ProcessInstance>>,FinalSearchRequestStep<ProcessInstance>,ProcessInstanceSearchRequest,TypedSearchRequest<ProcessInstanceFilter,ProcessInstanceSort, ProcessInstanceSearchRequest>
public class ProcessInstanceSearchRequestImpl
extends TypedSearchRequestPropertyProvider<ProcessInstanceSearchQuery>
implements ProcessInstanceSearchRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.client.api.search.request.TypedSearchRequest
TypedSearchRequest.SearchRequestFilter, TypedSearchRequest.SearchRequestSort<S extends TypedSearchRequest.SearchRequestSort<S>> -
Constructor Summary
ConstructorsConstructorDescriptionProcessInstanceSearchRequestImpl(HttpClient httpClient, JsonMapper jsonMapper) -
Method Summary
Modifier and TypeMethodDescriptionfilter(ProcessInstanceFilter value) Sets the filter to be included in the search request.Provides a fluent builder to create a filter to be included in the search request.protected ProcessInstanceSearchQuerypage(SearchRequestPage value) Support for pagination.Provides a fluent builder to support pagination.requestTimeout(Duration requestTimeout) Sets the request timeout for the command.send()Sends the command to the Camunda gateway.sort(ProcessInstanceSort value) Sets the sorting the returned entities should be sorted by.Provides a fluent builder to provide sorting options the returned entites should sorted byMethods inherited from class io.camunda.client.impl.search.request.TypedSearchRequestPropertyProvider
provideSearchRequestProperty
-
Constructor Details
-
ProcessInstanceSearchRequestImpl
-
-
Method Details
-
requestTimeout
Description copied from interface:FinalCommandStepSets the request timeout for the command. The default request timeout can be configured usingCamundaClientBuilder.defaultRequestTimeout(Duration).- Specified by:
requestTimeoutin interfaceFinalCommandStep<SearchResponse<ProcessInstance>>- Specified by:
requestTimeoutin interfaceFinalSearchRequestStep<ProcessInstance>- Parameters:
requestTimeout- the request timeout- Returns:
- the configured command
-
send
Description copied from interface:FinalCommandStepSends the command to the Camunda gateway. This operation is asynchronous. In case of success, the future returns the event that was generated by the Camunda gateway in response to the command.Call
CamundaFuture.join()to wait until the response is available.Future<JobEventinvalid input: '>' future = command.send(); JobEvent event = future.join();- Specified by:
sendin interfaceFinalCommandStep<SearchResponse<ProcessInstance>>- Returns:
- a future tracking state of success/failure of the command.
-
filter
Description copied from interface:TypedSearchRequestSets the filter to be included in the search request.- Specified by:
filterin interfaceTypedSearchRequest<ProcessInstanceFilter,ProcessInstanceSort, ProcessInstanceSearchRequest> - Parameters:
value- the filter- Returns:
- the builder for the search request
-
filter
Description copied from interface:TypedSearchRequestProvides a fluent builder to create a filter to be included in the search request.- Specified by:
filterin interfaceTypedSearchRequest<ProcessInstanceFilter,ProcessInstanceSort, ProcessInstanceSearchRequest> - Parameters:
fn- consumer to create the filter- Returns:
- the builder for the search request
-
sort
Description copied from interface:TypedSearchRequestSets the sorting the returned entities should be sorted by.- Specified by:
sortin interfaceTypedSearchRequest<ProcessInstanceFilter,ProcessInstanceSort, ProcessInstanceSearchRequest> - Parameters:
value- the sort options- Returns:
- the builder for the search request
-
sort
Description copied from interface:TypedSearchRequestProvides a fluent builder to provide sorting options the returned entites should sorted by- Specified by:
sortin interfaceTypedSearchRequest<ProcessInstanceFilter,ProcessInstanceSort, ProcessInstanceSearchRequest> - Parameters:
fn- consumer to create the sort options- Returns:
- the builder for the search request
-
page
Description copied from interface:TypedSearchRequestSupport for pagination.- Specified by:
pagein interfaceTypedSearchRequest<ProcessInstanceFilter,ProcessInstanceSort, ProcessInstanceSearchRequest> - Parameters:
value- the next page- Returns:
- the builder for the search request
-
page
Description copied from interface:TypedSearchRequestProvides a fluent builder to support pagination.- Specified by:
pagein interfaceTypedSearchRequest<ProcessInstanceFilter,ProcessInstanceSort, ProcessInstanceSearchRequest> - Parameters:
fn- consumer to support pagination- Returns:
- the builder for the search request
-
getSearchRequestProperty
- Specified by:
getSearchRequestPropertyin classTypedSearchRequestPropertyProvider<ProcessInstanceSearchQuery>
-