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); }
/// <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; }
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; }
public override void removeChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription) { this.childCompensationSubscriptionInstances.remove(migratingEventSubscription); }
public abstract void addChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription);