WorkflowInstance.WorkflowInstanceControl WorkflowInstance.WorkflowInstanceControl WorkflowInstance.WorkflowInstanceControl Struct

Definition

Provides methods for WorkflowInstance derived classes to access the functionality of the workflow runtime.

protected: value class WorkflowInstance::WorkflowInstanceControl
protected struct WorkflowInstance.WorkflowInstanceControl
Protected Structure WorkflowInstance.WorkflowInstanceControl
Inheritance
WorkflowInstance.WorkflowInstanceControlWorkflowInstance.WorkflowInstanceControlWorkflowInstance.WorkflowInstanceControl

Properties

HasPendingTrackingRecords HasPendingTrackingRecords HasPendingTrackingRecords

Called by the workflow runtime to determine whether this workflow instance has pending tracking records and a tracking participant.

IsPersistable IsPersistable IsPersistable

Gets a value that indicates whether the WorkflowInstance is in a state where it can be persisted.

State State State

Gets the state of the WorkflowInstance.

TrackingEnabled TrackingEnabled TrackingEnabled

Called by the workflow runtime to determine whether tracking is enabled in this workflow instance.

Methods

Abort() Abort() Abort()

Aborts the WorkflowInstance.

Abort(Exception) Abort(Exception) Abort(Exception)

Aborts the WorkflowInstance using the specified exception.

BeginFlushTrackingRecords(TimeSpan, AsyncCallback, Object) BeginFlushTrackingRecords(TimeSpan, AsyncCallback, Object) BeginFlushTrackingRecords(TimeSpan, AsyncCallback, Object)

Called by the workflow runtime to begin sending pending tracking records to tracking participants asynchronously.

EndFlushTrackingRecords(IAsyncResult) EndFlushTrackingRecords(IAsyncResult) EndFlushTrackingRecords(IAsyncResult)

Called by the workflow runtime to end the track operation.

Equals(Object) Equals(Object) Equals(Object)

Returns a value that indicates whether the current WorkflowInstance.WorkflowInstanceControl is equal to the specified object.

FlushTrackingRecords(TimeSpan) FlushTrackingRecords(TimeSpan) FlushTrackingRecords(TimeSpan)

Called by the workflow runtime to send pending tracking records to tracking participants.

GetAbortReason() GetAbortReason() GetAbortReason()

Returns the exception that causes the WorkflowInstance to abort.

GetBookmarks() GetBookmarks() GetBookmarks()

Returns the collection of available bookmarks for the WorkflowInstance.

GetBookmarks(BookmarkScope) GetBookmarks(BookmarkScope) GetBookmarks(BookmarkScope)

Returns the collection of available bookmarks for the WorkflowInstance created in the specified BookmarkScope.

GetCompletionState() GetCompletionState() GetCompletionState()

Returns the final ActivityInstanceState of the WorkflowInstance.

GetCompletionState(Exception) GetCompletionState(Exception) GetCompletionState(Exception)

Returns the final ActivityInstanceState of the WorkflowInstance, including termination exception.

GetCompletionState(IDictionary<String,Object>, Exception) GetCompletionState(IDictionary<String,Object>, Exception) GetCompletionState(IDictionary<String,Object>, Exception)

Returns the final ActivityInstanceState of the WorkflowInstance, including workflow outputs and termination exception.

GetHashCode() GetHashCode() GetHashCode()

Returns the hash code for this WorkflowInstance.WorkflowInstanceControl.

GetMappedVariables() GetMappedVariables() GetMappedVariables()

Returns a dictionary of variables in the current scope that have been specified with Mapped.

PauseWhenPersistable() PauseWhenPersistable() PauseWhenPersistable()

Requests that the workflow runtime pause the WorkflowInstance at the next point of execution where it is possible to persist. Note that the scheduler queue may not be empty at this point.

PrepareForSerialization() PrepareForSerialization() PrepareForSerialization()

Prepares the WorkflowInstance state for serialization.

RequestPause() RequestPause() RequestPause()

Requests that the scheduler stops.

Run() Run() Run()

Instructs the WorkflowInstance to begin execution.

ScheduleBookmarkResumption(Bookmark, Object) ScheduleBookmarkResumption(Bookmark, Object) ScheduleBookmarkResumption(Bookmark, Object)

Schedules a bookmark resumption with the specified value.

ScheduleBookmarkResumption(Bookmark, Object, BookmarkScope) ScheduleBookmarkResumption(Bookmark, Object, BookmarkScope) ScheduleBookmarkResumption(Bookmark, Object, BookmarkScope)

Schedules a Bookmark resumption from the specified BookmarkScope.

ScheduleCancel() ScheduleCancel() ScheduleCancel()

Schedules the cancellation of the WorkflowInstance.

Terminate(Exception) Terminate(Exception) Terminate(Exception)

Transitions the WorkflowInstance into the terminal Faulted state using the specified exception.

Track(WorkflowInstanceRecord) Track(WorkflowInstanceRecord) Track(WorkflowInstanceRecord)

Called by the workflow runtime to add the specified pending record to the list of pending records.

Operators

Equality(WorkflowInstance+WorkflowInstanceControl, WorkflowInstance+WorkflowInstanceControl) Equality(WorkflowInstance+WorkflowInstanceControl, WorkflowInstance+WorkflowInstanceControl) Equality(WorkflowInstance+WorkflowInstanceControl, WorkflowInstance+WorkflowInstanceControl)

Returns a value that indicates whether two WorkflowInstance.WorkflowInstanceControl instances are equal.

Inequality(WorkflowInstance+WorkflowInstanceControl, WorkflowInstance+WorkflowInstanceControl) Inequality(WorkflowInstance+WorkflowInstanceControl, WorkflowInstance+WorkflowInstanceControl) Inequality(WorkflowInstance+WorkflowInstanceControl, WorkflowInstance+WorkflowInstanceControl)

Returns a value that indicates whether two WorkflowInstance.WorkflowInstanceControl instances are not equal.

Applies to