Exemplo n.º 1
0
        protected internal virtual void AddMessageStartEventSubscription(EventSubscriptionDeclaration messageEventDefinition, ESS.FW.Bpm.Engine.Persistence.Entity.ProcessDefinitionEntity processDefinition)
        {
            string tenantId = processDefinition.TenantId;

            if (IsSameMessageEventSubscriptionAlreadyPresent(messageEventDefinition, tenantId))
            {
                throw Log.MessageEventSubscriptionWithSameNameExists(processDefinition.ResourceName, messageEventDefinition.UnresolvedEventName);
            }
            EventSubscriptionEntity newSubscription = messageEventDefinition.CreateSubscriptionForStartEvent(processDefinition);

            newSubscription.Insert();
        }
Exemplo n.º 2
0
        /// <summary>
        /// EventSubscriptionEntity
        /// </summary>
        /// <param name="signalEventDefinition"></param>
        /// <param name="processDefinition"></param>
        protected internal virtual void AddSignalStartEventSubscription(EventSubscriptionDeclaration signalEventDefinition, ESS.FW.Bpm.Engine.Persistence.Entity.ProcessDefinitionEntity processDefinition)
        {
            EventSubscriptionEntity newSubscription = signalEventDefinition.CreateSubscriptionForStartEvent(processDefinition);

            newSubscription.Insert();
        }