Beispiel #1
0
        protected internal virtual IDictionary <string, EventSubscriptionDeclaration> GetDeclarationsByTriggeringActivity
            (ScopeImpl eventScope)
        {
            var declarations = EventSubscriptionDeclaration.GetDeclarationsForScope(eventScope);

            return(new Dictionary <string, EventSubscriptionDeclaration>(declarations));
        }
Beispiel #2
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);
        }
Beispiel #3
0
 protected internal virtual string FindStartActivityIdByMessage(ProcessDefinitionEntity processDefinition,
                                                                string messageName)
 {
     foreach (EventSubscriptionDeclaration declaration in EventSubscriptionDeclaration.GetDeclarationsForScope(processDefinition).Values)
     {
         if (IsMessageStartEventWithName(declaration, messageName))
         {
             return(declaration.ActivityId);
         }
     }
     return(null);
 }