1 type derived from StateActivity
System.Workflow.Activities (1)
StateMachineWorkflow.cs (1)
27
public class StateMachineWorkflowActivity :
StateActivity
1 instantiation of StateActivity
System.Workflow.Activities (1)
Designers\StateDesigner.cs (1)
1936
StateActivity state = new
StateActivity
();
299 references to StateActivity
System.Workflow.Activities (297)
Designers\ServiceDesigner.cs (1)
52
typeof(
StateActivity
).IsAssignableFrom(activityType) ||
Designers\SetStateDesigner.cs (5)
307
StateActivity
enclosingState = StateMachineHelpers.FindEnclosingState(activity);
311
StateActivity
rootState = StateMachineHelpers.GetRootState(enclosingState);
316
private void FindStates(ListBox dropDownList,
StateActivity
parent)
320
StateActivity
state = activity as
StateActivity
;
Designers\StateDesigner.cs (51)
295
StateActivity
state = this.Activity as
StateActivity
;
642
StateActivity
state = (
StateActivity
)this.Activity;
697
StateMachineHelpers.IsRootState((
StateActivity
)this.Activity);
722
StateActivity
rootState = StateMachineHelpers.GetRootState((
StateActivity
)this.Activity);
771
validChildTypes.Add(typeof(
StateActivity
));
773
StateActivity
state = (
StateActivity
)this.Activity;
845
StateActivity
state = (
StateActivity
)this.Activity;
877
if (!(parentActivity is
StateActivity
))
953
StateActivity
currentState = current as
StateActivity
;
1076
StateActivity
state = (
StateActivity
)stateDesigner.Activity;
1221
StateActivity
rootState = (
StateActivity
)this.RootStateDesigner.Activity;
1226
StateActivity
targetState = (
StateActivity
)stateDesignerConnector.Target.AssociatedDesigner.Activity;
1236
StateActivity
rootState = (
StateActivity
)this.RootStateDesigner.Activity;
1669
StateActivity
rootState = (
StateActivity
)this.Activity;
1777
private ConnectionPoint GetTargetStateConnectionPoint(
StateActivity
targetState)
1857
StateActivity
state = (
StateActivity
)this.Activity;
1863
StateActivity
rootState = StateMachineHelpers.GetRootState(state);
1891
StateActivity
state = (
StateActivity
)this.Activity;
1897
StateActivity
rootState = StateMachineHelpers.GetRootState(state);
1936
StateActivity
state = new StateActivity();
1998
StateActivity
state = (
StateActivity
)this.Activity;
1999
StateActivity
rootState = StateMachineHelpers.GetRootState(state);
2017
StateActivity
state = (
StateActivity
)this.Activity;
2018
StateActivity
rootState = StateMachineHelpers.GetRootState(state);
2035
StateActivity
state = (
StateActivity
)this.Activity;
2056
StateActivity
state = (
StateActivity
)this.Activity;
2070
StateActivity
state = (
StateActivity
)this.Activity;
2086
StateActivity
state = (
StateActivity
)this.Activity;
2111
StateActivity
state = (
StateActivity
)this.Activity;
2367
StateActivity
activity = extendee as
StateActivity
;
Designers\StateDesigner.Helpers.cs (1)
63
if (StateMachineHelpers.IsLeafState((
StateActivity
)designer.Activity))
Designers\StateDesigner.Layouts.cs (4)
1000
StateActivity
state = (
StateActivity
)this.ActivityDesigner.Activity;
1208
StateActivity
state = (
StateActivity
)this.StateDesigner.Activity;
Designers\StateDesigner.TransitionInfo.cs (14)
28
private
StateActivity
_targetState;
57
internal
StateActivity
SourceState
64
StateActivity
sourceState = _eventHandler.Parent as
StateActivity
;
69
internal
StateActivity
TargetState
126
internal static ReadOnlyCollection<TransitionInfo> ParseStateMachine(
StateActivity
rootState)
129
Dictionary<string,
StateActivity
> states = new Dictionary<string,
StateActivity
>();
130
Queue<
StateActivity
> processingQueue = new Queue<
StateActivity
>();
134
StateActivity
state = processingQueue.Dequeue();
138
StateActivity
childState = childActivity as
StateActivity
;
154
StateActivity
targetState;
Designers\StateDesignerConnector.cs (2)
298
StateActivity
targetState = (
StateActivity
)referenceService.GetReference(constructionArguments["TargetStateName"] as string);
Designers\StateFinalizationDesigner.cs (1)
26
if (!(parentActivityDesigner.Activity is
StateActivity
))
Designers\StateInitializationDesigner.cs (1)
26
if (!(parentActivityDesigner.Activity is
StateActivity
))
EventDriven.cs (1)
68
!(eventDriven.Parent is
StateActivity
)
SetState.cs (10)
68
StateActivity
parentState = StateMachineHelpers.FindEnclosingState(executionContext.Activity);
69
StateActivity
rootState = StateMachineHelpers.GetRootState(parentState);
85
throw new ArgumentException(SR.GetString(SR.Error_UnexpectedArgumentType, typeof(
StateActivity
).FullName), "obj");
99
StateActivity
enclosingState = StateMachineHelpers.FindEnclosingState(setState);
102
StateActivity
rootState = StateMachineHelpers.GetRootState(enclosingState);
104
StateActivity
targetActivity = StateMachineHelpers.FindStateByName(
107
StateActivity
targetState = targetActivity as
StateActivity
;
173
StateActivity
state = activity.Parent as
StateActivity
;
SR.cs (24)
255
typeof(
StateActivity
).Name);
262
typeof(
StateActivity
).Name);
269
typeof(
StateActivity
).Name,
280
typeof(
StateActivity
).Name,
292
typeof(
StateActivity
).Name);
300
typeof(
StateActivity
).Name);
307
typeof(
StateActivity
).Name,
324
typeof(
StateActivity
).Name);
331
typeof(
StateActivity
).Name);
339
typeof(
StateActivity
).Name);
346
typeof(
StateActivity
).Name);
353
typeof(
StateActivity
).Name);
371
typeof(
StateActivity
).Name);
378
typeof(
StateActivity
).Name);
401
typeof(
StateActivity
).Name);
408
typeof(
StateActivity
).Name);
417
typeof(
StateActivity
).Name,
425
typeof(
StateActivity
).Name,
435
typeof(
StateActivity
).Name,
474
StateActivity
.StateChangeTrackingDataKey,
475
typeof(
StateActivity
).Name);
503
typeof(
StateActivity
).Name,
512
typeof(
StateActivity
).Name,
534
typeof(
StateActivity
).Name,
State.cs (43)
29
[ToolboxBitmap(typeof(
StateActivity
), "Resources.StateActivity.png")]
39
internal static DependencyProperty StateMachineExecutionStateProperty = DependencyProperty.Register(StateMachineExecutionState.StateMachineExecutionStateKey, typeof(StateMachineExecutionState), typeof(
StateActivity
), new PropertyMetadata());
60
base.RemoveProperty(
StateActivity
.StateMachineExecutionStateProperty);
114
StateActivity
rootState = StateMachineHelpers.GetRootState(this);
155
StateActivity
state = (
StateActivity
)context.Activity;
158
state.SetValue(
StateActivity
.StateMachineExecutionStateProperty, executionState);
175
StateActivity
state = (
StateActivity
)context.Activity;
196
StateActivity
state = (
StateActivity
)context.Activity;
239
StateActivity
state = (
StateActivity
)context.Activity;
256
StateActivity
state = (
StateActivity
)context.Activity;
301
StateActivity
state = (
StateActivity
)context.Activity;
319
StateActivity
state = (
StateActivity
)context.Activity;
336
StateActivity
state = (
StateActivity
)context.Activity;
377
StateActivity
state = (
StateActivity
)context.Activity;
410
if (completedChildActivity is
StateActivity
)
424
private static void InvalidChildActivity(
StateActivity
state)
443
StateActivity
state = (
StateActivity
)context.Activity;
470
StateActivity
state = (
StateActivity
)context.Activity;
494
internal static void ExecuteState(ActivityExecutionContext context,
StateActivity
state)
523
StateActivity
state = (
StateActivity
)context.Activity;
531
StateActivity
state = (
StateActivity
)context.Activity;
539
StateActivity
state = (
StateActivity
)context.Activity;
556
StateActivity
state = (
StateActivity
)context.Activity;
562
private static StateMachineExecutionState GetExecutionState(
StateActivity
state)
567
StateActivity
rootState = StateMachineHelpers.GetRootState(state);
599
StateActivity
rootState = StateMachineHelpers.GetRootState(executionContext.Activity as
StateActivity
);
601
StateActivity
currentState = StateMachineHelpers.GetCurrentState(executionContext);
StateFinalizationActivity.cs (2)
52
StateActivity
state = stateFinalization.Parent as
StateActivity
;
StateInitialization.cs (4)
52
StateActivity
state = stateInitialization.Parent as
StateActivity
;
83
private void ValidateSetStateInsideStateInitialization(StateInitializationActivity stateInitialization,
StateActivity
state, ValidationErrorCollection validationErrors)
88
private void ValidateSetStateInsideStateInitializationCore(CompositeActivity compositeActivity,
StateActivity
state, ValidationErrorCollection validationErrors)
StateMachineAction.cs (18)
24
private
StateActivity
_state;
26
private
StateActivity
_currentState;
38
protected
StateActivity
State
46
protected
StateActivity
CurrentState
80
_state = (
StateActivity
)context.Activity;
82
StateActivity
rootState = StateMachineHelpers.GetRootState(_state);
100
StateActivity
.LeavingState(context);
126
StateActivity
childState = (
StateActivity
)this.State.Activities[this.ChildStateName];
128
StateActivity
.ExecuteState(context, childState);
212
StateActivity
.ExecuteEventDriven(context, eventDriven);
253
StateActivity
state = this.State;
254
StateActivity
rootState = StateMachineHelpers.GetRootState(state);
255
Queue<
StateActivity
> states = new Queue<
StateActivity
>();
276
StateActivity
childState = activity as
StateActivity
;
297
context.TrackData(
StateActivity
.StateChangeTrackingDataKey, this.CurrentState.QualifiedName);
StateMachineExecutionState.cs (11)
162
StateActivity
state = (
StateActivity
)context.Activity;
193
StateActivity
rootState = StateMachineHelpers.GetRootState(state);
194
StateActivity
nextActionState = StateMachineHelpers.FindDynamicStateByName(rootState, action.StateName);
212
StateActivity
currentState = StateMachineHelpers.GetCurrentState(context);
218
internal void CalculateStateTransition(
StateActivity
currentState, string targetStateName)
229
currentState = currentState.Parent as
StateActivity
;
238
StateActivity
childState = childActivity as
StateActivity
;
258
internal static StateMachineExecutionState Get(
StateActivity
state)
261
StateMachineExecutionState executionState = (StateMachineExecutionState)state.GetValue(
StateActivity
.StateMachineExecutionStateProperty);
StateMachineHelpers.cs (39)
21
internal static bool IsStateMachine(
StateActivity
state)
29
internal static bool IsRootState(
StateActivity
state)
34
StateActivity
parent = state.Parent as
StateActivity
;
38
internal static bool IsLeafState(
StateActivity
state)
48
if (child is
StateActivity
)
64
internal static
StateActivity
FindEnclosingState(Activity activity)
69
StateActivity
state = activity as
StateActivity
;
84
internal static
StateActivity
GetRootState(
StateActivity
state)
94
if (!(state.Parent is
StateActivity
))
97
return GetRootState((
StateActivity
)state.Parent);
100
internal static bool IsInitialState(
StateActivity
state)
111
internal static bool IsCompletedState(
StateActivity
state)
122
internal static string GetInitialStateName(
StateActivity
state)
124
StateActivity
rootState = GetRootState(state);
128
internal static string GetCompletedStateName(
StateActivity
state)
131
StateActivity
rootState = GetRootState(state);
158
static internal
StateActivity
GetCurrentState(ActivityExecutionContext context)
160
StateActivity
state = context.Activity as
StateActivity
;
164
StateActivity
rootState = GetRootState(state);
171
StateActivity
currentState = FindDynamicStateByName(rootState, currentStateName);
176
static internal
StateActivity
FindDynamicStateByName(
StateActivity
state, string stateQualifiedName)
182
StateActivity
childState = activity as
StateActivity
;
188
StateActivity
dynamicChildState = (
StateActivity
)state.GetDynamicActivity(childState);
202
static internal
StateActivity
FindStateByName(
StateActivity
state, string qualifiedName)
206
StateActivity
found = FindActivityByName(state, qualifiedName) as
StateActivity
;
263
static internal bool ContainsState(
StateActivity
state, string stateName)
270
Queue<
StateActivity
> states = new Queue<
StateActivity
>();
280
StateActivity
childState = childActivity as
StateActivity
;
StateMachineSubscription.cs (10)
112
StateActivity
state,
133
StateActivity
rootState = StateMachineHelpers.GetRootState((
StateActivity
)context.Activity);
140
StateActivity
rootState = StateMachineHelpers.GetRootState((
StateActivity
)context.Activity);
218
StateActivity
rootState = StateMachineHelpers.GetRootState((
StateActivity
)context.Activity);
228
StateActivity
currentState = StateMachineHelpers.GetCurrentState(context);
232
StateActivity
rootState = StateMachineHelpers.GetRootState((
StateActivity
)context.Activity);
StateMachineSubscriptionManager.cs (14)
70
StateActivity
state = (
StateActivity
)context.Activity;
87
StateActivity
state = StateMachineHelpers.GetCurrentState(context);
142
state = state.Parent as
StateActivity
;
145
StateActivity
currentState = StateMachineHelpers.GetCurrentState(context);
150
private bool IsParentState(
StateActivity
state, string stateName)
152
StateActivity
parentState = state.Parent as
StateActivity
;
157
parentState = parentState.Parent as
StateActivity
;
182
StateActivity
state = (
StateActivity
)context.Activity;
288
internal static void DisableStateWorkflowQueues(ActivityExecutionContext context,
StateActivity
state)
293
private static void ChangeStateWorkflowQueuesState(ActivityExecutionContext context,
StateActivity
state, bool enabled)
381
StateActivity
currentState = StateMachineHelpers.GetCurrentState(context);
StateMachineWorkflowInstance.cs (19)
88
public
StateActivity
CurrentState
100
StateActivity
currentState = this.CurrentState;
107
private static ReadOnlyCollection<
StateActivity
> GetLeafStates(
StateActivity
parentState)
112
List<
StateActivity
> leafStates = new List<
StateActivity
>();
113
Queue<
StateActivity
> states = new Queue<
StateActivity
>();
117
StateActivity
parent = states.Dequeue();
120
StateActivity
childState = childActivity as
StateActivity
;
134
public ReadOnlyCollection<
StateActivity
> States
177
public void SetState(
StateActivity
targetState)
188
StateActivity
targetState = FindActivityByQualifiedName(targetStateName) as
StateActivity
;
200
private
StateActivity
GetCurrentState()
211
StateActivity
currentState = StateMachineHelpers.FindStateByName(stateMachineWorkflow, queueInfo.SubscribedActivityNames[0]);
301
if (record.UserDataKey !=
StateActivity
.StateChangeTrackingDataKey)
308
StateActivity
state = StateMachineHelpers.FindStateByName(stateMachineWorkflow, record.QualifiedName);
StateValidator.cs (18)
36
StateActivity
state = obj as
StateActivity
;
38
throw new ArgumentException(SR.GetString(SR.Error_UnexpectedArgumentType, typeof(
StateActivity
).FullName), "obj");
53
if (!(state.Parent is
StateActivity
))
84
private static void ValidateCustomStateActivity(
StateActivity
state, ValidationErrorCollection validationErrors)
109
StateActivity
removedState = remove.OriginalRemovedActivity as
StateActivity
;
141
private static void ValidateLeafState(
StateActivity
state, ValidationErrorCollection validationErrors)
151
private static void ValidateRootState(
StateActivity
state, ValidationErrorCollection validationErrors)
161
private static void ValidateState(
StateActivity
state, ValidationErrorCollection validationErrors)
168
private static void ValidateLeafStateChildren(
StateActivity
state, ValidationErrorCollection validationErrors)
197
private static void ValidateCompositeStateChildren(
StateActivity
state, ValidationErrorCollection validationErrors)
207
activity is
StateActivity
)
224
private static void ValidateInitialState(
StateActivity
state, ValidationErrorCollection validationErrors)
241
StateActivity
initialState = StateMachineHelpers.FindStateByName(
277
private static void ValidateCompletedState(
StateActivity
state, ValidationErrorCollection validationErrors)
282
StateActivity
completedState = StateMachineHelpers.FindStateByName(
316
private static void ValidateEventDrivenActivities(
StateActivity
state, ValidationErrorCollection validationErrors)
WebServiceResponse.cs (4)
509
if (siblingActivity == currentActivity && ((currentActivity.Parent is ParallelActivity && !Helpers.IsFrameworkActivity(currentActivity)) || (currentActivity.Parent is
StateActivity
&& !Helpers.IsFrameworkActivity(currentActivity))))
525
StateActivity
currentState = currentActivity.Parent as
StateActivity
;
528
StateActivity
enclosingState = StateMachineHelpers.FindEnclosingState(startActivity);
System.Workflow.Runtime (1)
System\Activities\Statements\Interop.cs (1)
1338
else if (interopBodyType == typeof(System.Workflow.Activities.
StateActivity
))
System.WorkflowServices (1)
System\Workflow\Activities\ReceiveActivity.cs (1)
1308
if (this.parent.parent != null && this.parent.parent is
StateActivity
)