Class SetJobRetriesByProcessAsyncBuilderImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.management.SetJobRetriesByProcessAsyncBuilderImpl
-
- All Implemented Interfaces:
SetJobRetriesAsyncBuilder,SetJobRetriesByProcessAsyncBuilder
public class SetJobRetriesByProcessAsyncBuilderImpl extends java.lang.Object implements SetJobRetriesByProcessAsyncBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutorcommandExecutorprotected java.util.DatedueDateprotected HistoricProcessInstanceQueryhistoricProcessInstanceQueryprotected booleanisDueDateSetprotected static CommandLoggerLOGprotected java.util.List<java.lang.String>processInstanceIdsprotected ProcessInstanceQueryprocessInstanceQueryprotected java.lang.Integerretries
-
Constructor Summary
Constructors Constructor Description SetJobRetriesByProcessAsyncBuilderImpl(CommandExecutor commandExecutor, int retries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetJobRetriesByProcessAsyncBuilderdueDate(java.util.Date dueDate)Specifies a due date to be set on the referencedjobs.BatchexecuteAsync()Closes the fluent builder and creates a Batch that sets the job retries and executes any additional instructions.SetJobRetriesByProcessAsyncBuilderhistoricProcessInstanceQuery(HistoricProcessInstanceQuery query)Specifies a historic process instance query that identifies runtime process instances with jobs that have to be modified.SetJobRetriesByProcessAsyncBuilderprocessInstanceIds(java.util.List<java.lang.String> processInstanceIds)Specifies a list of process instance ids.SetJobRetriesByProcessAsyncBuilderprocessInstanceQuery(ProcessInstanceQuery query)Specifies a process instance query.protected voidvalidateParameters()
-
-
-
Field Detail
-
LOG
protected static final CommandLogger LOG
-
commandExecutor
protected final CommandExecutor commandExecutor
-
processInstanceIds
protected java.util.List<java.lang.String> processInstanceIds
-
processInstanceQuery
protected ProcessInstanceQuery processInstanceQuery
-
historicProcessInstanceQuery
protected HistoricProcessInstanceQuery historicProcessInstanceQuery
-
retries
protected java.lang.Integer retries
-
dueDate
protected java.util.Date dueDate
-
isDueDateSet
protected boolean isDueDateSet
-
-
Constructor Detail
-
SetJobRetriesByProcessAsyncBuilderImpl
public SetJobRetriesByProcessAsyncBuilderImpl(CommandExecutor commandExecutor, int retries)
-
-
Method Detail
-
processInstanceIds
public SetJobRetriesByProcessAsyncBuilder processInstanceIds(java.util.List<java.lang.String> processInstanceIds)
Description copied from interface:SetJobRetriesByProcessAsyncBuilderSpecifies a list of process instance ids. All jobs belonging to those process instances will be updated. If this method is called together with more methods referencing jobs, the builder will operate on the jobs referenced by all. If no method referencing jobs is called, aProcessEngineExceptionis thrown onSetJobRetriesAsyncBuilder.executeAsync().- Specified by:
processInstanceIdsin interfaceSetJobRetriesByProcessAsyncBuilder- Parameters:
processInstanceIds- the list of process instance ids- Returns:
- the builder instance
- See Also:
ManagementService.setJobRetriesAsync(List, ProcessInstanceQuery, int)
-
processInstanceQuery
public SetJobRetriesByProcessAsyncBuilder processInstanceQuery(ProcessInstanceQuery query)
Description copied from interface:SetJobRetriesByProcessAsyncBuilderSpecifies a process instance query. All jobs belonging to those process instances will be updated. If this method is called together with more methods referencing jobs, the builder will operate on the jobs referenced by all. If no method referencing jobs is called, aProcessEngineExceptionis thrown onSetJobRetriesAsyncBuilder.executeAsync().- Specified by:
processInstanceQueryin interfaceSetJobRetriesByProcessAsyncBuilder- Parameters:
query- the process instance query- Returns:
- the builder instance
- See Also:
ManagementService.setJobRetriesAsync(List, ProcessInstanceQuery, int)
-
historicProcessInstanceQuery
public SetJobRetriesByProcessAsyncBuilder historicProcessInstanceQuery(HistoricProcessInstanceQuery query)
Description copied from interface:SetJobRetriesByProcessAsyncBuilderSpecifies a historic process instance query that identifies runtime process instances with jobs that have to be modified. All jobs belonging to those process instances will be updated. If this method is called together with more methods referencing jobs, the builder will operate on the jobs referenced by all. If no method referencing jobs is called, aProcessEngineExceptionis thrown onSetJobRetriesAsyncBuilder.executeAsync().- Specified by:
historicProcessInstanceQueryin interfaceSetJobRetriesByProcessAsyncBuilder- Parameters:
query- the historic process instance- Returns:
- the builder instance
- See Also:
ManagementService.setJobRetriesAsync(List, ProcessInstanceQuery, HistoricProcessInstanceQuery, int)
-
dueDate
public SetJobRetriesByProcessAsyncBuilder dueDate(java.util.Date dueDate)
Description copied from interface:SetJobRetriesAsyncBuilderSpecifies a due date to be set on the referencedjobs. When the number of retries of a job are incremented it is not automatically scheduled for immediate execution. When aJobis executed is determined by the due date. By setting the due date together with the job retries, the scheduled execution date of the job can be adjusted.- Specified by:
dueDatein interfaceSetJobRetriesAsyncBuilder- Parameters:
dueDate- The new due date for the updated jobs. If it is null, the due date will be set to null. IfensureJobDueDateNotNullis true, the due date will be set to the current date instead of null.- Returns:
- the builder instance
-
executeAsync
public Batch executeAsync()
Description copied from interface:SetJobRetriesAsyncBuilderCloses the fluent builder and creates a Batch that sets the job retries and executes any additional instructions.- Specified by:
executeAsyncin interfaceSetJobRetriesAsyncBuilder
-
validateParameters
protected void validateParameters()
-
-