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
public class TimerDeclarationImpl extends JobDeclaration<ExecutionEntity,TimerEntity>
- Author:
- Tom Baeyens, Daniel Meyer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Expression
description
protected String
eventScopeActivityId
protected boolean
isInterruptingTimer
protected Boolean
isParallelMultiInstance
protected String
rawJobHandlerConfiguration
protected String
repeat
protected TimerDeclarationType
type
-
Fields inherited from class org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration
activity, exclusive, jobConfiguration, jobDefinitionId, jobHandlerConfiguration, jobHandlerType, jobPriorityProvider
-
-
Constructor Summary
Constructors Constructor Description TimerDeclarationImpl(Expression expression, TimerDeclarationType type, String jobHandlerType)
-
Method Summary
-
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 Detail
-
description
protected Expression description
-
type
protected TimerDeclarationType type
-
repeat
protected String repeat
-
isInterruptingTimer
protected boolean isInterruptingTimer
-
eventScopeActivityId
protected String eventScopeActivityId
-
isParallelMultiInstance
protected Boolean isParallelMultiInstance
-
rawJobHandlerConfiguration
protected String rawJobHandlerConfiguration
-
-
Constructor Detail
-
TimerDeclarationImpl
public TimerDeclarationImpl(Expression expression, TimerDeclarationType type, String jobHandlerType)
-
-
Method Detail
-
isInterruptingTimer
public boolean isInterruptingTimer()
-
setInterruptingTimer
public void setInterruptingTimer(boolean isInterruptingTimer)
-
getRepeat
public String getRepeat()
-
setEventScopeActivityId
public void setEventScopeActivityId(String eventScopeActivityId)
-
getEventScopeActivityId
public String getEventScopeActivityId()
-
newJobInstance
protected TimerEntity newJobInstance(ExecutionEntity execution)
- Specified by:
newJobInstance
in classJobDeclaration<ExecutionEntity,TimerEntity>
-
setRawJobHandlerConfiguration
public void setRawJobHandlerConfiguration(String rawJobHandlerConfiguration)
-
updateJob
public void updateJob(TimerEntity timer)
-
initializeConfiguration
protected void initializeConfiguration(ExecutionEntity context, TimerEntity job)
-
resolveAndSetDuedate
public String resolveAndSetDuedate(ExecutionEntity context, TimerEntity job, boolean creationDateBased)
-
postInitialize
protected void postInitialize(ExecutionEntity execution, TimerEntity timer)
Description copied from class:JobDeclaration
general callback to override any configuration after the defaults have been applied- Overrides:
postInitialize
in classJobDeclaration<ExecutionEntity,TimerEntity>
-
createTimerInstance
public TimerEntity createTimerInstance(ExecutionEntity execution)
-
createStartTimerInstance
public TimerEntity createStartTimerInstance(String deploymentId)
-
createTimer
public TimerEntity createTimer(String deploymentId)
-
createTimer
public TimerEntity createTimer(ExecutionEntity execution)
-
scheduleTimer
protected void scheduleTimer(TimerEntity timer)
-
resolveExecution
protected ExecutionEntity resolveExecution(ExecutionEntity context)
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
protected JobHandlerConfiguration resolveJobHandlerConfiguration(ExecutionEntity context)
- Specified by:
resolveJobHandlerConfiguration
in classJobDeclaration<ExecutionEntity,TimerEntity>
-
getDeclarationsForScope
public static Map<String,TimerDeclarationImpl> getDeclarationsForScope(PvmScope scope)
- Returns:
- all timers declared in the given scope
-
-