Class ProcessInstanceRestServiceImpl
java.lang.Object
org.finos.fluxnova.bpm.engine.rest.impl.AbstractRestProcessEngineAware
org.finos.fluxnova.bpm.engine.rest.impl.ProcessInstanceRestServiceImpl
- All Implemented Interfaces:
ProcessInstanceRestService
public class ProcessInstanceRestServiceImpl
extends AbstractRestProcessEngineAware
implements ProcessInstanceRestService
-
Field Summary
Fields inherited from class org.finos.fluxnova.bpm.engine.rest.impl.AbstractRestProcessEngineAware
objectMapper, relativeRootResourcePathFields inherited from interface org.finos.fluxnova.bpm.engine.rest.ProcessInstanceRestService
PATH -
Constructor Summary
ConstructorsConstructorDescriptionProcessInstanceRestServiceImpl(String engineName, tools.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptioncorrelateMessageAsync(CorrelationMessageAsyncDto correlationMessageAsyncDto) deleteAsyncHistoricQueryBased(DeleteProcessInstancesDto deleteProcessInstancesDto) getProcessInstance(String processInstanceId) getProcessInstances(jakarta.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults) Exposes theProcessInstanceQueryinterface as a REST service.getProcessInstancesCount(jakarta.ws.rs.core.UriInfo uriInfo) Retrieves statistics about process instance counts based on the provided request criteria.queryProcessInstances(ProcessInstanceQueryDto queryDto, Integer firstResult, Integer maxResults) Expects the same parameters asProcessInstanceRestService.getProcessInstances(UriInfo, Integer, Integer)(as a JSON message body) and allows for any number of variable checks.setRetriesByProcess(SetJobRetriesByProcessDto setJobRetriesDto) setRetriesByProcessHistoricQueryBased(SetJobRetriesByProcessDto setJobRetriesDto) setVariablesAsync(SetVariablesAsyncDto setVariablesAsyncDto) protected <T extends Query<?,?>, R extends AbstractQueryDto<T>>
TtoQuery(R query) voidMethods inherited from class org.finos.fluxnova.bpm.engine.rest.impl.AbstractRestProcessEngineAware
getObjectMapper, getProcessEngine, setRelativeRootResourceUri
-
Constructor Details
-
ProcessInstanceRestServiceImpl
public ProcessInstanceRestServiceImpl(String engineName, tools.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getProcessInstances
public List<ProcessInstanceDto> getProcessInstances(jakarta.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults) Description copied from interface:ProcessInstanceRestServiceExposes theProcessInstanceQueryinterface as a REST service.- Specified by:
getProcessInstancesin interfaceProcessInstanceRestService- Parameters:
uriInfo-firstResult-maxResults-- Returns:
-
queryProcessInstances
public List<ProcessInstanceDto> queryProcessInstances(ProcessInstanceQueryDto queryDto, Integer firstResult, Integer maxResults) Description copied from interface:ProcessInstanceRestServiceExpects the same parameters asProcessInstanceRestService.getProcessInstances(UriInfo, Integer, Integer)(as a JSON message body) and allows for any number of variable checks.- Specified by:
queryProcessInstancesin interfaceProcessInstanceRestService- Parameters:
queryDto-firstResult-maxResults-- Returns:
-
getProcessInstancesCount
- Specified by:
getProcessInstancesCountin interfaceProcessInstanceRestService
-
queryProcessInstancesCount
- Specified by:
queryProcessInstancesCountin interfaceProcessInstanceRestService
-
getProcessInstance
- Specified by:
getProcessInstancein interfaceProcessInstanceRestService
-
updateSuspensionState
- Specified by:
updateSuspensionStatein interfaceProcessInstanceRestService
-
updateSuspensionStateAsync
- Specified by:
updateSuspensionStateAsyncin interfaceProcessInstanceRestService
-
deleteAsync
- Specified by:
deleteAsyncin interfaceProcessInstanceRestService
-
deleteAsyncHistoricQueryBased
- Specified by:
deleteAsyncHistoricQueryBasedin interfaceProcessInstanceRestService
-
setRetriesByProcess
- Specified by:
setRetriesByProcessin interfaceProcessInstanceRestService
-
setRetriesByProcessHistoricQueryBased
- Specified by:
setRetriesByProcessHistoricQueryBasedin interfaceProcessInstanceRestService
-
setVariablesAsync
- Specified by:
setVariablesAsyncin interfaceProcessInstanceRestService
-
correlateMessageAsync
- Specified by:
correlateMessageAsyncin interfaceProcessInstanceRestService
-
toQuery
-
getProcessInstanceStatistics
public List<ProcessInstanceCountStatisticsDto> getProcessInstanceStatistics(ProcessInstanceCountRequestDto requestDto) Description copied from interface:ProcessInstanceRestServiceRetrieves statistics about process instance counts based on the provided request criteria.This endpoint accepts a
ProcessInstanceCountRequestDtoin the request body, which can specify various filters and grouping options. The response is a list ofProcessInstanceCountStatisticsDtoobjects, each representing aggregated statistics for process instances matching the criteria.Typical use cases include reporting, monitoring, or dashboarding scenarios where grouped or filtered process instance counts are required.
- Specified by:
getProcessInstanceStatisticsin interfaceProcessInstanceRestService- Parameters:
requestDto- the request object containing filtering and grouping criteria- Returns:
- a list of statistics objects, each containing count information for a group of process instances
-