Class SetJobRetriesByProcessAsyncBuilderImpl
java.lang.Object
org.camunda.bpm.engine.impl.management.SetJobRetriesByProcessAsyncBuilderImpl
- All Implemented Interfaces:
SetJobRetriesAsyncBuilder
,SetJobRetriesByProcessAsyncBuilder
public class SetJobRetriesByProcessAsyncBuilderImpl
extends Object
implements SetJobRetriesByProcessAsyncBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CommandExecutor
protected Date
protected HistoricProcessInstanceQuery
protected boolean
protected static final CommandLogger
protected ProcessInstanceQuery
protected Integer
-
Constructor Summary
ConstructorDescriptionSetJobRetriesByProcessAsyncBuilderImpl
(CommandExecutor commandExecutor, int retries) -
Method Summary
Modifier and TypeMethodDescriptionSpecifies a due date to be set on the referencedjobs
.Closes the fluent builder and creates a Batch that sets the job retries and executes any additional instructions.Specifies a historic process instance query that identifies runtime process instances with jobs that have to be modified.processInstanceIds
(List<String> processInstanceIds) Specifies a list of process instance ids.Specifies a process instance query.protected void
-
Field Details
-
LOG
-
commandExecutor
-
processInstanceIds
-
processInstanceQuery
-
historicProcessInstanceQuery
-
retries
-
dueDate
-
isDueDateSet
protected boolean isDueDateSet
-
-
Constructor Details
-
SetJobRetriesByProcessAsyncBuilderImpl
-
-
Method Details
-
processInstanceIds
Description copied from interface:SetJobRetriesByProcessAsyncBuilder
Specifies 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, aProcessEngineException
is thrown onSetJobRetriesAsyncBuilder.executeAsync()
.- Specified by:
processInstanceIds
in interfaceSetJobRetriesByProcessAsyncBuilder
- Parameters:
processInstanceIds
- the list of process instance ids- Returns:
- the builder instance
- See Also:
-
processInstanceQuery
Description copied from interface:SetJobRetriesByProcessAsyncBuilder
Specifies 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, aProcessEngineException
is thrown onSetJobRetriesAsyncBuilder.executeAsync()
.- Specified by:
processInstanceQuery
in interfaceSetJobRetriesByProcessAsyncBuilder
- Parameters:
query
- the process instance query- Returns:
- the builder instance
- See Also:
-
historicProcessInstanceQuery
public SetJobRetriesByProcessAsyncBuilder historicProcessInstanceQuery(HistoricProcessInstanceQuery query) Description copied from interface:SetJobRetriesByProcessAsyncBuilder
Specifies 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, aProcessEngineException
is thrown onSetJobRetriesAsyncBuilder.executeAsync()
.- Specified by:
historicProcessInstanceQuery
in interfaceSetJobRetriesByProcessAsyncBuilder
- Parameters:
query
- the historic process instance- Returns:
- the builder instance
- See Also:
-
dueDate
Description copied from interface:SetJobRetriesAsyncBuilder
Specifies 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 aJob
is 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:
dueDate
in interfaceSetJobRetriesAsyncBuilder
- Parameters:
dueDate
- The new due date for the updated jobs. If it is null, the due date will be set to null. IfensureJobDueDateNotNull
is true, the due date will be set to the current date instead of null.- Returns:
- the builder instance
-
executeAsync
Description copied from interface:SetJobRetriesAsyncBuilder
Closes the fluent builder and creates a Batch that sets the job retries and executes any additional instructions.- Specified by:
executeAsync
in interfaceSetJobRetriesAsyncBuilder
-
validateParameters
protected void validateParameters()
-