Class IncidentRestServiceImpl
java.lang.Object
org.finos.fluxnova.bpm.engine.rest.impl.AbstractRestProcessEngineAware
org.finos.fluxnova.bpm.engine.rest.impl.IncidentRestServiceImpl
- All Implemented Interfaces:
IncidentRestService
public class IncidentRestServiceImpl
extends AbstractRestProcessEngineAware
implements IncidentRestService
- Author:
- Roman Smirnov
-
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.IncidentRestService
PATH -
Constructor Summary
ConstructorsConstructorDescriptionIncidentRestServiceImpl(String engineName, tools.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptiongetIncident(String incidentId) getIncidents(jakarta.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults) Exposes theIncidentQueryinterface as a REST service.getIncidentsCount(jakarta.ws.rs.core.UriInfo uriInfo) Retrieves statistics about incidents grouped by process instance, based on the provided request criteria.Methods inherited from class org.finos.fluxnova.bpm.engine.rest.impl.AbstractRestProcessEngineAware
getObjectMapper, getProcessEngine, setRelativeRootResourceUri
-
Constructor Details
-
IncidentRestServiceImpl
-
-
Method Details
-
getIncidents
public List<IncidentDto> getIncidents(jakarta.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults) Description copied from interface:IncidentRestServiceExposes theIncidentQueryinterface as a REST service.- Specified by:
getIncidentsin interfaceIncidentRestService- Parameters:
uriInfo-firstResult-maxResults-- Returns:
-
getIncidentsCount
- Specified by:
getIncidentsCountin interfaceIncidentRestService
-
getIncident
- Specified by:
getIncidentin interfaceIncidentRestService
-
getProcessInstanceIncidentStatistics
public List<ProcessInstanceIncidentCountStatisticsDto> getProcessInstanceIncidentStatistics(ProcessInstanceIncidentCountRequestDto requestDto) Description copied from interface:IncidentRestServiceRetrieves statistics about incidents grouped by process instance, based on the provided request criteria.This endpoint accepts a
ProcessInstanceIncidentCountRequestDtoin the request body, which can specify various filters and grouping options. The response is a list ofProcessInstanceIncidentCountStatisticsDtoobjects, each representing aggregated incident statistics for process instances matching the criteria.Typical use cases include reporting, monitoring, or dashboarding scenarios where grouped or filtered incident counts are required for process instances.
- Specified by:
getProcessInstanceIncidentStatisticsin interfaceIncidentRestService- Parameters:
requestDto- the request object containing filtering and grouping criteria- Returns:
- a list of statistics objects, each containing incident count information for a group of process instances
-