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 java.lang.Object implements UpdateExternalTaskRetriesBuilder
- Author:
- smirnov
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutor
commandExecutor
protected java.util.List<java.lang.String>
externalTaskIds
protected ExternalTaskQuery
externalTaskQuery
protected HistoricProcessInstanceQuery
historicProcessInstanceQuery
protected java.util.List<java.lang.String>
processInstanceIds
protected ProcessInstanceQuery
processInstanceQuery
protected int
retries
-
Constructor Summary
Constructors Constructor Description UpdateExternalTaskRetriesBuilderImpl(java.util.List<java.lang.String> externalTaskIds, int retries)
UpdateExternalTaskRetriesBuilderImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateExternalTaskRetriesBuilder
externalTaskIds(java.lang.String... externalTaskIds)
Selects a list of external tasks with the given list of ids.UpdateExternalTaskRetriesBuilder
externalTaskIds(java.util.List<java.lang.String> externalTaskIds)
Selects a list of external tasks with the given list of ids.UpdateExternalTaskRetriesBuilder
externalTaskQuery(ExternalTaskQuery externalTaskQuery)
Selects a list of external tasks with the given external task query.java.util.List<java.lang.String>
getExternalTaskIds()
ExternalTaskQuery
getExternalTaskQuery()
HistoricProcessInstanceQuery
getHistoricProcessInstanceQuery()
java.util.List<java.lang.String>
getProcessInstanceIds()
ProcessInstanceQuery
getProcessInstanceQuery()
int
getRetries()
UpdateExternalTaskRetriesBuilder
historicProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery)
Selects a list of external tasks with the given historic process instance query.UpdateExternalTaskRetriesBuilder
processInstanceIds(java.lang.String... processInstanceIds)
Selects a list of external tasks with the given list of process instances ids.UpdateExternalTaskRetriesBuilder
processInstanceIds(java.util.List<java.lang.String> processInstanceIds)
Selects a list of external tasks with the given list of process instances ids.UpdateExternalTaskRetriesBuilder
processInstanceQuery(ProcessInstanceQuery processInstanceQuery)
Selects a list of external tasks with the given process instance query.void
set(int retries)
Sets the retries for external tasks.Batch
setAsync(int retries)
Sets the retries for external tasks asynchronously as batch.
-
-
-
Field Detail
-
commandExecutor
protected CommandExecutor commandExecutor
-
externalTaskIds
protected java.util.List<java.lang.String> externalTaskIds
-
processInstanceIds
protected java.util.List<java.lang.String> processInstanceIds
-
externalTaskQuery
protected ExternalTaskQuery externalTaskQuery
-
processInstanceQuery
protected ProcessInstanceQuery processInstanceQuery
-
historicProcessInstanceQuery
protected HistoricProcessInstanceQuery historicProcessInstanceQuery
-
retries
protected int retries
-
-
Constructor Detail
-
UpdateExternalTaskRetriesBuilderImpl
public UpdateExternalTaskRetriesBuilderImpl(java.util.List<java.lang.String> externalTaskIds, int retries)
-
UpdateExternalTaskRetriesBuilderImpl
public UpdateExternalTaskRetriesBuilderImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
externalTaskIds
public UpdateExternalTaskRetriesBuilder externalTaskIds(java.util.List<java.lang.String> externalTaskIds)
Description copied from interface:UpdateExternalTaskRetriesSelectBuilder
Selects a list of external tasks with the given list of ids.- Specified by:
externalTaskIds
in interfaceUpdateExternalTaskRetriesSelectBuilder
-
externalTaskIds
public UpdateExternalTaskRetriesBuilder externalTaskIds(java.lang.String... externalTaskIds)
Description copied from interface:UpdateExternalTaskRetriesSelectBuilder
Selects a list of external tasks with the given list of ids.- Specified by:
externalTaskIds
in interfaceUpdateExternalTaskRetriesSelectBuilder
-
processInstanceIds
public UpdateExternalTaskRetriesBuilder processInstanceIds(java.util.List<java.lang.String> processInstanceIds)
Description copied from interface:UpdateExternalTaskRetriesSelectBuilder
Selects a list of external tasks with the given list of process instances ids.- Specified by:
processInstanceIds
in interfaceUpdateExternalTaskRetriesSelectBuilder
-
processInstanceIds
public UpdateExternalTaskRetriesBuilder processInstanceIds(java.lang.String... processInstanceIds)
Description copied from interface:UpdateExternalTaskRetriesSelectBuilder
Selects a list of external tasks with the given list of process instances ids.- Specified by:
processInstanceIds
in interfaceUpdateExternalTaskRetriesSelectBuilder
-
externalTaskQuery
public UpdateExternalTaskRetriesBuilder externalTaskQuery(ExternalTaskQuery externalTaskQuery)
Description copied from interface:UpdateExternalTaskRetriesSelectBuilder
Selects a list of external tasks with the given external task query.- Specified by:
externalTaskQuery
in interfaceUpdateExternalTaskRetriesSelectBuilder
-
processInstanceQuery
public UpdateExternalTaskRetriesBuilder processInstanceQuery(ProcessInstanceQuery processInstanceQuery)
Description copied from interface:UpdateExternalTaskRetriesSelectBuilder
Selects a list of external tasks with the given process instance query.- Specified by:
processInstanceQuery
in interfaceUpdateExternalTaskRetriesSelectBuilder
-
historicProcessInstanceQuery
public UpdateExternalTaskRetriesBuilder historicProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery)
Description copied from interface:UpdateExternalTaskRetriesSelectBuilder
Selects a list of external tasks with the given historic process instance query.- Specified by:
historicProcessInstanceQuery
in interfaceUpdateExternalTaskRetriesSelectBuilder
-
set
public void set(int retries)
Description copied from interface:UpdateExternalTaskRetriesBuilder
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.- Specified by:
set
in interfaceUpdateExternalTaskRetriesBuilder
-
setAsync
public Batch setAsync(int retries)
Description copied from interface:UpdateExternalTaskRetriesBuilder
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.- Specified by:
setAsync
in interfaceUpdateExternalTaskRetriesBuilder
-
getRetries
public int getRetries()
-
getExternalTaskIds
public java.util.List<java.lang.String> getExternalTaskIds()
-
getProcessInstanceIds
public java.util.List<java.lang.String> getProcessInstanceIds()
-
getExternalTaskQuery
public ExternalTaskQuery getExternalTaskQuery()
-
getProcessInstanceQuery
public ProcessInstanceQuery getProcessInstanceQuery()
-
getHistoricProcessInstanceQuery
public HistoricProcessInstanceQuery getHistoricProcessInstanceQuery()
-
-