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
FieldsModifier and TypeFieldDescriptionprotected Expressionprotected Stringprotected booleanprotected Booleanprotected Stringprotected Stringprotected TimerDeclarationTypeFields inherited from class org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration
activity, exclusive, jobConfiguration, jobDefinitionId, jobHandlerConfiguration, jobHandlerType, jobPriorityProvider -
Constructor Summary
ConstructorsConstructorDescriptionTimerDeclarationImpl(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 voidinitializeConfiguration(ExecutionEntity context, TimerEntity job) booleanprotected TimerEntitynewJobInstance(ExecutionEntity execution) protected voidpostInitialize(ExecutionEntity execution, TimerEntity timer) general callback to override any configuration after the defaults have been appliedprotected StringprepareRepeat(String dueDate) resolveAndSetDuedate(ExecutionEntity context, TimerEntity job, boolean creationDateBased) protected ExecutionEntityresolveExecution(ExecutionEntity context) Returns the execution in which context the job is created.protected JobHandlerConfigurationprotected voidscheduleTimer(TimerEntity timer) voidsetEventScopeActivityId(String eventScopeActivityId) voidsetInterruptingTimer(boolean isInterruptingTimer) voidsetRawJobHandlerConfiguration(String rawJobHandlerConfiguration) voidupdateJob(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:
newJobInstancein classJobDeclaration<ExecutionEntity,TimerEntity>
-
setRawJobHandlerConfiguration
-
updateJob
-
initializeConfiguration
-
resolveAndSetDuedate
public String resolveAndSetDuedate(ExecutionEntity context, TimerEntity job, boolean creationDateBased) -
postInitialize
Description copied from class:JobDeclarationgeneral callback to override any configuration after the defaults have been applied- Overrides:
postInitializein classJobDeclaration<ExecutionEntity,TimerEntity>
-
prepareRepeat
-
createTimerInstance
-
createStartTimerInstance
-
createTimer
-
createTimer
-
scheduleTimer
-
resolveExecution
Description copied from class:JobDeclarationReturns 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:
resolveExecutionin classJobDeclaration<ExecutionEntity,TimerEntity>
-
resolveJobHandlerConfiguration
- Specified by:
resolveJobHandlerConfigurationin 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
-