Persist Activity Designer

The Persist activity designer is used to create and configure a Persist activity.

The Persist Activity

The Persist activity saves a workflow to disk, if possible. The Persist activity cannot be executed in a non-persistence zone as, for example, within a TransactionScope activity. If you do use a Persist activity in a non-persistence scope, an exception is thrown at run time.

Using the Persist Activity Designer

The Persist activity designer can be found in the Runtime category of the Toolbox, which is accessed by clicking the Toolbox tab (Alternatively, select Toolbox from the View menu or CTRL+ALT+X.)

The Persist activity designer can be dragged from the Toolbox and dropped on to the Workflow Designer surface wherever activities are usually placed, such as inside a Sequence. This creates a Persist activity with a default DisplayName of Persist. The DisplayName can be edited in the header of the Persist activity designer or in the DisplayName box of the property grid.

The Persist Properties

The following table shows the Persist properties and describes how they are used in the designer. These properties can be edited in property grid and some of them can be edited on Workflow Designer surface.

Property Name Required Usage
DisplayName False The friendly name of the Persist activity. The default is Persist. Although the display name is not strictly required, it is a best practice to use a display name.

See also