public class ActivityInstanceJobHandler extends Object implements MigratingDependentInstanceParseHandler<MigratingActivityInstance,List<JobEntity>>
Constructor and Description |
---|
ActivityInstanceJobHandler() |
public void handle(MigratingInstanceParseContext parseContext, MigratingActivityInstance activityInstance, List<JobEntity> elements)
handle
in interface MigratingDependentInstanceParseHandler<MigratingActivityInstance,List<JobEntity>>
protected TimerDeclarationImpl getTargetTimerDeclaration(JobEntity job, JobHandlerConfiguration jobHandlerConfiguration, String targetActivity, Map<String,Map<String,TimerDeclarationImpl>> targetTimeoutListenerDeclarationsInEventScope, Map<String,TimerDeclarationImpl> targetTimerDeclarationsInEventScope)
protected static boolean isTimerJob(JobEntity job)
protected static boolean isNoTimeoutListenerOrMigrates(JobEntity job, JobHandlerConfiguration jobHandlerConfiguration, String targetActivity, Map<String,Map<String,TimerDeclarationImpl>> targetTimeoutListenerDeclarationsInEventScope)
protected static boolean isTimeoutListenerJobInTargetScope(JobHandlerConfiguration jobHandlerConfiguration, String targetActivity, Map<String,Map<String,TimerDeclarationImpl>> targetTimeoutListenerDeclarationsInEventScope)
protected static TimerDeclarationImpl removeTimeoutListenerJobFromTargetScope(JobHandlerConfiguration jobHandlerConfiguration, String targetActivity, Map<String,Map<String,TimerDeclarationImpl>> targetTimeoutListenerDeclarationsInEventScope)
protected void addEmergingTimerJobs(MigratingInstanceParseContext parseContext, MigratingActivityInstance activityInstance, Map<String,TimerDeclarationImpl> sourceTimerDeclarationsInEventScope, Map<String,TimerDeclarationImpl> targetTimerDeclarationsInEventScope)
protected void addEmergingTimeoutListenerJobs(MigratingInstanceParseContext parseContext, MigratingActivityInstance activityInstance, Map<String,Map<String,TimerDeclarationImpl>> sourceTimeoutListenerDeclarationsInEventScope, Map<String,Map<String,TimerDeclarationImpl>> targetTimeoutListenerDeclarationsInEventScope)
protected boolean isNonInterruptingTimerTriggeredAlready(MigratingInstanceParseContext parseContext, Map<String,TimerDeclarationImpl> sourceTimerDeclarationsInEventScope, TimerDeclarationImpl targetTimerDeclaration)
protected boolean isNonInterruptingTimeoutListenerTriggeredAlready(MigratingInstanceParseContext parseContext, Map<String,Map<String,TimerDeclarationImpl>> sourceTimeoutListenerDeclarationsInEventScope, Map.Entry<String,TimerDeclarationImpl> targetTimerDeclarationEntry)
Copyright © 2022. All rights reserved.