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