예제 #1
0
        public static bool DefinesPersistentEventTrigger(IPvmScope activity)
        {
            var eventScope = (ScopeImpl)activity.EventScope;

            if (eventScope != null)
            {
                return(TimerDeclarationImpl.GetDeclarationsForScope(eventScope).ContainsKey(activity.Id) ||
                       EventSubscriptionDeclaration.GetDeclarationsForScope(eventScope).ContainsKey(activity.Id));
            }
            return(false);
        }
예제 #2
0
 protected internal virtual IDictionary <string, TimerDeclarationImpl> GetTimerDeclarationsByTriggeringActivity(
     ScopeImpl scope)
 {
     return(new Dictionary <string, TimerDeclarationImpl>(TimerDeclarationImpl.GetDeclarationsForScope(scope)));
 }