Sets the retries for external tasks.
If the new value is 0, a new incident with a null 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 null
AuthorizationException - 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 property
queryMaxResultsLimit (default Integer.MAX_VALUE).
Please use the batch operation setAsync(int) instead.
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 null 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 null