public static bool definesPersistentEventTrigger(ActivityImpl activity) { ScopeImpl eventScope = activity.EventScope; if (eventScope != null) { return(TimerDeclarationImpl.getDeclarationsForScope(eventScope).ContainsKey(activity.Id) || EventSubscriptionDeclaration.getDeclarationsForScope(eventScope).ContainsKey(activity.Id)); } else { return(false); } }
public EmergingJobInstance(TimerDeclarationImpl timerDeclaration) { this.timerDeclaration = timerDeclaration; }
public MigratingTimerJobInstance(JobEntity jobEntity, JobDefinitionEntity jobDefinitionEntity, ScopeImpl targetScope, bool updateEvent, TimerDeclarationImpl targetTimerDeclaration) : base(jobEntity, jobDefinitionEntity, targetScope) { timerTriggerTargetScope = determineTimerTriggerTargetScope(jobEntity, targetScope); this.updateEvent = updateEvent; this.targetJobDeclaration = targetTimerDeclaration; }