WorkflowInstance.WorkflowInstanceControl.GetCompletionState Method

Definition

Returns the final ActivityInstanceState of the WorkflowInstance.

Overloads

GetCompletionState()

Returns the final ActivityInstanceState of the WorkflowInstance.

GetCompletionState(Exception)

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

GetCompletionState(IDictionary<String,Object>, Exception)

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

GetCompletionState()

Returns the final ActivityInstanceState of the WorkflowInstance.

C#
public System.Activities.ActivityInstanceState GetCompletionState();

Returns

One of the enumeration members that describes the state of an activity instance.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetCompletionState(Exception)

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

C#
public System.Activities.ActivityInstanceState GetCompletionState(out Exception terminationException);

Parameters

terminationException
Exception

When this method returns, terminationException contains the exception that caused the WorkflowInstance to terminate, or null if the WorkflowInstance did not terminate. This parameter is passed uninitialized.

Returns

One of the enumeration members that describes the state of an activity instance.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetCompletionState(IDictionary<String,Object>, Exception)

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

C#
public System.Activities.ActivityInstanceState GetCompletionState(out System.Collections.Generic.IDictionary<string,object> outputs, out Exception terminationException);

Parameters

outputs
IDictionary<String,Object>

When this method returns, outputs contains a dictionary of Out arguments of the workflow, keyed by argument name. This parameter is passed uninitialized.

terminationException
Exception

When this method returns, terminationException contains the exception that caused the WorkflowInstance to terminate, or null if the WorkflowInstance did not terminate. This parameter is passed uninitialized.

Returns

One of the enumeration members that describes the state of an activity instance.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1