41 references to WorkflowInstanceState
System.Activities (27)
System\Activities\Hosting\WorkflowInstance.cs (6)
835
public
WorkflowInstanceState
State
839
WorkflowInstanceState
result;
843
result =
WorkflowInstanceState
.Aborted;
847
result =
WorkflowInstanceState
.Runnable;
853
result =
WorkflowInstanceState
.Idle;
857
result =
WorkflowInstanceState
.Complete;
System\Activities\WorkflowApplication.cs (21)
397
bool ShouldRaiseComplete(
WorkflowInstanceState
state)
399
return state ==
WorkflowInstanceState
.Complete && !this.hasRaisedCompleted;
640
WorkflowInstanceState
? localInstanceState = null;
695
shouldRunNow = (localInstanceState.HasValue && localInstanceState ==
WorkflowInstanceState
.Runnable && localApplicationState == WorkflowApplicationState.Runnable);
697
localInstanceState.HasValue && localInstanceState ==
WorkflowInstanceState
.Idle &&
1272
if (instance.Controller.State ==
WorkflowInstanceState
.Aborted)
1278
Fx.Assert(instance.Controller.State ==
WorkflowInstanceState
.Complete, "We should only get here when we are completed.");
2755
if (this.Controller.State !=
WorkflowInstanceState
.Complete)
2826
if (this.Controller.State ==
WorkflowInstanceState
.Complete)
3004
if (this.Controller.State !=
WorkflowInstanceState
.Complete)
3159
if (this.instance.Controller.State ==
WorkflowInstanceState
.Aborted)
3165
Fx.Assert(this.instance.Controller.State ==
WorkflowInstanceState
.Complete, "We should only get here when we are completed.");
3586
if (this.operation == PersistenceOperation.Unload && this.instance.Controller.State ==
WorkflowInstanceState
.Complete)
5464
return instance.Controller.State ==
WorkflowInstanceState
.Idle || instance.Controller.State ==
WorkflowInstanceState
.Complete;
5477
return (this.ActionId != instance.actionCount && instance.Controller.State ==
WorkflowInstanceState
.Idle) || instance.Controller.State ==
WorkflowInstanceState
.Complete;
5485
if (!instance.Controller.IsPersistable && instance.Controller.State !=
WorkflowInstanceState
.Complete)
5850
Fx.AssertAndThrow(instance.Controller.State !=
WorkflowInstanceState
.Aborted, "Cannot generate data for an aborted instance.");
5851
if (instance.Controller.State !=
WorkflowInstanceState
.Complete)
5854
data[WorkflowNamespace.Status] = new InstanceValue(instance.Controller.State ==
WorkflowInstanceState
.Idle ? "Idle" : "Executing", InstanceValueOptions.WriteOnly);
System.ServiceModel.Activities (14)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (14)
255
return this.Controller.State ==
WorkflowInstanceState
.Idle;
263
return this.Controller.State ==
WorkflowInstanceState
.Complete && !this.hasRaisedCompleted;
835
if (this.Controller.State ==
WorkflowInstanceState
.Complete)
1272
else if (this.Controller.State ==
WorkflowInstanceState
.Aborted)
1531
Fx.AssertAndThrow(Controller.State !=
WorkflowInstanceState
.Aborted, "Cannot generate data for an aborted service instance.");
1532
if (Controller.State !=
WorkflowInstanceState
.Complete)
1541
data[WorkflowNamespace.Status] = new InstanceValue(Controller.State ==
WorkflowInstanceState
.Idle ? "Idle" : "Executing", InstanceValueOptions.WriteOnly);
1581
return new UnloadOrPersistAsyncResult(this, this.Controller.State ==
WorkflowInstanceState
.Complete ? PersistenceOperation.Delete : PersistenceOperation.Save, false, isTry,
1730
if (this.Controller.State !=
WorkflowInstanceState
.Complete)
1949
if (this.Controller.State !=
WorkflowInstanceState
.Complete)
3381
this.isCompletionTransactionRequired = this.isUnloaded && instance.Controller.State ==
WorkflowInstanceState
.Complete &&
3609
if (this.operation == PersistenceOperation.Unload && this.instance.Controller.State ==
WorkflowInstanceState
.Complete)
3926
if (this.isUnloaded && this.instance.Controller.State ==
WorkflowInstanceState
.Complete && this.instance.creationContext != null)
4912
if (this.instance.state == State.Active && this.instance.Controller.State ==
WorkflowInstanceState
.Runnable)