Class TimerDeclarationImpl
java.lang.Object
org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration<ExecutionEntity,TimerEntity>
org.camunda.bpm.engine.impl.jobexecutor.TimerDeclarationImpl
- All Implemented Interfaces:
Serializable
- Author:
- Tom Baeyens, Daniel Meyer
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Expression
protected String
protected boolean
protected Boolean
protected String
protected String
protected TimerDeclarationType
Fields inherited from class org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration
activity, exclusive, jobConfiguration, jobDefinitionId, jobHandlerConfiguration, jobHandlerType, jobPriorityProvider
-
Constructor Summary
ConstructorDescriptionTimerDeclarationImpl
(Expression expression, TimerDeclarationType type, String jobHandlerType) -
Method Summary
Modifier and TypeMethodDescriptioncreateStartTimerInstance
(String deploymentId) createTimer
(String deploymentId) createTimer
(ExecutionEntity execution) createTimerInstance
(ExecutionEntity execution) static Map<String,
TimerDeclarationImpl> getDeclarationsForScope
(PvmScope scope) static Map<String,
Map<String, TimerDeclarationImpl>> protected void
initializeConfiguration
(ExecutionEntity context, TimerEntity job) boolean
protected TimerEntity
newJobInstance
(ExecutionEntity execution) protected void
postInitialize
(ExecutionEntity execution, TimerEntity timer) general callback to override any configuration after the defaults have been appliedprotected String
prepareRepeat
(String dueDate) resolveAndSetDuedate
(ExecutionEntity context, TimerEntity job, boolean creationDateBased) protected ExecutionEntity
resolveExecution
(ExecutionEntity context) Returns the execution in which context the job is created.protected JobHandlerConfiguration
protected void
scheduleTimer
(TimerEntity timer) void
setEventScopeActivityId
(String eventScopeActivityId) void
setInterruptingTimer
(boolean isInterruptingTimer) void
setRawJobHandlerConfiguration
(String rawJobHandlerConfiguration) void
updateJob
(TimerEntity timer) Methods inherited from class org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration
createJobInstance, getActivity, getActivityId, getJobConfiguration, getJobDefinitionId, getJobHandlerType, getJobPriorityProvider, getProcessDefinition, isExclusive, reconfigure, resolveDueDate, resolveExclusive, resolveJobDefinitionId, resolveJobHandler, resolveJobHandlerType, resolveRetries, setActivity, setExclusive, setJobConfiguration, setJobDefinitionId, setJobPriorityProvider
-
Field Details
-
description
-
type
-
repeat
-
isInterruptingTimer
protected boolean isInterruptingTimer -
eventScopeActivityId
-
isParallelMultiInstance
-
rawJobHandlerConfiguration
-
-
Constructor Details
-
TimerDeclarationImpl
public TimerDeclarationImpl(Expression expression, TimerDeclarationType type, String jobHandlerType)
-
-
Method Details
-
isInterruptingTimer
public boolean isInterruptingTimer() -
setInterruptingTimer
public void setInterruptingTimer(boolean isInterruptingTimer) -
getRepeat
-
setEventScopeActivityId
-
getEventScopeActivityId
-
newJobInstance
- Specified by:
newJobInstance
in classJobDeclaration<ExecutionEntity,
TimerEntity>
-
setRawJobHandlerConfiguration
-
updateJob
-
initializeConfiguration
-
resolveAndSetDuedate
public String resolveAndSetDuedate(ExecutionEntity context, TimerEntity job, boolean creationDateBased) -
postInitialize
Description copied from class:JobDeclaration
general callback to override any configuration after the defaults have been applied- Overrides:
postInitialize
in classJobDeclaration<ExecutionEntity,
TimerEntity>
-
prepareRepeat
-
createTimerInstance
-
createStartTimerInstance
-
createTimer
-
createTimer
-
scheduleTimer
-
resolveExecution
Description copied from class:JobDeclaration
Returns the execution in which context the job is created. The execution is used to determine the job's priority based on a BPMN activity the execution is currently executing. May be null.- Specified by:
resolveExecution
in classJobDeclaration<ExecutionEntity,
TimerEntity>
-
resolveJobHandlerConfiguration
- Specified by:
resolveJobHandlerConfiguration
in classJobDeclaration<ExecutionEntity,
TimerEntity>
-
getDeclarationsForScope
- Returns:
- all timers declared in the given scope
-
getTimeoutListenerDeclarationsForScope
public static Map<String,Map<String, getTimeoutListenerDeclarationsForScopeTimerDeclarationImpl>> (PvmScope scope) - Returns:
- all timeout listeners declared in the given scope
-