17 types derived from CompositeActivity
System.Workflow.Activities (10)
Conditional.cs (1)
31
public sealed class IfElseActivity :
CompositeActivity
, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
ConstrainedGroup.cs (1)
34
public sealed class ConditionedActivityGroup :
CompositeActivity
, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
EventHandlers.cs (1)
28
public sealed class EventHandlersActivity :
CompositeActivity
, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
EventHandlingScope.cs (1)
28
public sealed class EventHandlingScopeActivity :
CompositeActivity
, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
Listen.cs (1)
33
public sealed class ListenActivity :
CompositeActivity
, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
Parallel.cs (1)
32
public sealed class ParallelActivity :
CompositeActivity
, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
Sequence.cs (1)
26
public class SequenceActivity :
CompositeActivity
, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
State.cs (1)
34
public class StateActivity :
CompositeActivity
Task.cs (1)
35
public sealed class ReplicatorActivity :
CompositeActivity
While.cs (1)
28
public sealed class WhileActivity :
CompositeActivity
, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
System.Workflow.ComponentModel (7)
AuthoringOM\Behaviors\CancellationHandler.cs (1)
18
public sealed class CancellationHandlerActivity :
CompositeActivity
, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
AuthoringOM\Behaviors\CompensatableTransactionScopeActivity.cs (1)
22
public sealed class CompensatableTransactionScopeActivity :
CompositeActivity
, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>, ICompensatableActivity
AuthoringOM\Behaviors\Compensation.cs (1)
19
public sealed class CompensationHandlerActivity :
CompositeActivity
, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
AuthoringOM\Behaviors\ExceptionHandler.cs (1)
27
public sealed class FaultHandlerActivity :
CompositeActivity
, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>, ITypeFilterProvider, IDynamicPropertyTypeProvider
AuthoringOM\Behaviors\ExceptionHandlers.cs (1)
28
public sealed class FaultHandlersActivity :
CompositeActivity
, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
AuthoringOM\Behaviors\SynchronizationScope.cs (1)
25
public sealed class SynchronizationScopeActivity :
CompositeActivity
, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
AuthoringOM\Behaviors\TransactionScope.cs (1)
22
public sealed class TransactionScopeActivity :
CompositeActivity
, IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
500 references to CompositeActivity
System.Workflow.Activities (138)
Common\CompModHelpers.cs (44)
181
internal static Activity[] GetNestedActivities(
CompositeActivity
compositeActivity)
193
CompositeActivity
compositeActivity2 = (
CompositeActivity
)compositeActivities.Dequeue();
199
if (activity is
CompositeActivity
)
208
internal static IList GetIdentifiersInCompositeActivity(
CompositeActivity
compositeActivity)
222
internal static Activity[] GetAllNestedActivities(
CompositeActivity
compositeActivity)
239
CompositeActivity
compositeActivity2 = (
CompositeActivity
)compositeActivities.Dequeue();
245
if (activity is
CompositeActivity
)
254
if (activity is
CompositeActivity
)
318
CompositeActivity
compositeActivity = component as
CompositeActivity
;
367
CompositeActivity
compositeActivity = component as
CompositeActivity
;
679
internal static bool IsChildActivity(
CompositeActivity
parent, Activity activity)
686
if (containedActivity is
CompositeActivity
&&
687
Helpers.IsChildActivity(containedActivity as
CompositeActivity
, activity))
872
internal static
CompositeActivity
GetDeclaringActivity(Activity activity)
877
CompositeActivity
parent = activity.Parent;
898
CompositeActivity
parent = activity.Parent;
930
public static IList<Activity> GetAllEnabledActivities(
CompositeActivity
compositeActivity)
1039
internal static bool IsCustomActivity(
CompositeActivity
compositeActivity)
1052
CompositeActivity
activity = Activator.CreateInstance(compositeActivity.GetType()) as
CompositeActivity
;
1095
if (!(currentActivity is
CompositeActivity
) || !IsCustomActivity(currentActivity as
CompositeActivity
))
1106
CompositeActivity
declaringActivity = GetDeclaringActivity(nextActivity);
1218
CompositeActivity
compositeParentActivity = parentActivity as
CompositeActivity
;
1259
CompositeActivity
declaringContext = context as
CompositeActivity
;
1261
CompositeActivity
declaringActivityOfCurrent = Helpers.GetDeclaringActivity(currentActivity);
1314
if (activity is
CompositeActivity
)
1316
foreach (Activity child in ((
CompositeActivity
)activity).Activities)
1427
if (currentActivity == null && (parsingContext is
CompositeActivity
) && parsingContext.Parent != null && Helpers.IsCustomActivity(parsingContext as
CompositeActivity
))
1434
if (!(currentActivity is
CompositeActivity
) || !Helpers.IsCustomActivity(currentActivity as
CompositeActivity
))
1445
CompositeActivity
declaringActivity = Helpers.GetDeclaringActivity(nextActivity);
1487
if (activity is
CompositeActivity
)
1489
foreach (Activity child in ((
CompositeActivity
)activity).Activities)
1500
CompositeActivity
declaringContext = context as
CompositeActivity
;
1502
CompositeActivity
declaringActivityOfCurrent = Helpers.GetDeclaringActivity(currentActivity);
Common\ValidationHelpers.cs (8)
124
if (activity is
CompositeActivity
&& ((activity.Parent == null) || !Helpers.IsCustomActivity(activity as
CompositeActivity
)))
126
foreach (Activity child in Helpers.GetAllEnabledActivities((
CompositeActivity
)activity))
145
Activity responseParent = response is
CompositeActivity
? (
CompositeActivity
)response : response.Parent;
153
CompositeActivity
requestParent = request is
CompositeActivity
? (
CompositeActivity
)request : request.Parent;
Common\Walker.cs (4)
166
if (walkChildren && activity is
CompositeActivity
)
170
foreach (Activity activity2 in Helpers.GetAllEnabledActivities((
CompositeActivity
)activity))
175
foreach (Activity activity2 in ((
CompositeActivity
)activity).Activities)
269
if (prop.DeclaringType == typeof(
CompositeActivity
) && string.Equals(prop.Name, "Activities", StringComparison.Ordinal))
CorrelationValidator.cs (1)
139
CompositeActivity
parent = activity.Parent;
Designers\ConditionalDesigner.cs (2)
33
CompositeActivity
conditionalActivity = new IfElseActivity();
76
protected override
CompositeActivity
OnCreateNewBranch()
Designers\ListenDesigner.cs (2)
33
CompositeActivity
listenActivity = new ListenActivity();
56
protected override
CompositeActivity
OnCreateNewBranch()
Designers\ParallelDesigner.cs (2)
33
CompositeActivity
parallelActivity = new ParallelActivity();
46
protected override
CompositeActivity
OnCreateNewBranch()
Designers\SetStateDesigner.cs (3)
115
CompositeActivity
parentActivity = parentActivityDesigner.Activity as
CompositeActivity
;
185
static private bool ValidateParent(
CompositeActivity
parentActivity)
Designers\StateDesigner.cs (9)
873
CompositeActivity
parentActivity = parentActivityDesigner.Activity as
CompositeActivity
;
1102
connectionPoints.Add(new DesignerLayoutConnectionPoint(this, leftConnectionIndex, (
CompositeActivity
)layout.ActivityDesigner.Activity, DesignerEdges.Left));
1109
connectionPoints.Add(new DesignerLayoutConnectionPoint(this, rightConnectionIndex, (
CompositeActivity
)layout.ActivityDesigner.Activity, DesignerEdges.Right));
1754
private DesignerLayoutConnectionPoint GetEventHandlerConnectionPoint(
CompositeActivity
eventHandler)
1954
CompositeActivity
compositeActivity = this.Activity as
CompositeActivity
;
2316
CompositeActivity
compositeActivity = activity as
CompositeActivity
;
Designers\StateDesigner.Layouts.cs (3)
26
private
CompositeActivity
_eventHandler;
29
public DesignerLayoutConnectionPoint(ActivityDesigner associatedDesigner, int connectionIndex,
CompositeActivity
eventHandler, DesignerEdges designerEdges)
71
public
CompositeActivity
EventHandler
Designers\StateDesigner.TransitionInfo.cs (8)
27
private
CompositeActivity
_eventHandler;
31
internal TransitionInfo(SetStateActivity setState,
CompositeActivity
eventHandler)
49
internal
CompositeActivity
EventHandler
141
CompositeActivity
compositeChild = childActivity as
CompositeActivity
;
166
private static void ParseEventHandler(
CompositeActivity
eventHandler, List<TransitionInfo> transitions)
181
CompositeActivity
compositeActivity = activity as
CompositeActivity
;
Designers\StateDesignerConnector.cs (4)
296
CompositeActivity
eventHandler = (
CompositeActivity
)referenceService.GetReference(constructionArguments["EventHandlerName"] as string);
309
CompositeActivity
eventHandler = (
CompositeActivity
)referenceService.GetReference(constructionArguments["EventHandlerName"] as string);
Designers\TaskDesigner.cs (2)
27
CompositeActivity
compositeActivity = Activity as
CompositeActivity
;
EventSinkActivity.cs (2)
234
CompositeActivity
parent = this.Parent;
262
CompositeActivity
parent = this.Parent;
LocalService\CorrelationTokenTypeConvertor.cs (5)
119
if (siblingActivity is
CompositeActivity
)
121
foreach (Activity containedActivity in GetContainedActivities((
CompositeActivity
)siblingActivity))
136
private IEnumerable GetContainedActivities(
CompositeActivity
activity)
143
if (containedActivity is
CompositeActivity
)
145
foreach (Activity nestedActivity in GetContainedActivities((
CompositeActivity
)containedActivity))
Rules\DeclarativeExpressionConditionDeclaration.cs (6)
248
CompositeActivity
declaringActivity = null;
288
Activity activity, out
CompositeActivity
declaringActivity)
293
declaringActivity = Helpers.GetRootActivity(activity) as
CompositeActivity
;
310
CompositeActivity
declaringActivity = null;
367
CompositeActivity
declaringActivity = Helpers.GetDeclaringActivity(activity);
370
declaringActivity = Helpers.GetRootActivity(activity) as
CompositeActivity
;
Rules\RuleSetReference.cs (4)
73
CompositeActivity
declaringActivity = Helpers.GetDeclaringActivity(ownerActivity);
76
declaringActivity = Helpers.GetRootActivity(ownerActivity) as
CompositeActivity
;
122
CompositeActivity
declaringActivity = Helpers.GetDeclaringActivity(activity);
125
declaringActivity = Helpers.GetRootActivity(activity) as
CompositeActivity
;
SetState.cs (2)
167
private static void ValidateParentState(SetStateContainment containment,
CompositeActivity
activity)
187
static internal bool IsValidContainer(
CompositeActivity
activity)
StateInitialization.cs (3)
88
private void ValidateSetStateInsideStateInitializationCore(
CompositeActivity
compositeActivity, StateActivity state, ValidationErrorCollection validationErrors)
92
CompositeActivity
childCompositeActivity = activity as
CompositeActivity
;
StateMachineHelpers.cs (5)
210
static internal Activity FindActivityByName(
CompositeActivity
parentActivity, string qualifiedName)
215
static internal bool ContainsEventActivity(
CompositeActivity
compositeActivity)
227
compositeActivity = activity as
CompositeActivity
;
242
CompositeActivity
sequenceActivity = eventDriven as
CompositeActivity
;
StateMachineWorkflowInstance.cs (2)
247
CompositeActivity
compositeActivity = activity as
CompositeActivity
;
StateValidator.cs (3)
347
private static bool ValidateMultipleIEventActivityInCompositeActivity(EventDrivenActivity eventDriven, IEventActivity firstEventActivity,
CompositeActivity
parent, ValidationErrorCollection validationErrors)
366
CompositeActivity
compositeActivity = activity as
CompositeActivity
;
WebServiceResponse.cs (14)
464
private static IEnumerable GetContainedActivities(
CompositeActivity
activity)
471
if (containedActivity is
CompositeActivity
&& !Helpers.IsCustomActivity((
CompositeActivity
)containedActivity))
473
foreach (Activity nestedActivity in WebServiceActivityHelpers.GetContainedActivities((
CompositeActivity
)containedActivity))
501
if (currentActivity is
CompositeActivity
&& Helpers.IsCustomActivity((
CompositeActivity
)currentActivity))
541
if (siblingActivity is
CompositeActivity
&& !Helpers.IsCustomActivity((
CompositeActivity
)siblingActivity) && (crossOverLoop || !IsLoopActivity(siblingActivity)))
543
foreach (Activity containedActivity in WebServiceActivityHelpers.GetContainedActivities((
CompositeActivity
)siblingActivity))
629
if (currentActivity is
CompositeActivity
&& Helpers.IsCustomActivity((
CompositeActivity
)currentActivity))
649
if (siblingActivity is
CompositeActivity
&& !Helpers.IsCustomActivity((
CompositeActivity
)siblingActivity))
651
foreach (Activity containedActivity in WebServiceActivityHelpers.GetContainedActivities((
CompositeActivity
)siblingActivity))
System.Workflow.ComponentModel (322)
AuthoringOM\Activity.cs (28)
197
internal
CompositeActivity
parent = null;
468
public
CompositeActivity
Parent
476
internal void SetParent(
CompositeActivity
compositeActivity)
870
if (this is
CompositeActivity
&& Helpers.IsCustomActivity(this as
CompositeActivity
))
915
CompositeActivity
parent = (withinThisActivityOnly ? this : this.RootActivity) as
CompositeActivity
;
1432
this.SetParent((
CompositeActivity
)parentActivity);
1538
if (this is
CompositeActivity
)
1540
foreach (Activity childActivity in ((
CompositeActivity
)this).Activities)
1748
CompositeActivity
compositeActivity = activity as
CompositeActivity
;
1791
if (completedChild is
CompositeActivity
)
1793
foreach (Activity completedChild2 in ((
CompositeActivity
)completedChild).Activities)
1915
[ActivityExecutor(typeof(CompositeActivityExecutor<
CompositeActivity
>))]
1920
private static DependencyProperty CanModifyActivitiesProperty = DependencyProperty.Register("CanModifyActivities", typeof(bool), typeof(
CompositeActivity
), new PropertyMetadata(DependencyPropertyOptions.Metadata, new Attribute[] { new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) }));
2257
if (!(originalObject is
CompositeActivity
))
2266
CompositeActivity
originalCompositeActivity = originalObject as
CompositeActivity
;
2277
CompositeActivity
definitionCompositeActivity = definitionActivity as
CompositeActivity
;
2312
if (nestedActivity is
CompositeActivity
)
2314
foreach (Activity nestedChildActivity in ((
CompositeActivity
)nestedActivity).activities)
2414
identifiers.AddRange(Helpers.GetIdentifiersInCompositeActivity(rootActivity as
CompositeActivity
));
2418
if (activity is
CompositeActivity
)
2420
foreach (Activity activity2 in ((
CompositeActivity
)activity).Activities)
2435
private static bool IsDynamicMode(
CompositeActivity
compositeActivity)
2449
private static bool CannotModifyChildren(
CompositeActivity
compositeActivity, bool parent)
AuthoringOM\ActivityExecutionContext.cs (1)
559
if (activity is
CompositeActivity
)
AuthoringOM\ActivityExecutionContextCollection.cs (2)
80
CompositeActivity
compositeActivity = clonedActivity as
CompositeActivity
;
AuthoringOM\ActivityExecutor.cs (7)
86
internal class CompositeActivityExecutor<T> : ActivityExecutor<T>, ISupportWorkflowChanges where T :
CompositeActivity
96
CompositeActivity
compositeActivity = executionContext.Activity as
CompositeActivity
;
110
CompositeActivity
compositeActivity = executionContext.Activity as
CompositeActivity
;
122
CompositeActivity
compositeActivity = executionContext.Activity as
CompositeActivity
;
AuthoringOM\Behaviors\Compensate.cs (2)
174
CompositeActivity
parent = compensate.Parent;
214
CompositeActivity
parent = compensate.Parent;
AuthoringOM\Compiler\CodeGeneration\CompositeActivityCodeGenerator.cs (3)
18
CompositeActivity
compositeActivity = obj as
CompositeActivity
;
20
throw new ArgumentException(SR.GetString(SR.Error_UnexpectedArgumentType, typeof(
CompositeActivity
).FullName), "obj");
AuthoringOM\Compiler\Validation\CompositeActivityValidator.cs (3)
12
CompositeActivity
compositeActivity = obj as
CompositeActivity
;
14
throw new ArgumentException(SR.GetString(SR.Error_UnexpectedArgumentType, typeof(
CompositeActivity
).FullName), "obj");
AuthoringOM\Compiler\Validation\DependencyObjectValidator.cs (2)
118
bool checkNotSet = (activity.Parent != null) || ((activity is
CompositeActivity
) && (((
CompositeActivity
)activity).EnabledActivities.Count != 0));
AuthoringOM\Compiler\Validation\TransactionContextValidator.cs (6)
25
CompositeActivity
exceptionHandlers = FaultAndCancellationHandlingFilter.GetFaultHandlers(activity);
53
Queue<Activity> nestedEnabledActivities = new Queue<Activity>(Helpers.GetAllEnabledActivities((
CompositeActivity
)activity));
68
if (nestedEnabledActivity is
CompositeActivity
)
70
foreach (Activity nestedEnabledActivity2 in Helpers.GetAllEnabledActivities((
CompositeActivity
)nestedEnabledActivity))
116
CompositeActivity
compositeActivity = childActivity as
CompositeActivity
;
AuthoringOM\Compiler\XomlCompilerHelpers.cs (6)
147
if (activity is
CompositeActivity
)
149
CompositeActivity
compositeActivity = activity as
CompositeActivity
;
164
if (instance2 is
CompositeActivity
)
165
ActivityMarkupSerializer.ReplaceChildActivities(activity as
CompositeActivity
, instance2 as
CompositeActivity
);
AuthoringOM\ComponentFactoryHelpers.cs (2)
32
if (activity is
CompositeActivity
)
38
executors.Add(new CompositeActivityExecutor<
CompositeActivity
>());
AuthoringOM\Design\ActivityDesigner.cs (7)
848
foreach (Activity containedActivity in ((
CompositeActivity
)parentDesigner.Activity).Activities)
893
CompositeActivity
parentActivity = activity.Parent;
2522
if (!(selectedObject is HitTestInfo) && !(selectedObject is
CompositeActivity
))
2527
CompositeActivity
compositeActivity = null;
2531
compositeActivity = hitInfo.AssociatedDesigner.Activity as
CompositeActivity
;
2533
else if (selectedObject is
CompositeActivity
)
2535
compositeActivity = (
CompositeActivity
)selectedObject;
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (2)
75
CompositeActivity
compositeActivity = parentDesigner.Activity as
CompositeActivity
;
AuthoringOM\Design\ActivityPreviewDesigner.cs (2)
481
CompositeActivity
compositeActivity = Activity as
CompositeActivity
;
AuthoringOM\Design\CommandSet.cs (6)
446
else if (selectedObject is
CompositeActivity
)
453
CompositeActivity
parentActivity = selectedActivity.Parent;
914
else if (selectedObject is
CompositeActivity
)
921
CompositeActivity
parentActivity = selectedActivity.Parent;
959
if (rootDesigner.Activity is
CompositeActivity
)
960
activities.AddRange(Helpers.GetNestedActivities(rootDesigner.Activity as
CompositeActivity
));
AuthoringOM\Design\CompositeActivityDesigner.cs (31)
73
if (!(Activity is
CompositeActivity
))
79
if (Helpers.IsCustomActivity(Activity as
CompositeActivity
))
135
CompositeActivity
compositeActivity = Activity as
CompositeActivity
;
392
CompositeActivity
compositeActivity = Activity as
CompositeActivity
;
430
!(compositeActivityDesigner.Activity is
CompositeActivity
))
488
if (activity is
CompositeActivity
)
489
allActivities.AddRange(Helpers.GetNestedActivities((
CompositeActivity
)activity));
740
CompositeActivity
compositeActivity = Activity as
CompositeActivity
;
763
if (activity is
CompositeActivity
&& Helpers.IsAlternateFlowActivity(activity))
815
CompositeActivity
compositeActivity = Activity as
CompositeActivity
;
895
CompositeActivity
compositeActivity = Activity as
CompositeActivity
;
925
CompositeActivity
parentActivity = activity.Parent;
936
CompositeActivity
compositeActivityMoved = activity as
CompositeActivity
;
1014
CompositeActivity
compositeActivity = Activity as
CompositeActivity
;
1030
if (activity is
CompositeActivity
)
1032
foreach (Activity nestedActivity in Helpers.GetNestedActivities(activity as
CompositeActivity
))
1166
CompositeActivity
compositeActivity = activity as
CompositeActivity
;
1188
CompositeActivity
compositeActivity = Activity as
CompositeActivity
;
1324
CompositeActivity
compositeActivity = Activity as
CompositeActivity
;
1521
CompositeActivity
compositeActivity = activity.Parent as
CompositeActivity
;
AuthoringOM\Design\CustomActivityDesigner.cs (12)
94
CompositeActivity
compositeActivity = rootActivity as
CompositeActivity
;
108
if ((eventArgs.Component is
CompositeActivity
) && Helpers.IsCustomActivity(eventArgs.Component as
CompositeActivity
))
157
CompositeActivity
rootActivity = designerHost.RootComponent as
CompositeActivity
;
170
CompositeActivity
compositeActivity = null;
175
compositeActivity = component as
CompositeActivity
;
304
if (!TypeProvider.IsAssignable(typeof(
CompositeActivity
), newBaseType))
316
if (host.RootComponent is
CompositeActivity
&& ((
CompositeActivity
)host.RootComponent).Activities.Count > 0)
329
List<Activity> activitiesToRemove = new List<Activity>(((
CompositeActivity
)host.RootComponent).Activities);
AuthoringOM\Design\DesignerHelpers.cs (2)
1372
if (activity is
CompositeActivity
)
1374
foreach (Activity childActivity in Helpers.GetNestedActivities(activity as
CompositeActivity
))
AuthoringOM\Design\DesignerInterfaces.cs (3)
30
void EnsureUniqueIdentifiers(
CompositeActivity
parentActivity, ICollection childActivities);
680
CompositeActivity
compositeActivity = this.activityDesigner.Activity as
CompositeActivity
;
AuthoringOM\Design\DesignerWidgets.cs (2)
3516
CompositeActivity
compositeActivity = (this.parentDesigner != null) ? this.parentDesigner.Activity as
CompositeActivity
: null;
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (6)
982
CompositeActivity
rootDecl = host.RootComponent as
CompositeActivity
;
1001
AddDummyActivity(rootDecl as
CompositeActivity
, Type.GetType(DesignerHelpers.CodeActivityTypeRef));
1059
private void AddDummyActivity(
CompositeActivity
parentActivity, Type activityType)
1095
CompositeActivity
compositeActivity = Activity as
CompositeActivity
;
AuthoringOM\Design\DocumentOutline.cs (2)
360
if (addNestedActivities && activity is
CompositeActivity
)
362
foreach (Activity childActivity in ((
CompositeActivity
)activity).Activities)
AuthoringOM\Design\FreeFormDesigner.cs (3)
437
if ((Activity != source.AssociatedDesigner.Activity && !Helpers.IsChildActivity(Activity as
CompositeActivity
, source.AssociatedDesigner.Activity)) ||
438
(Activity != target.AssociatedDesigner.Activity && !Helpers.IsChildActivity(Activity as
CompositeActivity
, target.AssociatedDesigner.Activity)))
883
CompositeActivityDesigner.InsertActivities(this, new ConnectorHitTestInfo(this, HitTestLocations.Designer, ((
CompositeActivity
)Activity).Activities.Count), activitiesToInsert.AsReadOnly(), SR.GetString(SR.DragDropActivities));
AuthoringOM\Design\IdentifierCreationService.cs (8)
75
CompositeActivity
rootActivity = Helpers.GetRootActivity(activity) as
CompositeActivity
;
106
void IIdentifierCreationService.EnsureUniqueIdentifiers(
CompositeActivity
parentActivity, ICollection childActivities)
119
if (activity is
CompositeActivity
)
121
foreach (Activity child in ((
CompositeActivity
)activity).Activities)
137
CompositeActivity
rootActivity = Helpers.GetRootActivity(parentActivity) as
CompositeActivity
;
206
CompositeActivity
parent = activity.Parent;
AuthoringOM\Design\MessageFilters\DragDropManager.cs (3)
768
CompositeActivity
dropTargetComponent = dropTargetDesigner.Activity as
CompositeActivity
;
785
CompositeActivity
parentActivity = dropTargetComponent;
AuthoringOM\Design\ParallelActivityDesigner.cs (4)
187
protected virtual
CompositeActivity
OnCreateNewBranch()
465
CompositeActivity
branchActivity = OnCreateNewBranch();
466
CompositeActivity
compositeActivity = Activity as
CompositeActivity
;
AuthoringOM\Design\PropertyDescriptors.cs (3)
613
else if (activity is
CompositeActivity
)
615
if (activity is
CompositeActivity
)
617
foreach (Activity existingActivity in Helpers.GetAllNestedActivities(activity as
CompositeActivity
))
AuthoringOM\Design\SecondaryViewProvider.cs (7)
57
(typeof(
CompositeActivity
).IsAssignableFrom(activityType) &&
62
(typeof(
CompositeActivity
).IsAssignableFrom(activityType) &&
67
(designer.Activity is ICompensatableActivity && typeof(
CompositeActivity
).IsAssignableFrom(activityType) &&
115
CompositeActivity
compositeActivity = designer.Activity as
CompositeActivity
;
184
CompositeActivity
parentActivity = this.parentDesigner.Activity as
CompositeActivity
;
AuthoringOM\Design\WorkflowInlining.cs (1)
379
parameterProperty.DeclaringType == typeof(
CompositeActivity
) ||
AuthoringOM\Design\XomlDesignerLoader.cs (4)
184
if (activity is
CompositeActivity
)
186
foreach (Activity activity2 in Helpers.GetNestedActivities(activity as
CompositeActivity
))
204
if (activity is
CompositeActivity
)
206
foreach (Activity activity2 in Helpers.GetNestedActivities(activity as
CompositeActivity
))
AuthoringOM\Filters\CompensationHandlingFilter.cs (17)
95
CompositeActivity
compositeActivity = activityWithCompensation as
CompositeActivity
;
136
if (!(targetActivity is
CompositeActivity
))
141
if (CollectCompensatableTargetActivities(targetActivity as
CompositeActivity
, sortedListOfCompensatableTargets, isimmediateCompensation))
202
else if (revokedExecutionContext.Activity is
CompositeActivity
)
205
Activity compensatableChild = GetLastCompensatableChild(revokedExecutionContext.Activity as
CompositeActivity
);
218
if (lastCompensatableTarget.TargetExecutionContext.Activity is
CompositeActivity
)
221
Activity compensatableChild = GetLastCompensatableChild(lastCompensatableTarget.TargetExecutionContext.Activity as
CompositeActivity
);
296
private static bool CollectCompensatableTargetActivities(
CompositeActivity
compositeActivity, SortedDictionary<int, CompensationInfo> sortedListOfCompensatableTargets, bool immediateCompensation)
312
else if (completedChild is
CompositeActivity
)
314
foreach (Activity nestedCompletedActivity in Helpers.GetAllEnabledActivities((
CompositeActivity
)completedChild))
338
else if (activeContext.Activity is
CompositeActivity
)
340
Activity[] activities = GetCompensatableChildren(activeContext.Activity as
CompositeActivity
);
394
internal static Activity[] GetCompensatableChildren(
CompositeActivity
compositeActivity)
404
else if (completedChild is
CompositeActivity
)
406
foreach (Activity nestedCompletedActivity in Helpers.GetAllEnabledActivities((
CompositeActivity
)completedChild))
414
internal static Activity GetLastCompensatableChild(
CompositeActivity
compositeActivity)
AuthoringOM\Filters\FaultHandlingFilter.cs (9)
23
if (!(activity is
CompositeActivity
))
85
CompositeActivity
exceptionHandlersActivity = FaultAndCancellationHandlingFilter.GetFaultHandlers(context.Activity);
168
internal static
CompositeActivity
GetFaultHandlers(Activity activityWithExceptionHandlers)
170
CompositeActivity
exceptionHandlers = null;
171
CompositeActivity
compositeActivity = activityWithExceptionHandlers as
CompositeActivity
;
178
exceptionHandlers = activity as
CompositeActivity
;
188
CompositeActivity
compositeActivity = activityWithCancelHandler as
CompositeActivity
;
AuthoringOM\Helpers.cs (1)
23
CompositeActivity
customActivity = Helpers.GetDeclaringActivity(activity);
AuthoringOM\ScheduleChanges.cs (38)
46
if (!(rootActivity is
CompositeActivity
) || rootActivity.Parent != null)
88
public
CompositeActivity
TransientWorkflow
92
return this.clonedRootActivity as
CompositeActivity
;
128
this.modelChangeActions.AddRange(DiffTrees(this.originalRootActivity as
CompositeActivity
, this.clonedRootActivity as
CompositeActivity
));
304
if (activity is
CompositeActivity
)
306
CompositeActivity
compositeActivity = activity as
CompositeActivity
;
308
foreach (Activity activity2 in ((
CompositeActivity
)activity).Activities)
331
if (activity is
CompositeActivity
)
333
CompositeActivity
compositeActivity = activity as
CompositeActivity
;
335
foreach (Activity activity2 in ((
CompositeActivity
)activity).Activities)
359
CompositeActivity
compositeActivity = compositeActivities.Dequeue() as
CompositeActivity
;
374
if (activity is
CompositeActivity
)
397
CompositeActivity
ownerActivity = contextActivity.TraverseDottedPathFromRoot(((ActivityChangeAction)action).OwnerActivityDottedPath) as
CompositeActivity
;
455
private static List<WorkflowChangeAction> DiffTrees(
CompositeActivity
originalCompositeActivity,
CompositeActivity
clonedCompositeActivity)
474
if (originalActivity is
CompositeActivity
)
475
listChanges.AddRange(DiffTrees(originalActivity as
CompositeActivity
, clonedActivity as
CompositeActivity
));
488
if (originalActivity is
CompositeActivity
)
489
listChanges.AddRange(DiffTrees(originalActivity as
CompositeActivity
, clonedActivity as
CompositeActivity
));
645
protected ActivityChangeAction(
CompositeActivity
compositeActivity)
673
CompositeActivity
ownerActivity = contextActivity.TraverseDottedPathFromRoot(this.OwnerActivityDottedPath) as
CompositeActivity
;
698
public AddedActivityAction(
CompositeActivity
compositeActivity, Activity activityAdded)
738
if (!(rootActivity is
CompositeActivity
))
741
CompositeActivity
ownerActivity = rootActivity.TraverseDottedPathFromRoot(this.OwnerActivityDottedPath) as
CompositeActivity
;
747
CompositeActivity
addedActivityOwner = this.addedActivity.Parent;
813
public RemovedActivityAction(int removedActivityIndex, Activity originalActivity,
CompositeActivity
clonedParentActivity)
861
if (!(rootActivity is
CompositeActivity
))
865
CompositeActivity
ownerActivity = rootActivity.TraverseDottedPathFromRoot(this.OwnerActivityDottedPath) as
CompositeActivity
;
AuthoringOM\Sequence.cs (6)
25
public static ActivityExecutionStatus Execute(
CompositeActivity
activity, ActivityExecutionContext executionContext)
38
public static ActivityExecutionStatus Cancel(
CompositeActivity
activity, ActivityExecutionContext executionContext)
65
public static void OnEvent(
CompositeActivity
activity, Object sender, ActivityExecutionStatusChangedEventArgs e)
79
private static bool TryScheduleNextChild(
CompositeActivity
activity, ActivityExecutionContext executionContext)
104
public static void OnActivityChangeRemove(
CompositeActivity
activity, ActivityExecutionContext executionContext, Activity removedActivity)
112
public static void OnWorkflowChangesCompleted(
CompositeActivity
activity, ActivityExecutionContext executionContext)
AuthoringOM\Serializer\ActivityCollectionMarkupSerializer.cs (4)
22
CompositeActivity
compositeActivity = activityCollection.Owner as
CompositeActivity
;
49
CompositeActivity
compositeActivity = activityCollection.Owner as
CompositeActivity
;
AuthoringOM\Serializer\ActivityMarkupSerializationProvider.cs (1)
16
if (typeof(
CompositeActivity
).IsAssignableFrom(objectType))
AuthoringOM\Serializer\ActivityMarkupSerializer.cs (6)
105
if (instance is
CompositeActivity
&& sourceAttrs.Length > 0 && type.Assembly == serializationManager.LocalAssembly)
110
ReplaceChildActivities(instance as
CompositeActivity
, instance2 as
CompositeActivity
);
214
internal static void ReplaceChildActivities(
CompositeActivity
instanceActivity,
CompositeActivity
xomlActivity)
217
foreach (Activity activity1 in (xomlActivity as
CompositeActivity
).Activities)
AuthoringOM\Serializer\ActivityTypeCodeDomSerializer.cs (1)
90
if (method != null && rootActivity is
CompositeActivity
)
AuthoringOM\Serializer\CompositeActivityMarkupSerializer.cs (2)
19
CompositeActivity
compositeActivity = obj as
CompositeActivity
;
AuthoringOM\Serializer\CompositeActivityTypeDescriptor.cs (1)
40
PropertyInfo propInfo = typeof(
CompositeActivity
).GetProperty("CanModifyActivities", BindingFlags.NonPublic | BindingFlags.Instance);
AuthoringOM\Serializer\CompositeActivityTypeDescriptorProvider.cs (1)
25
: base(TypeDescriptor.GetProvider(typeof(
CompositeActivity
)))
AuthoringOM\Serializer\ModifyActivitiesPropertyDescriptor.cs (4)
40
return typeof(
CompositeActivity
);
74
if (component is
CompositeActivity
)
75
(component as
CompositeActivity
).SetValue(
CompositeActivity
.CustomActivityProperty, false);
AuthoringOM\Suspend.cs (1)
90
CompositeActivity
parent = suspend.Parent;
Shared\CompModHelpers.cs (44)
179
internal static Activity[] GetNestedActivities(
CompositeActivity
compositeActivity)
191
CompositeActivity
compositeActivity2 = (
CompositeActivity
)compositeActivities.Dequeue();
197
if (activity is
CompositeActivity
)
206
internal static IList GetIdentifiersInCompositeActivity(
CompositeActivity
compositeActivity)
220
internal static Activity[] GetAllNestedActivities(
CompositeActivity
compositeActivity)
237
CompositeActivity
compositeActivity2 = (
CompositeActivity
)compositeActivities.Dequeue();
243
if (activity is
CompositeActivity
)
252
if (activity is
CompositeActivity
)
316
CompositeActivity
compositeActivity = component as
CompositeActivity
;
365
CompositeActivity
compositeActivity = component as
CompositeActivity
;
677
internal static bool IsChildActivity(
CompositeActivity
parent, Activity activity)
684
if (containedActivity is
CompositeActivity
&&
685
Helpers.IsChildActivity(containedActivity as
CompositeActivity
, activity))
870
internal static
CompositeActivity
GetDeclaringActivity(Activity activity)
875
CompositeActivity
parent = activity.Parent;
896
CompositeActivity
parent = activity.Parent;
928
public static IList<Activity> GetAllEnabledActivities(
CompositeActivity
compositeActivity)
1037
internal static bool IsCustomActivity(
CompositeActivity
compositeActivity)
1050
CompositeActivity
activity = Activator.CreateInstance(compositeActivity.GetType()) as
CompositeActivity
;
1093
if (!(currentActivity is
CompositeActivity
) || !IsCustomActivity(currentActivity as
CompositeActivity
))
1104
CompositeActivity
declaringActivity = GetDeclaringActivity(nextActivity);
1216
CompositeActivity
compositeParentActivity = parentActivity as
CompositeActivity
;
1257
CompositeActivity
declaringContext = context as
CompositeActivity
;
1259
CompositeActivity
declaringActivityOfCurrent = Helpers.GetDeclaringActivity(currentActivity);
1312
if (activity is
CompositeActivity
)
1314
foreach (Activity child in ((
CompositeActivity
)activity).Activities)
1425
if (currentActivity == null && (parsingContext is
CompositeActivity
) && parsingContext.Parent != null && Helpers.IsCustomActivity(parsingContext as
CompositeActivity
))
1432
if (!(currentActivity is
CompositeActivity
) || !Helpers.IsCustomActivity(currentActivity as
CompositeActivity
))
1443
CompositeActivity
declaringActivity = Helpers.GetDeclaringActivity(nextActivity);
1485
if (activity is
CompositeActivity
)
1487
foreach (Activity child in ((
CompositeActivity
)activity).Activities)
1498
CompositeActivity
declaringContext = context as
CompositeActivity
;
1500
CompositeActivity
declaringActivityOfCurrent = Helpers.GetDeclaringActivity(currentActivity);
Shared\ValidationHelpers.cs (8)
123
if (activity is
CompositeActivity
&& ((activity.Parent == null) || !Helpers.IsCustomActivity(activity as
CompositeActivity
)))
125
foreach (Activity child in Helpers.GetAllEnabledActivities((
CompositeActivity
)activity))
144
Activity responseParent = response is
CompositeActivity
? (
CompositeActivity
)response : response.Parent;
152
CompositeActivity
requestParent = request is
CompositeActivity
? (
CompositeActivity
)request : request.Parent;
Shared\Walker.cs (4)
165
if (walkChildren && activity is
CompositeActivity
)
169
foreach (Activity activity2 in Design.Helpers.GetAllEnabledActivities((
CompositeActivity
)activity))
174
foreach (Activity activity2 in ((
CompositeActivity
)activity).Activities)
268
if (prop.DeclaringType == typeof(
CompositeActivity
) && string.Equals(prop.Name, "Activities", StringComparison.Ordinal))
Shared\XomlSerializationHelpers.cs (4)
236
if (rootActivity is
CompositeActivity
)
238
foreach (Activity activity in Helpers.GetNestedActivities((
CompositeActivity
)rootActivity))
318
if (childActivity is
CompositeActivity
)
320
foreach (Activity nestedChildActivity in ((
CompositeActivity
)childActivity).Activities)
System.Workflow.Runtime (25)
CorrelationToken.cs (1)
198
if ((typeof(
CompositeActivity
).IsAssignableFrom(currentActivity.GetType())) && currentActivity.Enabled)
DebugEngine\DebugController.cs (2)
963
if (rootActivity is
CompositeActivity
)
965
foreach (Activity childActivity in ((
CompositeActivity
)rootActivity).Activities)
RTTrackingProfile.cs (3)
443
if (activity is
CompositeActivity
)
444
foreach (Activity a in GetAllEnabledActivities((
CompositeActivity
)activity))
653
public IList<Activity> GetAllEnabledActivities(
CompositeActivity
compositeActivity)
System\Activities\Statements\Interop.cs (1)
1199
if (interopBody is System.Workflow.ComponentModel.
CompositeActivity
)
System\Activities\Statements\InteropEnvironment.cs (1)
295
static readonly Type compositeActivityType = typeof(System.Workflow.ComponentModel.
CompositeActivity
);
Tracking\SqlTrackingService.cs (13)
1304
command.Parameters.Add(DbResourceAllocator.NewDbParameter("@Activities", GetActivitiesXml((
CompositeActivity
)rootActivity)));
2340
if (removed is
CompositeActivity
)
2342
foreach (Activity activity in ((
CompositeActivity
)removed).Activities)
2359
if (removed is
CompositeActivity
)
2361
foreach (Activity activity in ((
CompositeActivity
)removed).Activities)
2385
if (added is
CompositeActivity
)
2387
foreach (Activity activity in ((
CompositeActivity
)added).Activities)
2409
if (added is
CompositeActivity
)
2411
foreach (Activity activity in ((
CompositeActivity
)added).Activities)
2545
private string GetActivitiesXml(
CompositeActivity
root)
2591
if (activity is
CompositeActivity
)
2592
foreach (Activity a in GetAllEnabledActivities((
CompositeActivity
)activity))
2598
private IList<Activity> GetAllEnabledActivities(
CompositeActivity
compositeActivity)
WorkflowDefinitionDispenser.cs (3)
218
CompositeActivity
compositeActivity = activity as
CompositeActivity
;
344
if (!property.CanRead || property.DeclaringType == typeof(DependencyObject) || property.DeclaringType == typeof(Activity) || property.DeclaringType == typeof(
CompositeActivity
))
WorkflowExecutor.cs (1)
3174
if (currentActivity is
CompositeActivity
)
System.WorkflowServices (15)
System\Workflow\Activities\ChannelTokenTypeConverter.cs (5)
110
private IEnumerable GetContainedActivities(
CompositeActivity
activity)
123
if (containedActivity is
CompositeActivity
)
125
foreach (Activity nestedActivity in GetContainedActivities((
CompositeActivity
) containedActivity))
159
if (siblingActivity is
CompositeActivity
)
161
foreach (Activity containedActivity in GetContainedActivities((
CompositeActivity
) siblingActivity))
System\Workflow\Activities\ContextTokenTypeConverter.cs (5)
110
private IEnumerable GetContainedActivities(
CompositeActivity
activity)
123
if (containedActivity is
CompositeActivity
)
125
foreach (Activity nestedActivity in GetContainedActivities((
CompositeActivity
) containedActivity))
159
if (siblingActivity is
CompositeActivity
)
161
foreach (Activity containedActivity in GetContainedActivities((
CompositeActivity
) siblingActivity))
System\Workflow\Activities\ValidationHelper.cs (3)
1073
if (rootActivity is
CompositeActivity
)
1075
foreach (Activity activity in ((
CompositeActivity
) rootActivity).Activities)
1087
if (activity is
CompositeActivity
)
System\Workflow\Runtime\StreamedWorkflowDefinitionContext.cs (2)
236
CompositeActivity
compositeActivity = activity as
CompositeActivity
;