Package org.camunda.bpm.engine.rest.impl
Class ProcessInstanceRestServiceImpl
- java.lang.Object
-
- org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
-
- org.camunda.bpm.engine.rest.impl.ProcessInstanceRestServiceImpl
-
- All Implemented Interfaces:
ProcessInstanceRestService
public class ProcessInstanceRestServiceImpl extends AbstractRestProcessEngineAware implements ProcessInstanceRestService
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
objectMapper, relativeRootResourcePath
-
Fields inherited from interface org.camunda.bpm.engine.rest.ProcessInstanceRestService
PATH
-
-
Constructor Summary
Constructors Constructor Description ProcessInstanceRestServiceImpl(String engineName, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
-
Methods inherited from class org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
getObjectMapper, getProcessEngine, setRelativeRootResourceUri
-
-
-
-
Constructor Detail
-
ProcessInstanceRestServiceImpl
public ProcessInstanceRestServiceImpl(String engineName, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
getProcessInstances
public List<ProcessInstanceDto> getProcessInstances(javax.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults)
Description copied from interface:ProcessInstanceRestService
Exposes theProcessInstanceQuery
interface as a REST service.- Specified by:
getProcessInstances
in interfaceProcessInstanceRestService
- Returns:
-
queryProcessInstances
public List<ProcessInstanceDto> queryProcessInstances(ProcessInstanceQueryDto queryDto, Integer firstResult, Integer maxResults)
Description copied from interface:ProcessInstanceRestService
Expects the same parameters asProcessInstanceRestService.getProcessInstances(UriInfo, Integer, Integer)
(as a JSON message body) and allows for any number of variable checks.- Specified by:
queryProcessInstances
in interfaceProcessInstanceRestService
- Returns:
-
getProcessInstancesCount
public CountResultDto getProcessInstancesCount(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
getProcessInstancesCount
in interfaceProcessInstanceRestService
-
queryProcessInstancesCount
public CountResultDto queryProcessInstancesCount(ProcessInstanceQueryDto queryDto)
- Specified by:
queryProcessInstancesCount
in interfaceProcessInstanceRestService
-
getProcessInstance
public ProcessInstanceResource getProcessInstance(String processInstanceId)
- Specified by:
getProcessInstance
in interfaceProcessInstanceRestService
-
updateSuspensionState
public void updateSuspensionState(ProcessInstanceSuspensionStateDto dto)
- Specified by:
updateSuspensionState
in interfaceProcessInstanceRestService
-
updateSuspensionStateAsync
public BatchDto updateSuspensionStateAsync(ProcessInstanceSuspensionStateAsyncDto dto)
- Specified by:
updateSuspensionStateAsync
in interfaceProcessInstanceRestService
-
deleteAsync
public BatchDto deleteAsync(DeleteProcessInstancesDto dto)
- Specified by:
deleteAsync
in interfaceProcessInstanceRestService
-
deleteAsyncHistoricQueryBased
public BatchDto deleteAsyncHistoricQueryBased(DeleteProcessInstancesDto deleteProcessInstancesDto)
- Specified by:
deleteAsyncHistoricQueryBased
in interfaceProcessInstanceRestService
-
setRetriesByProcess
public BatchDto setRetriesByProcess(SetJobRetriesByProcessDto setJobRetriesDto)
- Specified by:
setRetriesByProcess
in interfaceProcessInstanceRestService
-
setRetriesByProcessHistoricQueryBased
public BatchDto setRetriesByProcessHistoricQueryBased(SetJobRetriesByProcessDto setJobRetriesDto)
- Specified by:
setRetriesByProcessHistoricQueryBased
in interfaceProcessInstanceRestService
-
setVariablesAsync
public BatchDto setVariablesAsync(SetVariablesAsyncDto setVariablesAsyncDto)
- Specified by:
setVariablesAsync
in interfaceProcessInstanceRestService
-
correlateMessageAsync
public BatchDto correlateMessageAsync(CorrelationMessageAsyncDto correlationMessageAsyncDto)
- Specified by:
correlateMessageAsync
in interfaceProcessInstanceRestService
-
toQuery
protected <T extends Query<?,?>,R extends AbstractQueryDto<T>> T toQuery(R query)
-
-