コード例 #1
0
        public virtual MigratingCompensationEventSubscriptionInstance addCompensationSubscriptionInstance(MigrationInstruction eventSubscriptionInstruction, EventSubscriptionEntity eventSubscription, ScopeImpl sourceScope, ScopeImpl targetScope)
        {
            MigratingCompensationEventSubscriptionInstance compensationInstance = new MigratingCompensationEventSubscriptionInstance(eventSubscriptionInstruction, sourceScope, targetScope, eventSubscription);

            migratingCompensationSubscriptionInstances.Add(compensationInstance);

            return(compensationInstance);
        }
コード例 #2
0
        /// <summary>
        /// Creates an emerged scope
        /// </summary>
        public MigratingEventScopeInstance(EventSubscriptionEntity eventSubscription, ExecutionEntity eventScopeExecution, ScopeImpl targetScope)
        {
            this.migratingEventSubscription = new MigratingCompensationEventSubscriptionInstance(null, null, targetScope, eventSubscription);
            this.eventScopeExecution        = eventScopeExecution;

            // compensation handlers (not boundary events)
            // or parent flow scopes
            this.targetScope  = targetScope;
            this.currentScope = targetScope;
        }
コード例 #3
0
        public MigratingEventScopeInstance(MigrationInstruction migrationInstruction, ExecutionEntity eventScopeExecution, ScopeImpl sourceScope, ScopeImpl targetScope, MigrationInstruction eventSubscriptionInstruction, EventSubscriptionEntity eventSubscription, ScopeImpl eventSubscriptionSourceScope, ScopeImpl eventSubscriptionTargetScope)
        {
            this.migratingEventSubscription = new MigratingCompensationEventSubscriptionInstance(eventSubscriptionInstruction, eventSubscriptionSourceScope, eventSubscriptionTargetScope, eventSubscription);
            this.migrationInstruction       = migrationInstruction;
            this.eventScopeExecution        = eventScopeExecution;

            // compensation handlers (not boundary events)
            this.sourceScope = sourceScope;
            this.targetScope = targetScope;
        }
コード例 #4
0
 public override void removeChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription)
 {
     this.childCompensationSubscriptionInstances.remove(migratingEventSubscription);
 }
コード例 #5
0
 public abstract void addChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription);