Interface UpdateExternalTaskRetriesBuilder
-
- All Superinterfaces:
UpdateExternalTaskRetriesSelectBuilder
- All Known Implementing Classes:
UpdateExternalTaskRetriesBuilderImpl
public interface UpdateExternalTaskRetriesBuilder extends UpdateExternalTaskRetriesSelectBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
set(int retries)
Sets the retries for external tasks.Batch
setAsync(int retries)
Sets the retries for external tasks asynchronously as batch.-
Methods inherited from interface org.camunda.bpm.engine.externaltask.UpdateExternalTaskRetriesSelectBuilder
externalTaskIds, externalTaskIds, externalTaskQuery, historicProcessInstanceQuery, processInstanceIds, processInstanceIds, processInstanceQuery
-
-
-
-
Method Detail
-
set
void set(int retries)
Sets the retries for external tasks. If the new value is 0, a new incident with anull
message is created. If the old value is 0 and the new value is greater than 0, an existing incident is resolved.- Parameters:
retries
-- Throws:
BadUserRequestException
- If no external tasks are found If a external task id is set to nullAuthorizationException
- thrown if the current user does not possess any of the following permissions:BadUserRequestException
- When the affected instances count exceeds the maximum results limit. A maximum results limit can be specified with the process engine configuration propertyqueryMaxResultsLimit
(defaultInteger.MAX_VALUE
). Please use the batch operationsetAsync(int)
instead.
-
setAsync
Batch setAsync(int retries)
Sets the retries for external tasks asynchronously as batch. The returned batch can be used to track the progress. If the new value is 0, a new incident with anull
message is created. If the old value is 0 and the new value is greater than 0, an existing incident is resolved.- Parameters:
retries
-- Throws:
BadUserRequestException
- If no external tasks are found or if a external task id is set to nullAuthorizationException
- if the user has noPermissions.CREATE
orBatchPermissions.CREATE_BATCH_SET_EXTERNAL_TASK_RETRIES
permission onResources.BATCH
.
-
-