141 references to EnabledActivities
System.Workflow.Activities (113)
Common\CompModHelpers.cs (2)
249
foreach (Activity activity in compositeActivity2.
EnabledActivities
)
935
List<Activity> allActivities = new List<Activity>(compositeActivity.
EnabledActivities
);
Common\ValidationHelpers.cs (3)
172
for (int i = 0; i < requestParent.
EnabledActivities
.Count; i++)
174
if (requestParent.
EnabledActivities
[i] == requestChild)
176
else if (requestParent.
EnabledActivities
[i] == responseChild)
Conditional.cs (6)
81
for (int i = 0; i < this.
EnabledActivities
.Count; ++i)
83
IfElseBranchActivity branch = this.
EnabledActivities
[i] as IfElseBranchActivity;
102
for (int i = 0; i < this.
EnabledActivities
.Count; ++i)
104
Activity childBranch = this.
EnabledActivities
[i];
148
if (ifElse.
EnabledActivities
.Count < 1)
152
foreach (Activity activity in ifElse.
EnabledActivities
)
ConditionalBranch.cs (3)
75
bool isLastBranch = (ifElse != null && ifElse.
EnabledActivities
.Count > 1 && (ifElse.
EnabledActivities
[ifElse.
EnabledActivities
.Count - 1] == ifElseBranch));
ConstrainedGroup.cs (9)
98
if (!this.
EnabledActivities
.Contains(childActivity))
118
for (int i = 0; i < this.
EnabledActivities
.Count; ++i)
120
if (this.
EnabledActivities
[i].QualifiedName.Equals(childActivityName))
122
childActivity = this.
EnabledActivities
[i];
349
foreach (Activity act in cag.
EnabledActivities
)
435
foreach (Activity act in cag.
EnabledActivities
)
590
foreach (Activity act in cag.
EnabledActivities
)
759
int len = cag.
EnabledActivities
.Count;
761
foreach (Activity act in cag.
EnabledActivities
)
Designers\SetStateDesigner.cs (1)
318
foreach (Activity activity in parent.
EnabledActivities
)
Designers\TaskDesigner.cs (1)
28
if (compositeActivity != null && compositeActivity.
EnabledActivities
.Count > 0)
EventDriven.cs (3)
46
ReadOnlyCollection<Activity> enabledActivities = this.
EnabledActivities
;
75
Activity firstActivity = (eventDriven.
EnabledActivities
.Count > 0) ? eventDriven.
EnabledActivities
[0] : null;
EventHandlers.cs (18)
99
for (int i = 0; i < this.
EnabledActivities
.Count; ++i)
101
EventDrivenActivity childActivity = this.
EnabledActivities
[i] as EventDrivenActivity;
119
for (int i = 0; i < this.
EnabledActivities
.Count; ++i)
121
EventDrivenActivity childActivity = this.
EnabledActivities
[i] as EventDrivenActivity;
176
activity.ActivityState.Insert(activity.
EnabledActivities
.IndexOf(addedActivity), eventActivitySubscriber);
259
for (int i = 0; i < eventHandlers.
EnabledActivities
.Count; ++i)
261
if (eventHandlers.
EnabledActivities
[i].QualifiedName.Equals(eda.QualifiedName))
270
ActivityExecutionContext childContext = contextManager.CreateExecutionContext(eventHandlers.
EnabledActivities
[i]);
300
for (int i = 0; i < handlers.
EnabledActivities
.Count; ++i)
302
EventDrivenActivity eventDriven = handlers.
EnabledActivities
[i] as EventDrivenActivity;
328
for (int i = 0; i < handlers.
EnabledActivities
.Count; ++i)
330
EventDrivenActivity evtDriven = handlers.
EnabledActivities
[i] as EventDrivenActivity;
402
if (!handlers.
EnabledActivities
.Contains(eventDrivenActivity))
429
if (!this.
EnabledActivities
.Contains(childActivity))
449
for (int i = 0; i < this.
EnabledActivities
.Count; ++i)
451
if (this.
EnabledActivities
[i].QualifiedName.Equals(childActivityName))
453
childActivity = this.
EnabledActivities
[i];
486
foreach (Activity activity in eventHandlers.
EnabledActivities
)
EventHandlingScope.cs (3)
139
foreach (Activity child in this.
EnabledActivities
)
152
foreach (Activity child in this.
EnabledActivities
)
220
foreach (Activity child in compositeActivity.
EnabledActivities
)
Listen.cs (11)
58
for (int i = 0; i < this.
EnabledActivities
.Count; ++i)
60
EventDrivenActivity eventDriven = this.
EnabledActivities
[i] as EventDrivenActivity;
81
for (int i = 0; i < this.
EnabledActivities
.Count; ++i)
83
EventDrivenActivity eventDriven = this.
EnabledActivities
[i] as EventDrivenActivity;
101
EventDrivenActivity eventDrivenChild = this.
EnabledActivities
[i] as EventDrivenActivity;
143
listen.ActivityState.Insert(listen.
EnabledActivities
.IndexOf(addedActivity), eventActivitySubscriber);
267
if (!parentActivity.
EnabledActivities
.Contains(eventDrivenActivity))//Activity is dynamically removed.
272
for (int i = 0; i < parentActivity.
EnabledActivities
.Count; ++i)
274
EventDrivenActivity eventDriven = parentActivity.
EnabledActivities
[i] as EventDrivenActivity;
300
if (listen.
EnabledActivities
.Count < 2)
305
foreach (Activity activity in listen.
EnabledActivities
)
Parallel.cs (11)
56
for (int i = 0; i < this.
EnabledActivities
.Count; ++i)
58
Activity childActivity = this.
EnabledActivities
[i];
63
return (this.
EnabledActivities
.Count == 0) ? ActivityExecutionStatus.Closed : ActivityExecutionStatus.Executing;
72
for (int i = 0; i < this.
EnabledActivities
.Count; ++i)
74
Activity childActivity = this.
EnabledActivities
[i];
125
for (int i = 0; i < this.
EnabledActivities
.Count; ++i)
127
Activity childActivity = this.
EnabledActivities
[i];
160
for (int i = 0; i < parallel.
EnabledActivities
.Count; ++i)
162
Activity childActivity = parallel.
EnabledActivities
[i];
205
if (parallel.
EnabledActivities
.Count < 2)
210
foreach (Activity activity in parallel.
EnabledActivities
)
Sequence.cs (7)
52
if (this.
EnabledActivities
.Count == 0)
59
this.
EnabledActivities
[0].RegisterForStatusChange(Activity.ClosedEvent, this);
60
executionContext.ExecuteActivity(this.
EnabledActivities
[0]);
61
this.SetValue(ActiveChildQualifiedNameProperty, this.
EnabledActivities
[0].QualifiedName);
70
for (int i = (this.
EnabledActivities
.Count - 1); i >= 0; i--)
72
Activity childActivity = this.
EnabledActivities
[i];
152
IList<Activity> seqList = this.
EnabledActivities
;
State.cs (5)
71
if (!this.
EnabledActivities
.Contains(childActivity))
91
for (int i = 0; i < this.
EnabledActivities
.Count; ++i)
93
if (this.
EnabledActivities
[i].QualifiedName.Equals(childActivityName))
95
childActivity = this.
EnabledActivities
[i];
540
foreach (Activity activity in state.
EnabledActivities
)
StateFinalizationActivity.cs (1)
59
foreach (Activity activity in state.
EnabledActivities
)
StateInitialization.cs (2)
59
foreach (Activity activity in state.
EnabledActivities
)
90
foreach (Activity activity in compositeActivity.
EnabledActivities
)
StateMachineAction.cs (1)
260
foreach (Activity activity in state.
EnabledActivities
)
StateMachineExecutionState.cs (1)
236
foreach (Activity childActivity in currentState.
EnabledActivities
)
StateMachineHelpers.cs (5)
46
foreach (Activity child in state.
EnabledActivities
)
180
foreach (Activity activity in state.
EnabledActivities
)
243
Debug.Assert(eventDriven.
EnabledActivities
.Count > 0);
244
IEventActivity eventActivity = sequenceActivity.
EnabledActivities
[0] as IEventActivity;
278
foreach (Activity childActivity in state.
EnabledActivities
)
StateMachineSubscriptionManager.cs (3)
71
foreach (Activity childActivity in state.
EnabledActivities
)
91
foreach (Activity activity in state.
EnabledActivities
)
295
foreach (Activity activity in state.
EnabledActivities
)
StateMachineWorkflowInstance.cs (2)
118
foreach (Activity childActivity in parent.
EnabledActivities
)
250
foreach (Activity childActivity in compositeActivity.
EnabledActivities
)
StateValidator.cs (4)
297
if (completedState.
EnabledActivities
.Count > 0)
320
foreach (Activity activity in state.
EnabledActivities
)
339
if (eventDriven.
EnabledActivities
.Count > 0)
341
firstEventActivity = eventDriven.
EnabledActivities
[0] as IEventActivity;
Task.cs (4)
70
if (this.
EnabledActivities
.Count > 0)
71
return this.GetDynamicActivities(this.
EnabledActivities
[0]);
530
ActivityExecutionContext templateExecutionContext = contextManager.CreateExecutionContext(this.
EnabledActivities
[0]);
1245
if ((replicator.
EnabledActivities
.Count != 1))
While.cs (7)
69
if (this.
EnabledActivities
.Count > 0)
71
Activity[] dynamicChildren = this.GetDynamicActivities(this.
EnabledActivities
[0]);
96
if (this.
EnabledActivities
.Count == 0)
99
Activity childActivity = this.
EnabledActivities
[0];
121
if (this.
EnabledActivities
.Count > 0)
124
ActivityExecutionContext innerContext = contextManager.CreateExecutionContext(this.
EnabledActivities
[0]);
170
if (whileActivity.
EnabledActivities
.Count != 1)
System.Workflow.ComponentModel (24)
AuthoringOM\ActivityExecutionContextCollection.cs (2)
84
for (int i = 0; i < compositeActivity.
EnabledActivities
.Count; ++i)
86
activityQueue.Enqueue(compositeActivity.
EnabledActivities
[i]);
AuthoringOM\Behaviors\CancellationHandler.cs (1)
73
if (cancellationHandlerActivity.
EnabledActivities
.Count == 0)
AuthoringOM\Behaviors\Compensate.cs (1)
187
foreach (Activity activity in parent.
EnabledActivities
)
AuthoringOM\Behaviors\Compensation.cs (1)
78
if (compensation.
EnabledActivities
.Count == 0)
AuthoringOM\Behaviors\ExceptionHandler.cs (1)
199
if (exceptionHandler.
EnabledActivities
.Count == 0)
AuthoringOM\Behaviors\ExceptionHandlers.cs (4)
60
foreach (FaultHandlerActivity exceptionHandler in this.
EnabledActivities
)
81
for (int i = 0; i < this.
EnabledActivities
.Count; ++i)
83
Activity childActivity = this.
EnabledActivities
[i];
165
foreach (Activity activity in exceptionHandlers.
EnabledActivities
)
AuthoringOM\Compiler\Validation\DependencyObjectValidator.cs (1)
118
bool checkNotSet = (activity.Parent != null) || ((activity is CompositeActivity) && (((CompositeActivity)activity).
EnabledActivities
.Count != 0));
AuthoringOM\Compiler\Validation\TransactionContextValidator.cs (1)
120
foreach (Activity grandChild in compositeActivity.
EnabledActivities
)
AuthoringOM\Sequence.cs (7)
27
if (activity.
EnabledActivities
.Count == 0)
31
activity.
EnabledActivities
[0].RegisterForStatusChange(Activity.ClosedEvent, (IActivityEventListener<ActivityExecutionStatusChangedEventArgs>)activity);
32
executionContext.ExecuteActivity(activity.
EnabledActivities
[0]);
33
activity.SetValue(ActiveChildQualifiedNameProperty, activity.
EnabledActivities
[0].QualifiedName);
40
for (int i = (activity.
EnabledActivities
.Count - 1); i >= 0; i--)
42
Activity childActivity = activity.
EnabledActivities
[i];
81
IList<Activity> children = activity.
EnabledActivities
;
Shared\CompModHelpers.cs (2)
247
foreach (Activity activity in compositeActivity2.
EnabledActivities
)
933
List<Activity> allActivities = new List<Activity>(compositeActivity.
EnabledActivities
);
Shared\ValidationHelpers.cs (3)
171
for (int i = 0; i < requestParent.
EnabledActivities
.Count; i++)
173
if (requestParent.
EnabledActivities
[i] == requestChild)
175
else if (requestParent.
EnabledActivities
[i] == responseChild)
System.Workflow.Runtime (3)
RTTrackingProfile.cs (1)
658
List<Activity> allActivities = new List<Activity>(compositeActivity.
EnabledActivities
);
Tracking\SqlTrackingService.cs (1)
2603
List<Activity> allActivities = new List<Activity>(compositeActivity.
EnabledActivities
);
WorkflowDefinitionDispenser.cs (1)
221
foreach (Activity childActivity in compositeActivity.
EnabledActivities
)
System.WorkflowServices (1)
System\Workflow\Runtime\StreamedWorkflowDefinitionContext.cs (1)
239
foreach (System.Workflow.ComponentModel.Activity childActivity in compositeActivity.
EnabledActivities
)