Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 3 Next »

CancellationScope

This activity allows you to specify an activity for execution and cancellation logic for that activity.

Activity Parameters

The CorrelationScope activity has no parameter that can be provided by manually inserted values or via IN arguments or variables other than the DisplayName, but has two properties manageable in the workflow designer area:

Parameters:

  • Body: Specifies the activity for which cancellation logic is provided.
  • CancellationHandler: Specifies the activity that is executed in the event of cancellation.

 

CompensableActivity

This activity defines a unit of work that can be confirmed or compensated after successful completion.

Activity Parameters

The CorrelationScope activity has one parameter that can be provided by manually inserted values or via IN arguments or variables other than the DisplayName, and has four properties manageable in the workflow designer area:

Parameters:

  • Result (text box editor type) (type: CompensationToken): Specifies the return value of the CompensableActivity.

Properties:

  • Body: Specifies the return value of the CompensableActivity.
  • CompensationHandler: Specifies the activity to be executed when compensating for the Body activity. This handler can be explicitly invoked using the Compensate activity.
  • ConfirmationHandler: Specifies the activity to be executed when confirming the Body activity. This handler can be explicitly invoked using the Confirm activity.
  • CancellationHandler: Specifies the activity that is executed in the event of cancellation.

Compensate

 

This activity explicitly invokes the CompensationHandler for an activity contained in a CompensableActivity. If the Compensate 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.

Activity Parameters

The Compensate activity parameters can be provided by manual inserted values or via IN arguments or variables:

Parameters:

  • Target: Specifies the InArgument  that contains the CompensationToken for this Compensate activity.
  • CancellationHandler: Specifies the activity that is executed in the event of cancellation.
  • No labels