Chapter 15 Quick Reference

To

Do This

Introduce XA-style transactions into your workflow

Drop an instance of the TransactionScope activity into your workflow. You then should place all the transacted activities within the transactional scope. The ambient transaction will be applied to all, and should any one fail, all child activities will be rolled back. Otherwise, all will commit.

Introduce compensated transactions into your workflow

Drag and drop an instance of the CompensatableTransactionScope activity into your workflow. As with the TransactionScope activity, you then drop transacted child activities into the transactional scope. If all succeed, the transaction is considered successful and the child activities are committed. If not, the compensation ...

Get Microsoft® Windows® Workflow Foundation Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.