@Produces(value="application/json")
public interface ProcessDefinitionRestService
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_BPMN20_XML |
static javax.ws.rs.core.MediaType |
APPLICATION_BPMN20_XML_TYPE |
static String |
PATH |
Modifier and Type | Method and Description |
---|---|
void |
deleteProcessDefinitionsByKey(String processDefinitionKey,
boolean cascade,
boolean skipCustomListeners,
boolean skipIoMappings) |
void |
deleteProcessDefinitionsByKeyAndTenantId(String processDefinitionKey,
boolean cascade,
boolean skipCustomListeners,
boolean skipIoMappings,
String tenantId) |
ProcessDefinitionResource |
getProcessDefinitionById(String processDefinitionId) |
ProcessDefinitionResource |
getProcessDefinitionByKey(String processDefinitionKey) |
ProcessDefinitionResource |
getProcessDefinitionByKeyAndTenantId(String processDefinitionKey,
String tenantId) |
List<ProcessDefinitionDto> |
getProcessDefinitions(javax.ws.rs.core.UriInfo uriInfo,
Integer firstResult,
Integer maxResults)
Exposes the
ProcessDefinitionQuery interface as a REST service. |
CountResultDto |
getProcessDefinitionsCount(javax.ws.rs.core.UriInfo uriInfo) |
List<StatisticsResultDto> |
getStatistics(Boolean includeFailedJobs,
Boolean includeRootIncidents,
Boolean includeIncidents,
String includeIncidentsForType) |
void |
updateSuspensionState(ProcessDefinitionSuspensionStateDto dto) |
static final String APPLICATION_BPMN20_XML
static final javax.ws.rs.core.MediaType APPLICATION_BPMN20_XML_TYPE
static final String PATH
@Path(value="/{id}") ProcessDefinitionResource getProcessDefinitionById(@PathParam(value="id") String processDefinitionId)
@Path(value="/key/{key}") ProcessDefinitionResource getProcessDefinitionByKey(@PathParam(value="key") String processDefinitionKey)
@Path(value="/key/{key}/tenant-id/{tenantId}") ProcessDefinitionResource getProcessDefinitionByKeyAndTenantId(@PathParam(value="key") String processDefinitionKey, @PathParam(value="tenantId") String tenantId)
@GET @Produces(value="application/json") List<ProcessDefinitionDto> getProcessDefinitions(@Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam(value="firstResult") Integer firstResult, @QueryParam(value="maxResults") Integer maxResults)
ProcessDefinitionQuery
interface as a REST service.uriInfo
- firstResult
- maxResults
- @GET @Path(value="/count") @Produces(value="application/json") CountResultDto getProcessDefinitionsCount(@Context javax.ws.rs.core.UriInfo uriInfo)
@GET @Path(value="/statistics") @Produces(value="application/json") List<StatisticsResultDto> getStatistics(@QueryParam(value="failedJobs") Boolean includeFailedJobs, @QueryParam(value="rootIncidents") Boolean includeRootIncidents, @QueryParam(value="incidents") Boolean includeIncidents, @QueryParam(value="incidentsForType") String includeIncidentsForType)
@PUT @Path(value="/suspended") @Consumes(value="application/json") void updateSuspensionState(ProcessDefinitionSuspensionStateDto dto)
@DELETE @Path(value="/key/{key}/delete") void deleteProcessDefinitionsByKey(@PathParam(value="key") String processDefinitionKey, @QueryParam(value="cascade") boolean cascade, @QueryParam(value="skipCustomListeners") boolean skipCustomListeners, @QueryParam(value="skipIoMappings") boolean skipIoMappings)
@DELETE @Path(value="/key/{key}/tenant-id/{tenantId}/delete") void deleteProcessDefinitionsByKeyAndTenantId(@PathParam(value="key") String processDefinitionKey, @QueryParam(value="cascade") boolean cascade, @QueryParam(value="skipCustomListeners") boolean skipCustomListeners, @QueryParam(value="skipIoMappings") boolean skipIoMappings, @PathParam(value="tenantId") String tenantId)
Copyright © 2021. All rights reserved.