62 references to WorkflowStatus
System.Workflow.Runtime (62)
Hosting\SqlPersistenceWorkflowInstanceDescription.cs (3)
30
private
WorkflowStatus
status;
35
internal SqlPersistenceWorkflowInstanceDescription(Guid workflowInstanceId,
WorkflowStatus
status, bool isBlocked, string suspendOrTerminateDescription, SqlDateTime nextTimerExpiration)
45
public
WorkflowStatus
Status { get { return status; } }
Hosting\SqlWorkflowPersistenceService.cs (4)
654
(
WorkflowStatus
)dr.GetInt32(1),
983
WorkflowStatus
workflowStatus = WorkflowPersistenceService.GetWorkflowStatus(rootActivity);
991
if (workflowStatus !=
WorkflowStatus
.Completed && workflowStatus !=
WorkflowStatus
.Terminated)
Hosting\WorkflowPersistenceService.cs (2)
105
static protected internal
WorkflowStatus
GetWorkflowStatus(Activity rootActivity)
107
return (
WorkflowStatus
)rootActivity.GetValue(WorkflowExecutor.WorkflowStatusProperty);
Lock.cs (2)
267
if (!workflowExec.IsInstanceValid && (workflowExec.WorkflowStatus ==
WorkflowStatus
.Completed || workflowExec.WorkflowStatus ==
WorkflowStatus
.Terminated))
Tracking\SqlTrackingQuery.cs (5)
142
inst.Status = (
WorkflowStatus
)reader.GetInt32(5);
287
private
WorkflowStatus
? _status = new Nullable<
WorkflowStatus
>();
296
public
WorkflowStatus
? WorkflowStatus
320
_status = new Nullable<
WorkflowStatus
>();
Tracking\SqlTrackingWorkflowInstance.cs (2)
46
WorkflowStatus
_status;
104
public
WorkflowStatus
Status
WorkflowExecutor.cs (40)
36
internal readonly static DependencyProperty WorkflowStatusProperty = DependencyProperty.RegisterAttached("WorkflowStatus", typeof(
WorkflowStatus
), typeof(WorkflowExecutor), new PropertyMetadata(
WorkflowStatus
.Created));
148
this.WorkflowStatus =
WorkflowStatus
.Created;
259
if (this.WorkflowStatus ==
WorkflowStatus
.Running)
324
case
WorkflowStatus
.Completed:
325
case
WorkflowStatus
.Terminated:
564
if (this.WorkflowStatus !=
WorkflowStatus
.Created)
571
this.WorkflowStatus =
WorkflowStatus
.Running;
725
if ((this.rootActivity.ExecutionStatus == ActivityExecutionStatus.Closed) || (
WorkflowStatus
.Completed == this.WorkflowStatus) || (
WorkflowStatus
.Terminated == this.WorkflowStatus))
923
internal
WorkflowStatus
WorkflowStatus
925
get { return (
WorkflowStatus
)this.rootActivity.GetValue(WorkflowStatusProperty); }
965
else if (this.WorkflowStatus !=
WorkflowStatus
.Suspended && this.IsInstanceValid)
979
this.WorkflowStatus =
WorkflowStatus
.Terminated;
1004
WorkflowStatus
oldStatus = this.WorkflowStatus;
1037
if (
WorkflowStatus
.Completed == WorkflowStatus)
1110
if (
WorkflowStatus
.Completed == WorkflowStatus)
1166
WorkflowStatus
workflowStatus = this.WorkflowStatus;
1167
if ((ActivityExecutionStatus.Closed == this.rootActivity.ExecutionStatus) && (
WorkflowStatus
.Terminated != workflowStatus))
1170
this.WorkflowStatus =
WorkflowStatus
.Completed;
1175
case
WorkflowStatus
.Running:
1178
case
WorkflowStatus
.Suspended:
1179
case
WorkflowStatus
.Completed:
1180
case
WorkflowStatus
.Terminated:
1181
case
WorkflowStatus
.Created:
1200
private void Rollback(
WorkflowStatus
oldStatus)
1299
if ((this.WorkflowStatus ==
WorkflowStatus
.Suspended) || (!this.Scheduler.CanRun))
1425
get { return ((this.currentAtomicActivity == null) && (this.Scheduler.IsStalledNow || this.WorkflowStatus ==
WorkflowStatus
.Suspended)); }
1683
WorkflowStatus
oldStatus = this.WorkflowStatus;
1685
this.WorkflowStatus =
WorkflowStatus
.Terminated;
1928
WorkflowStatus
status = this.WorkflowStatus;
1929
if (status ==
WorkflowStatus
.Suspended || status ==
WorkflowStatus
.Created)
1956
this.WorkflowStatus =
WorkflowStatus
.Suspended;
1991
if ((this.WorkflowStatus !=
WorkflowStatus
.Suspended))
2031
if ((this.WorkflowStatus !=
WorkflowStatus
.Suspended) && (!this.Scheduler.CanRun))
2039
this.WorkflowStatus =
WorkflowStatus
.Running;
2699
case
WorkflowStatus
.Completed:
2700
case
WorkflowStatus
.Terminated:
2703
case
WorkflowStatus
.Suspended:
WorkflowInstance.cs (4)
61
Debug.Assert(value.WorkflowStatus ==
WorkflowStatus
.Completed || value.WorkflowStatus ==
WorkflowStatus
.Terminated,
174
if (executor.WorkflowStatus ==
WorkflowStatus
.Created)
337
if (executor.WorkflowStatus ==
WorkflowStatus
.Created)