Class ActivityInstanceJobHandler
- java.lang.Object
-
- org.camunda.bpm.engine.impl.migration.instance.parser.ActivityInstanceJobHandler
-
- All Implemented Interfaces:
MigratingDependentInstanceParseHandler<MigratingActivityInstance,java.util.List<JobEntity>>
public class ActivityInstanceJobHandler extends java.lang.Object implements MigratingDependentInstanceParseHandler<MigratingActivityInstance,java.util.List<JobEntity>>
- Author:
- Thorben Lindhauer
-
-
Constructor Summary
Constructors Constructor Description ActivityInstanceJobHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addEmergingTimeoutListenerJobs(MigratingInstanceParseContext parseContext, MigratingActivityInstance activityInstance, java.util.Map<java.lang.String,java.util.Map<java.lang.String,TimerDeclarationImpl>> sourceTimeoutListenerDeclarationsInEventScope, java.util.Map<java.lang.String,java.util.Map<java.lang.String,TimerDeclarationImpl>> targetTimeoutListenerDeclarationsInEventScope)
protected void
addEmergingTimerJobs(MigratingInstanceParseContext parseContext, MigratingActivityInstance activityInstance, java.util.Map<java.lang.String,TimerDeclarationImpl> sourceTimerDeclarationsInEventScope, java.util.Map<java.lang.String,TimerDeclarationImpl> targetTimerDeclarationsInEventScope)
protected TimerDeclarationImpl
getTargetTimerDeclaration(JobEntity job, JobHandlerConfiguration jobHandlerConfiguration, java.lang.String targetActivity, java.util.Map<java.lang.String,java.util.Map<java.lang.String,TimerDeclarationImpl>> targetTimeoutListenerDeclarationsInEventScope, java.util.Map<java.lang.String,TimerDeclarationImpl> targetTimerDeclarationsInEventScope)
void
handle(MigratingInstanceParseContext parseContext, MigratingActivityInstance activityInstance, java.util.List<JobEntity> elements)
protected boolean
isNonInterruptingTimeoutListenerTriggeredAlready(MigratingInstanceParseContext parseContext, java.util.Map<java.lang.String,java.util.Map<java.lang.String,TimerDeclarationImpl>> sourceTimeoutListenerDeclarationsInEventScope, java.util.Map.Entry<java.lang.String,TimerDeclarationImpl> targetTimerDeclarationEntry)
protected boolean
isNonInterruptingTimerTriggeredAlready(MigratingInstanceParseContext parseContext, java.util.Map<java.lang.String,TimerDeclarationImpl> sourceTimerDeclarationsInEventScope, TimerDeclarationImpl targetTimerDeclaration)
protected static boolean
isNoTimeoutListenerOrMigrates(JobEntity job, JobHandlerConfiguration jobHandlerConfiguration, java.lang.String targetActivity, java.util.Map<java.lang.String,java.util.Map<java.lang.String,TimerDeclarationImpl>> targetTimeoutListenerDeclarationsInEventScope)
protected static boolean
isTimeoutListenerJobInTargetScope(JobHandlerConfiguration jobHandlerConfiguration, java.lang.String targetActivity, java.util.Map<java.lang.String,java.util.Map<java.lang.String,TimerDeclarationImpl>> targetTimeoutListenerDeclarationsInEventScope)
protected static boolean
isTimerJob(JobEntity job)
protected static TimerDeclarationImpl
removeTimeoutListenerJobFromTargetScope(JobHandlerConfiguration jobHandlerConfiguration, java.lang.String targetActivity, java.util.Map<java.lang.String,java.util.Map<java.lang.String,TimerDeclarationImpl>> targetTimeoutListenerDeclarationsInEventScope)
-
-
-
Method Detail
-
handle
public void handle(MigratingInstanceParseContext parseContext, MigratingActivityInstance activityInstance, java.util.List<JobEntity> elements)
- Specified by:
handle
in interfaceMigratingDependentInstanceParseHandler<MigratingActivityInstance,java.util.List<JobEntity>>
-
getTargetTimerDeclaration
protected TimerDeclarationImpl getTargetTimerDeclaration(JobEntity job, JobHandlerConfiguration jobHandlerConfiguration, java.lang.String targetActivity, java.util.Map<java.lang.String,java.util.Map<java.lang.String,TimerDeclarationImpl>> targetTimeoutListenerDeclarationsInEventScope, java.util.Map<java.lang.String,TimerDeclarationImpl> targetTimerDeclarationsInEventScope)
-
isTimerJob
protected static boolean isTimerJob(JobEntity job)
-
isNoTimeoutListenerOrMigrates
protected static boolean isNoTimeoutListenerOrMigrates(JobEntity job, JobHandlerConfiguration jobHandlerConfiguration, java.lang.String targetActivity, java.util.Map<java.lang.String,java.util.Map<java.lang.String,TimerDeclarationImpl>> targetTimeoutListenerDeclarationsInEventScope)
-
isTimeoutListenerJobInTargetScope
protected static boolean isTimeoutListenerJobInTargetScope(JobHandlerConfiguration jobHandlerConfiguration, java.lang.String targetActivity, java.util.Map<java.lang.String,java.util.Map<java.lang.String,TimerDeclarationImpl>> targetTimeoutListenerDeclarationsInEventScope)
-
removeTimeoutListenerJobFromTargetScope
protected static TimerDeclarationImpl removeTimeoutListenerJobFromTargetScope(JobHandlerConfiguration jobHandlerConfiguration, java.lang.String targetActivity, java.util.Map<java.lang.String,java.util.Map<java.lang.String,TimerDeclarationImpl>> targetTimeoutListenerDeclarationsInEventScope)
-
addEmergingTimerJobs
protected void addEmergingTimerJobs(MigratingInstanceParseContext parseContext, MigratingActivityInstance activityInstance, java.util.Map<java.lang.String,TimerDeclarationImpl> sourceTimerDeclarationsInEventScope, java.util.Map<java.lang.String,TimerDeclarationImpl> targetTimerDeclarationsInEventScope)
-
addEmergingTimeoutListenerJobs
protected void addEmergingTimeoutListenerJobs(MigratingInstanceParseContext parseContext, MigratingActivityInstance activityInstance, java.util.Map<java.lang.String,java.util.Map<java.lang.String,TimerDeclarationImpl>> sourceTimeoutListenerDeclarationsInEventScope, java.util.Map<java.lang.String,java.util.Map<java.lang.String,TimerDeclarationImpl>> targetTimeoutListenerDeclarationsInEventScope)
-
isNonInterruptingTimerTriggeredAlready
protected boolean isNonInterruptingTimerTriggeredAlready(MigratingInstanceParseContext parseContext, java.util.Map<java.lang.String,TimerDeclarationImpl> sourceTimerDeclarationsInEventScope, TimerDeclarationImpl targetTimerDeclaration)
-
isNonInterruptingTimeoutListenerTriggeredAlready
protected boolean isNonInterruptingTimeoutListenerTriggeredAlready(MigratingInstanceParseContext parseContext, java.util.Map<java.lang.String,java.util.Map<java.lang.String,TimerDeclarationImpl>> sourceTimeoutListenerDeclarationsInEventScope, java.util.Map.Entry<java.lang.String,TimerDeclarationImpl> targetTimerDeclarationEntry)
-
-