Confirm Activity Designer

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

The Confirm Activity

The Confirm activity explicitly invokes the ConfirmationHandler for an activity contained in a CompensableActivity. If the Confirm activity is not used within the CancellationHandler, CompensationHandler, or ConfirmationHandler of a CompensableActivity, then you must specify the Target property.

The CompensationToken specified by the Target provides a means to explicitly confirm or compensate a CompensableActivity once the Body of the CompensableActivity has successfully completed.

Using the Confirm Activity Designer

The Confirm activity designer can be found in the Transaction category of the Toolbox, which is accessed by clicking the Toolbox tab on the left side of the Workflow Designer. Alternatively, select Toolbox from the View menu, or press Ctrl+Alt+X.

The Confirm 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 Confirm activity with a default DisplayName of Confirm. The DisplayName value can be edited either in the header of the Confirm activity designer or in the DisplayName box of the property grid.

The Confirm Properties

The following table shows the Confirm properties and describes how they are used in the designer. The DisplayName property can be edited in property grid or on Workflow Designer surface, but the Target property must be edited in property grid.

Property Name Required Usage
DisplayName False Specifies the optional friendly name of the CancellationScope activity. The default is Confirm.
Target True Specifies the InArgument<T> that contains the CompensationToken for this Confirm activity.

See also