2 writes to rootActivity
System.Workflow.Runtime (2)
78 references to rootActivity
System.Workflow.Runtime (78)
WorkflowExecutor.cs (78)
146this.rootActivity.SetValue(WorkflowExecutor.ContextIdProperty, 0);
147this.rootActivity.SetValue(WorkflowInstanceIdProperty, instanceId);
149this.rootActivity.SetValue(Activity.ActivityExecutionContextInfoProperty, new ActivityExecutionContextInfo(this.rootActivity.QualifiedName, GetNewContextId(), instanceId, -1));
150this.rootActivity.SetValue(Activity.ActivityContextGuidProperty, instanceId);
151this.rootActivity.SetValue(WorkflowExecutor.IsIdleProperty, true);
155this.rootActivity.SetValue(WorkflowExecutor.WorkflowExecutorProperty, this);
163((IDependencyObjectAccessor)this.rootActivity).InitializeActivatingInstanceForRuntime(null, this);
164this.rootActivity.FixUpMetaProperties(workflowDefinition);
170TrackingCallingState parentTCS = (TrackingCallingState)invokerExec.rootActivity.GetValue(WorkflowExecutor.TrackingCallingStateProperty);
190this.rootActivity.SetValue(WorkflowExecutor.TrackingCallingStateProperty, trackingCallingState);
205using (new ServiceEnvironment(this.rootActivity))
207using (SetCurrentActivity(this.rootActivity))
209this.RegisterDynamicActivity(this.rootActivity, false);
218using (new ServiceEnvironment(this.rootActivity))
220using (SetCurrentActivity(this.rootActivity))
222using (ActivityExecutionContext executionContext = new ActivityExecutionContext(this.rootActivity, true))
223executionContext.InitializeActivity(this.rootActivity);
250using (new ServiceEnvironment(this.rootActivity))
308this.rootActivity.SetValue(WorkflowExecutor.WorkflowExecutorProperty, this);
318using (new ServiceEnvironment(this.rootActivity))
340dynamicActivitiesQueue.Enqueue(this.rootActivity);
356this.isInstanceIdle = (bool)this.rootActivity.GetValue(IsIdleProperty);
374propertyInfo.SetValue(this.rootActivity, namedInArguments[arg], null);
394return (TrackingCallingState)this.rootActivity.GetValue(WorkflowExecutor.TrackingCallingStateProperty);
450get { return (string)this.rootActivity.GetValue(SuspendOrTerminateInfoProperty); }
480Activity tempDefinition = (Activity)this.rootActivity.GetValue(Activity.WorkflowDefinitionProperty);
496return this.rootActivity;
572using (new ServiceEnvironment(this.rootActivity))
577using (ActivityExecutionContext executionContext = new ActivityExecutionContext(this.rootActivity, true))
587executionContext.ExecuteActivity(this.rootActivity);
618int conextId = (int)this.rootActivity.GetValue(WorkflowExecutor.ContextIdProperty) + 1;
619this.rootActivity.SetValue(WorkflowExecutor.ContextIdProperty, conextId);
671using (new ServiceEnvironment(this.rootActivity))
718using (new ServiceEnvironment(this.rootActivity))
725if ((this.rootActivity.ExecutionStatus == ActivityExecutionStatus.Closed) || (WorkflowStatus.Completed == this.WorkflowStatus) || (WorkflowStatus.Terminated == this.WorkflowStatus))
805if (this.rootActivity.ExecutionStatus != ActivityExecutionStatus.Closed)
819if ((persistence != null) && persistence.UnloadOnIdle(this.rootActivity))
837this.Persist(this.rootActivity, false, false);
851if ((bool)this.rootActivity.GetValue(WorkflowExecutor.IsSuspensionRequestedProperty))
854this.rootActivity.SetValue(WorkflowExecutor.IsSuspensionRequestedProperty, false);
925get { return (WorkflowStatus)this.rootActivity.GetValue(WorkflowStatusProperty); }
926private set { this.rootActivity.SetValue(WorkflowStatusProperty, value); }
935_timerQueue = (TimerEventSubscriptionCollection)this.rootActivity.GetValue(TimerEventSubscriptionCollection.TimerCollectionProperty);
943this.rootActivity.SetValue(TimerEventSubscriptionCollection.TimerCollectionProperty, _timerQueue);
957this.Persist(this.rootActivity, unlock, false);
991lastExecutingActivity = this.rootActivity;
1076persistence.SaveWorkflowInstanceState(this.rootActivity, unlock);
1080persistence.UnlockWorkflowInstanceState(this.rootActivity);
1167if ((ActivityExecutionStatus.Closed == this.rootActivity.ExecutionStatus) && (WorkflowStatus.Terminated != workflowStatus))
1176this.rootActivity.SetValue(IsBlockedProperty, this.Scheduler.IsStalledNow);
1182this.rootActivity.SetValue(IsBlockedProperty, false);
1254IWorkBatch batch = _resourceManager.BatchCollection.GetBatch(this.rootActivity);
1283using (new ServiceEnvironment(this.rootActivity))
1307IWorkBatch batch = (IWorkBatch)this.rootActivity.GetValue(WorkflowExecutor.TransientBatchProperty);
1332using (new ServiceEnvironment(this.rootActivity))
1465using (new ServiceEnvironment(this.rootActivity))
1534this.Persist(this.rootActivity, true, false);
1578using (new ServiceEnvironment(this.rootActivity))
1639using (new ServiceEnvironment(this.rootActivity))
1684this.rootActivity.SetValue(SuspendOrTerminateInfoProperty, error);
1691this.rootActivity.SetValue(Activity.ExecutionResultProperty, ActivityExecutionResult.Canceled);
1695this.Persist(this.rootActivity, true, false);
1701this.rootActivity.SetValue(Activity.ExecutionResultProperty, ActivityExecutionResult.None);
1729if ((this.rootActivity == this.CurrentActivity) && this.rootActivity.ExecutionStatus == ActivityExecutionStatus.Closed)
1775using (new ServiceEnvironment(this.rootActivity))
1831persistenceSvc.UnlockWorkflowInstanceState(attemptedRootDispose ? null : this.rootActivity);
1834this.CommitTransaction(this.rootActivity);
1892using (new ServiceEnvironment(this.rootActivity))
1937switch (this.rootActivity.ExecutionStatus)
1957this.rootActivity.SetValue(SuspendOrTerminateInfoProperty, error);
2006using (new ServiceEnvironment(this.rootActivity))
2040this.rootActivity.SetValue(SuspendOrTerminateInfoProperty, string.Empty);
2684using (new ServiceEnvironment(this.rootActivity))
2715workflowChanges.ApplyTo(this.rootActivity);
2807return ((IWorkflowCoreRuntime)this).GetService(this.rootActivity, serviceType);
3071return this.rootActivity;