Package org.camunda.bpm.engine.rest.impl
Class ExternalTaskRestServiceImpl
- java.lang.Object
-
- org.camunda.bpm.engine.rest.spi.impl.AbstractProcessEngineAware
-
- org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
-
- org.camunda.bpm.engine.rest.impl.ExternalTaskRestServiceImpl
-
- All Implemented Interfaces:
ExternalTaskRestService
public class ExternalTaskRestServiceImpl extends AbstractRestProcessEngineAware implements ExternalTaskRestService
- Author:
- Thorben Lindhauer
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
objectMapper, relativeRootResourcePath
-
Fields inherited from class org.camunda.bpm.engine.rest.spi.impl.AbstractProcessEngineAware
processEngine
-
Fields inherited from interface org.camunda.bpm.engine.rest.ExternalTaskRestService
PATH
-
-
Constructor Summary
Constructors Constructor Description ExternalTaskRestServiceImpl(java.lang.String processEngine, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<ExternalTask>
executePaginatedQuery(ExternalTaskQuery query, java.lang.Integer firstResult, java.lang.Integer maxResults)
java.util.List<LockedExternalTaskDto>
fetchAndLock(FetchExternalTasksDto fetchingDto)
ExternalTaskResource
getExternalTask(java.lang.String externalTaskId)
java.util.List<ExternalTaskDto>
getExternalTasks(javax.ws.rs.core.UriInfo uriInfo, java.lang.Integer firstResult, java.lang.Integer maxResults)
CountResultDto
getExternalTasksCount(javax.ws.rs.core.UriInfo uriInfo)
java.util.List<java.lang.String>
getTopicNames(boolean withLockedTasks, boolean withUnlockedTasks, boolean withRetriesLeft)
java.util.List<ExternalTaskDto>
queryExternalTasks(ExternalTaskQueryDto queryDto, java.lang.Integer firstResult, java.lang.Integer maxResults)
CountResultDto
queryExternalTasksCount(ExternalTaskQueryDto queryDto)
void
setRetries(SetRetriesForExternalTasksDto retriesDto)
BatchDto
setRetriesAsync(SetRetriesForExternalTasksDto retriesDto)
protected UpdateExternalTaskRetriesBuilder
updateRetries(SetRetriesForExternalTasksDto retriesDto)
-
Methods inherited from class org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
getObjectMapper, getProcessEngine, setRelativeRootResourceUri
-
-
-
-
Method Detail
-
getExternalTasks
public java.util.List<ExternalTaskDto> getExternalTasks(javax.ws.rs.core.UriInfo uriInfo, java.lang.Integer firstResult, java.lang.Integer maxResults)
- Specified by:
getExternalTasks
in interfaceExternalTaskRestService
-
queryExternalTasks
public java.util.List<ExternalTaskDto> queryExternalTasks(ExternalTaskQueryDto queryDto, java.lang.Integer firstResult, java.lang.Integer maxResults)
- Specified by:
queryExternalTasks
in interfaceExternalTaskRestService
-
executePaginatedQuery
protected java.util.List<ExternalTask> executePaginatedQuery(ExternalTaskQuery query, java.lang.Integer firstResult, java.lang.Integer maxResults)
-
getExternalTasksCount
public CountResultDto getExternalTasksCount(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
getExternalTasksCount
in interfaceExternalTaskRestService
-
queryExternalTasksCount
public CountResultDto queryExternalTasksCount(ExternalTaskQueryDto queryDto)
- Specified by:
queryExternalTasksCount
in interfaceExternalTaskRestService
-
fetchAndLock
public java.util.List<LockedExternalTaskDto> fetchAndLock(FetchExternalTasksDto fetchingDto)
- Specified by:
fetchAndLock
in interfaceExternalTaskRestService
-
getExternalTask
public ExternalTaskResource getExternalTask(java.lang.String externalTaskId)
- Specified by:
getExternalTask
in interfaceExternalTaskRestService
-
setRetriesAsync
public BatchDto setRetriesAsync(SetRetriesForExternalTasksDto retriesDto)
- Specified by:
setRetriesAsync
in interfaceExternalTaskRestService
-
getTopicNames
public java.util.List<java.lang.String> getTopicNames(boolean withLockedTasks, boolean withUnlockedTasks, boolean withRetriesLeft)
- Specified by:
getTopicNames
in interfaceExternalTaskRestService
-
setRetries
public void setRetries(SetRetriesForExternalTasksDto retriesDto)
- Specified by:
setRetries
in interfaceExternalTaskRestService
-
updateRetries
protected UpdateExternalTaskRetriesBuilder updateRetries(SetRetriesForExternalTasksDto retriesDto)
-
-