Bewerken

Share via


InstanceCompletionAction Enum

Definition

Contains options that specify whether the persistence provider should keep or delete the state information for an instance in the persistence store after the instance completes.

public enum class InstanceCompletionAction
public enum InstanceCompletionAction
type InstanceCompletionAction = 
Public Enum InstanceCompletionAction
Inheritance
InstanceCompletionAction

Fields

Name Value Description
DeleteNothing 0

Specifies that data and metadata for a workflow instance must be kept in the persistence database even after the workflow instance completes.

DeleteAll 1

Specifies that data and metadata for a workflow instance must be deleted from the persistence store after the workflow instance completes.

Remarks

.NET Framework 4 ships with a SQL persistence provider as a constituent of the SQL Workflow Instance Store, which is a concrete implementation of the InstanceStore class and is used to persist state information in to the SQL Server database. When the InstanceCompletionAction attribute is set to DeleteNothing for the SqlWorkflowInstanceStore service behavior associated with a service, the SQL persistence provider keeps the instance state information for the instance in the SQL Server persistence database even after the instance completes, and when the InstanceCompletionAction attribute is set to DeleteAll (which is the default value), the persistence provider deletes all the instance state information when the instance completes.

Applies to