Interface ProcessInstanceRestService

All Known Implementing Classes:
ProcessInstanceRestServiceImpl

@Produces("application/json") public interface ProcessInstanceRestService
  • Field Details

  • Method Details

    • getProcessInstance

      @Path("/{id}") ProcessInstanceResource getProcessInstance(@PathParam("id") String processInstanceId)
    • getProcessInstances

      @GET @Produces("application/json") List<ProcessInstanceDto> getProcessInstances(@Context jakarta.ws.rs.core.UriInfo uriInfo, @QueryParam("firstResult") Integer firstResult, @QueryParam("maxResults") Integer maxResults)
      Exposes the ProcessInstanceQuery interface as a REST service.
      Parameters:
      uriInfo -
      firstResult -
      maxResults -
      Returns:
    • queryProcessInstances

      @POST @Consumes("application/json") @Produces("application/json") List<ProcessInstanceDto> queryProcessInstances(ProcessInstanceQueryDto query, @QueryParam("firstResult") Integer firstResult, @QueryParam("maxResults") Integer maxResults)
      Expects the same parameters as getProcessInstances(UriInfo, Integer, Integer) (as a JSON message body) and allows for any number of variable checks.
      Parameters:
      query -
      firstResult -
      maxResults -
      Returns:
    • getProcessInstancesCount

      @GET @Path("/count") @Produces("application/json") CountResultDto getProcessInstancesCount(@Context jakarta.ws.rs.core.UriInfo uriInfo)
    • queryProcessInstancesCount

      @POST @Path("/count") @Consumes("application/json") @Produces("application/json") CountResultDto queryProcessInstancesCount(ProcessInstanceQueryDto query)
    • updateSuspensionState

      @PUT @Path("/suspended") @Consumes("application/json") void updateSuspensionState(ProcessInstanceSuspensionStateDto dto)
    • updateSuspensionStateAsync

      @POST @Path("/suspended-async") @Consumes("application/json") @Produces("application/json") BatchDto updateSuspensionStateAsync(ProcessInstanceSuspensionStateAsyncDto dto)
    • deleteAsync

      @POST @Path("/delete") @Consumes("application/json") @Produces("application/json") BatchDto deleteAsync(DeleteProcessInstancesDto dto)
    • deleteAsyncHistoricQueryBased

      @POST @Path("/delete-historic-query-based") @Consumes("application/json") @Produces("application/json") BatchDto deleteAsyncHistoricQueryBased(DeleteProcessInstancesDto dto)
    • setRetriesByProcess

      @POST @Path("/job-retries") @Consumes("application/json") @Produces("application/json") BatchDto setRetriesByProcess(SetJobRetriesByProcessDto setJobRetriesDto)
    • setRetriesByProcessHistoricQueryBased

      @POST @Path("/job-retries-historic-query-based") @Consumes("application/json") @Produces("application/json") BatchDto setRetriesByProcessHistoricQueryBased(SetJobRetriesByProcessDto setJobRetriesDto)
    • setVariablesAsync

      @POST @Path("/variables-async") @Consumes("application/json") @Produces("application/json") BatchDto setVariablesAsync(SetVariablesAsyncDto setVariablesAsyncDto)
    • correlateMessageAsync

      @POST @Path("/message-async") @Consumes("application/json") @Produces("application/json") BatchDto correlateMessageAsync(CorrelationMessageAsyncDto correlationMessageAsyncDto)
    • getProcessInstanceStatistics

      @POST @Path("/instance-counts") @Consumes("application/json") @Produces("application/json") List<ProcessInstanceCountStatisticsDto> getProcessInstanceStatistics(ProcessInstanceCountRequestDto request)
      Retrieves statistics about process instance counts based on the provided request criteria.

      This endpoint accepts a ProcessInstanceCountRequestDto in the request body, which can specify various filters and grouping options. The response is a list of ProcessInstanceCountStatisticsDto objects, 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.

      Parameters:
      request - the request object containing filtering and grouping criteria
      Returns:
      a list of statistics objects, each containing count information for a group of process instances