Interface UpdateExternalTaskRetriesBuilder
- All Superinterfaces:
UpdateExternalTaskRetriesSelectBuilder
- All Known Implementing Classes:
UpdateExternalTaskRetriesBuilderImpl
-
Method Summary
Methods inherited from interface org.operaton.bpm.engine.externaltask.UpdateExternalTaskRetriesSelectBuilder
externalTaskIds, externalTaskIds, externalTaskQuery, historicProcessInstanceQuery, processInstanceIds, processInstanceIds, processInstanceQuery
-
Method Details
-
set
void set(int retries) Sets the retries for external tasks.If the new value is 0, a new incident with a
nullmessage 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 the batch operationsetAsync(int)instead.
-
setAsync
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 a
nullmessage 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.CREATEorBatchPermissions.CREATE_BATCH_SET_EXTERNAL_TASK_RETRIESpermission onResources.BATCH.
-