116 references to StateMachineHelpers
System.Workflow.Activities (116)
Designers\SetStateDesigner.cs (3)
307
StateActivity enclosingState =
StateMachineHelpers
.FindEnclosingState(activity);
311
StateActivity rootState =
StateMachineHelpers
.GetRootState(enclosingState);
323
if (
StateMachineHelpers
.IsLeafState(state))
Designers\StateDesigner.cs (33)
298
if (
StateMachineHelpers
.IsLeafState(state))
300
if (
StateMachineHelpers
.IsInitialState(state))
302
if (!
StateMachineHelpers
.IsCompletedState(state))
307
if (
StateMachineHelpers
.IsCompletedState(state))
643
if (
StateMachineHelpers
.IsStateMachine(state) ||
697
StateMachineHelpers
.IsRootState((StateActivity)this.Activity);
722
StateActivity rootState =
StateMachineHelpers
.GetRootState((StateActivity)this.Activity);
774
if (
StateMachineHelpers
.IsLeafState(state))
846
if (
StateMachineHelpers
.IsLeafState(state) &&
847
StateMachineHelpers
.IsCompletedState(state))
955
if (
StateMachineHelpers
.IsLeafState(currentState))
1077
return
StateMachineHelpers
.IsLeafState(state);
1863
StateActivity rootState =
StateMachineHelpers
.GetRootState(state);
1868
string completedStateName =
StateMachineHelpers
.GetCompletedStateName(rootState);
1897
StateActivity rootState =
StateMachineHelpers
.GetRootState(state);
1902
string initialStateName =
StateMachineHelpers
.GetInitialStateName(rootState);
1999
StateActivity rootState =
StateMachineHelpers
.GetRootState(state);
2000
enabled =
StateMachineHelpers
.IsLeafState(state) &&
2001
StateMachineHelpers
.IsStateMachine(rootState) &&
2002
!
StateMachineHelpers
.IsInitialState(state);
2018
StateActivity rootState =
StateMachineHelpers
.GetRootState(state);
2020
StateMachineHelpers
.IsLeafState(state) &&
2021
StateMachineHelpers
.IsStateMachine(rootState) &&
2022
!
StateMachineHelpers
.IsCompletedState(state) &&
2038
if (
StateMachineHelpers
.IsLeafState(state))
2040
isInitialState =
StateMachineHelpers
.IsInitialState(state);
2041
isCompletedState =
StateMachineHelpers
.IsCompletedState(state);
2057
bool isCompletedState = (
StateMachineHelpers
.IsLeafState(state) &&
StateMachineHelpers
.IsCompletedState(state));
2071
bool isLeafState = (
StateMachineHelpers
.IsLeafState(state));
2072
bool isCompletedState = (isLeafState &&
StateMachineHelpers
.IsCompletedState(state));
2087
bool isLeafState = (
StateMachineHelpers
.IsLeafState(state));
2088
bool isCompletedState = (isLeafState &&
StateMachineHelpers
.IsCompletedState(state));
Designers\StateDesigner.Helpers.cs (1)
63
if (
StateMachineHelpers
.IsLeafState((StateActivity)designer.Activity))
Designers\StateDesigner.Layouts.cs (4)
1001
if (
StateMachineHelpers
.IsLeafState(state))
1008
if (
StateMachineHelpers
.IsRootState(state))
1209
if (
StateMachineHelpers
.IsLeafState(state) &&
1210
StateMachineHelpers
.IsCompletedState(state))
SetState.cs (6)
68
StateActivity parentState =
StateMachineHelpers
.FindEnclosingState(executionContext.Activity);
69
StateActivity rootState =
StateMachineHelpers
.GetRootState(parentState);
99
StateActivity enclosingState =
StateMachineHelpers
.FindEnclosingState(setState);
102
StateActivity rootState =
StateMachineHelpers
.GetRootState(enclosingState);
104
StateActivity targetActivity =
StateMachineHelpers
.FindStateByName(
114
if (!
StateMachineHelpers
.IsLeafState(targetState))
State.cs (19)
114
StateActivity rootState =
StateMachineHelpers
.GetRootState(this);
115
if (!
StateMachineHelpers
.IsStateMachine(rootState))
118
string initialStateName =
StateMachineHelpers
.GetInitialStateName(this);
134
if (
StateMachineHelpers
.IsRootState(this))
140
if (
StateMachineHelpers
.IsLeafState(this))
161
string initialStateName =
StateMachineHelpers
.GetInitialStateName(state);
197
Debug.Assert(
StateMachineHelpers
.IsLeafState(state));
202
string completedStateName =
StateMachineHelpers
.GetCompletedStateName(state);
203
if (
StateMachineHelpers
.IsCompletedState(state))
240
if (
StateMachineHelpers
.IsLeafState(state))
265
if (
StateMachineHelpers
.IsRootState(state))
267
else if (
StateMachineHelpers
.IsLeafState(state))
303
if (
StateMachineHelpers
.IsLeafState(state))
426
if (
StateMachineHelpers
.IsLeafState(state))
524
Debug.Assert(
StateMachineHelpers
.IsLeafState(state),
532
Debug.Assert(
StateMachineHelpers
.IsLeafState(state),
567
StateActivity rootState =
StateMachineHelpers
.GetRootState(state);
599
StateActivity rootState =
StateMachineHelpers
.GetRootState(executionContext.Activity as StateActivity);
601
StateActivity currentState =
StateMachineHelpers
.GetCurrentState(executionContext);
StateFinalizationActivity.cs (1)
73
if (
StateMachineHelpers
.ContainsEventActivity(stateFinalization))
StateInitialization.cs (1)
75
if (
StateMachineHelpers
.ContainsEventActivity(stateInitialization))
StateMachineAction.cs (4)
81
_currentState =
StateMachineHelpers
.GetCurrentState(context);
82
StateActivity rootState =
StateMachineHelpers
.GetRootState(_state);
254
StateActivity rootState =
StateMachineHelpers
.GetRootState(state);
265
IEventActivity eventActivity =
StateMachineHelpers
.GetEventActivity(eventDriven);
StateMachineExecutionState.cs (7)
193
StateActivity rootState =
StateMachineHelpers
.GetRootState(state);
194
StateActivity nextActionState =
StateMachineHelpers
.FindDynamicStateByName(rootState, action.StateName);
212
StateActivity currentState =
StateMachineHelpers
.GetCurrentState(context);
225
while (currentState != null && (currentState.QualifiedName.Equals(targetStateName) || !
StateMachineHelpers
.ContainsState(currentState, targetStateName)))
242
if (
StateMachineHelpers
.ContainsState(childState, targetStateName))
252
if (!
StateMachineHelpers
.IsLeafState(currentState))
260
Debug.Assert(
StateMachineHelpers
.IsRootState(state));
StateMachineSubscription.cs (8)
121
EventDrivenActivity eventDriven =
StateMachineHelpers
.GetParentEventDriven(eventActivity);
133
StateActivity rootState =
StateMachineHelpers
.GetRootState((StateActivity)context.Activity);
140
StateActivity rootState =
StateMachineHelpers
.GetRootState((StateActivity)context.Activity);
165
if (!
StateMachineHelpers
.IsRootExecutionContext(context))
188
if (!
StateMachineHelpers
.IsRootExecutionContext(context))
218
StateActivity rootState =
StateMachineHelpers
.GetRootState((StateActivity)context.Activity);
228
StateActivity currentState =
StateMachineHelpers
.GetCurrentState(context);
232
StateActivity rootState =
StateMachineHelpers
.GetRootState((StateActivity)context.Activity);
StateMachineSubscriptionManager.cs (8)
87
StateActivity state =
StateMachineHelpers
.GetCurrentState(context);
97
IEventActivity eventActivity =
StateMachineHelpers
.GetEventActivity(eventDriven);
145
StateActivity currentState =
StateMachineHelpers
.GetCurrentState(context);
164
IEventActivity eventActivity =
StateMachineHelpers
.GetEventActivity(eventDriven);
174
IEventActivity eventActivity =
StateMachineHelpers
.GetEventActivity(eventDriven);
253
IEventActivity eventActivity =
StateMachineHelpers
.GetEventActivity(eventDriven);
305
IEventActivity eventActivity =
StateMachineHelpers
.GetEventActivity(eventDriven);
381
StateActivity currentState =
StateMachineHelpers
.GetCurrentState(context);
StateMachineWorkflowInstance.cs (7)
123
if (
StateMachineHelpers
.IsLeafState(childState))
197
return
StateMachineHelpers
.FindActivityByName(this.StateMachineWorkflow, id);
211
StateActivity currentState =
StateMachineHelpers
.FindStateByName(stateMachineWorkflow, queueInfo.SubscribedActivityNames[0]);
228
Activity subscribedActivity =
StateMachineHelpers
.FindActivityByName(stateMachineWorkflow, subscribedActivityName);
233
EventDrivenActivity eventDriven =
StateMachineHelpers
.GetParentEventDriven(eventActivity);
308
StateActivity state =
StateMachineHelpers
.FindStateByName(stateMachineWorkflow, record.QualifiedName);
312
if (
StateMachineHelpers
.IsLeafState(state))
StateValidator.cs (12)
43
if (
StateMachineHelpers
.IsStateMachine(state))
61
if (state.Parent == null && !
StateMachineHelpers
.IsStateMachine(state))
66
if (
StateMachineHelpers
.IsLeafState(state))
70
else if (
StateMachineHelpers
.IsRootState(state))
154
if (
StateMachineHelpers
.IsStateMachine(state))
226
string initialStateName =
StateMachineHelpers
.GetInitialStateName(state);
241
StateActivity initialState =
StateMachineHelpers
.FindStateByName(
254
if (!
StateMachineHelpers
.IsLeafState(initialState))
264
string completedStateName =
StateMachineHelpers
.GetCompletedStateName(state);
279
string completedStateName =
StateMachineHelpers
.GetCompletedStateName(state);
282
StateActivity completedState =
StateMachineHelpers
.FindStateByName(
295
if (
StateMachineHelpers
.IsLeafState(completedState))
WebServiceResponse.cs (2)
528
StateActivity enclosingState =
StateMachineHelpers
.FindEnclosingState(startActivity);
530
if (
StateMachineHelpers
.IsInitialState(enclosingState))