Package org.camunda.bpm.engine.impl.cmd
Class UpdateExternalTaskRetriesBuilderImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.cmd.UpdateExternalTaskRetriesBuilderImpl
-
- All Implemented Interfaces:
UpdateExternalTaskRetriesBuilder,UpdateExternalTaskRetriesSelectBuilder
public class UpdateExternalTaskRetriesBuilderImpl extends Object implements UpdateExternalTaskRetriesBuilder
- Author:
- smirnov
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutorcommandExecutorprotected List<String>externalTaskIdsprotected ExternalTaskQueryexternalTaskQueryprotected HistoricProcessInstanceQueryhistoricProcessInstanceQueryprotected List<String>processInstanceIdsprotected ProcessInstanceQueryprocessInstanceQueryprotected intretries
-
Constructor Summary
Constructors Constructor Description UpdateExternalTaskRetriesBuilderImpl(List<String> externalTaskIds, int retries)UpdateExternalTaskRetriesBuilderImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateExternalTaskRetriesBuilderexternalTaskIds(String... externalTaskIds)Selects a list of external tasks with the given list of ids.UpdateExternalTaskRetriesBuilderexternalTaskIds(List<String> externalTaskIds)Selects a list of external tasks with the given list of ids.UpdateExternalTaskRetriesBuilderexternalTaskQuery(ExternalTaskQuery externalTaskQuery)Selects a list of external tasks with the given external task query.List<String>getExternalTaskIds()ExternalTaskQuerygetExternalTaskQuery()HistoricProcessInstanceQuerygetHistoricProcessInstanceQuery()List<String>getProcessInstanceIds()ProcessInstanceQuerygetProcessInstanceQuery()intgetRetries()UpdateExternalTaskRetriesBuilderhistoricProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery)Selects a list of external tasks with the given historic process instance query.UpdateExternalTaskRetriesBuilderprocessInstanceIds(String... processInstanceIds)Selects a list of external tasks with the given list of process instances ids.UpdateExternalTaskRetriesBuilderprocessInstanceIds(List<String> processInstanceIds)Selects a list of external tasks with the given list of process instances ids.UpdateExternalTaskRetriesBuilderprocessInstanceQuery(ProcessInstanceQuery processInstanceQuery)Selects a list of external tasks with the given process instance query.voidset(int retries)Sets the retries for external tasks.BatchsetAsync(int retries)Sets the retries for external tasks asynchronously as batch.
-
-
-
Field Detail
-
commandExecutor
protected CommandExecutor commandExecutor
-
externalTaskQuery
protected ExternalTaskQuery externalTaskQuery
-
processInstanceQuery
protected ProcessInstanceQuery processInstanceQuery
-
historicProcessInstanceQuery
protected HistoricProcessInstanceQuery historicProcessInstanceQuery
-
retries
protected int retries
-
-
Constructor Detail
-
UpdateExternalTaskRetriesBuilderImpl
public UpdateExternalTaskRetriesBuilderImpl(List<String> externalTaskIds, int retries)
-
UpdateExternalTaskRetriesBuilderImpl
public UpdateExternalTaskRetriesBuilderImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
externalTaskIds
public UpdateExternalTaskRetriesBuilder externalTaskIds(List<String> externalTaskIds)
Description copied from interface:UpdateExternalTaskRetriesSelectBuilderSelects a list of external tasks with the given list of ids.- Specified by:
externalTaskIdsin interfaceUpdateExternalTaskRetriesSelectBuilder
-
externalTaskIds
public UpdateExternalTaskRetriesBuilder externalTaskIds(String... externalTaskIds)
Description copied from interface:UpdateExternalTaskRetriesSelectBuilderSelects a list of external tasks with the given list of ids.- Specified by:
externalTaskIdsin interfaceUpdateExternalTaskRetriesSelectBuilder
-
processInstanceIds
public UpdateExternalTaskRetriesBuilder processInstanceIds(List<String> processInstanceIds)
Description copied from interface:UpdateExternalTaskRetriesSelectBuilderSelects a list of external tasks with the given list of process instances ids.- Specified by:
processInstanceIdsin interfaceUpdateExternalTaskRetriesSelectBuilder
-
processInstanceIds
public UpdateExternalTaskRetriesBuilder processInstanceIds(String... processInstanceIds)
Description copied from interface:UpdateExternalTaskRetriesSelectBuilderSelects a list of external tasks with the given list of process instances ids.- Specified by:
processInstanceIdsin interfaceUpdateExternalTaskRetriesSelectBuilder
-
externalTaskQuery
public UpdateExternalTaskRetriesBuilder externalTaskQuery(ExternalTaskQuery externalTaskQuery)
Description copied from interface:UpdateExternalTaskRetriesSelectBuilderSelects a list of external tasks with the given external task query.- Specified by:
externalTaskQueryin interfaceUpdateExternalTaskRetriesSelectBuilder
-
processInstanceQuery
public UpdateExternalTaskRetriesBuilder processInstanceQuery(ProcessInstanceQuery processInstanceQuery)
Description copied from interface:UpdateExternalTaskRetriesSelectBuilderSelects a list of external tasks with the given process instance query.- Specified by:
processInstanceQueryin interfaceUpdateExternalTaskRetriesSelectBuilder
-
historicProcessInstanceQuery
public UpdateExternalTaskRetriesBuilder historicProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery)
Description copied from interface:UpdateExternalTaskRetriesSelectBuilderSelects a list of external tasks with the given historic process instance query.- Specified by:
historicProcessInstanceQueryin interfaceUpdateExternalTaskRetriesSelectBuilder
-
set
public void set(int retries)
Description copied from interface:UpdateExternalTaskRetriesBuilderSets the retries for external tasks. If the new value is 0, a new incident with anullmessage is created. If the old value is 0 and the new value is greater than 0, an existing incident is resolved.- Specified by:
setin interfaceUpdateExternalTaskRetriesBuilder
-
setAsync
public Batch setAsync(int retries)
Description copied from interface:UpdateExternalTaskRetriesBuilderSets 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 anullmessage is created. If the old value is 0 and the new value is greater than 0, an existing incident is resolved.- Specified by:
setAsyncin interfaceUpdateExternalTaskRetriesBuilder
-
getRetries
public int getRetries()
-
getExternalTaskQuery
public ExternalTaskQuery getExternalTaskQuery()
-
getProcessInstanceQuery
public ProcessInstanceQuery getProcessInstanceQuery()
-
getHistoricProcessInstanceQuery
public HistoricProcessInstanceQuery getHistoricProcessInstanceQuery()
-
-