Creating a Transacted Workflow
I’ve created an application that simulates an automated teller machine (ATM), one where you provide your personal identification number, or PIN as it’s called, and make deposits to or withdrawals from your bank account. Deposits will be embedded in an XA-style transaction, while withdrawals will be compensated if the action fails. To really exercise the transactional nature of the application, I placed a "force transactional error" check box in the application. Simply select the check box and the next database-related operation will fail.
The workflow for this application is a state-based one, and it is more complex than the application you saw in the previous chapter (Chapter 14). I’ve shown the state machine I based ...
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.