1 / 16

Module 10: Creating Transactional Business Processes

Module 10: Creating Transactional Business Processes. Overview. Lesson 1: Introduction to Transactions Lesson 2: Configuring Transactions. Lesson 1: Introduction To Transactions . What Are Transactions? What Is Instance Persistence? Persistence Points in an Orchestration

rivka
Download Presentation

Module 10: Creating Transactional Business Processes

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Module 10:Creating TransactionalBusiness Processes

  2. Overview • Lesson 1: Introduction to Transactions • Lesson 2: Configuring Transactions

  3. Lesson 1: Introduction To Transactions • What Are Transactions? • What Is Instance Persistence? • Persistence Points in an Orchestration • Steps for Setting Up a Transaction

  4. What Are Transactions? { } Transaction Types Atomic — provide rollback capabilities Long-running — save state at persistence points Scope Shape Framework for transactions Enables exception handling Enables compensation handling Scope Drop a shape from the toolbox here

  5. What Is Instance Persistence? State Persistence Orchestration engine manages the persistence and restoration of orchestration service instances Critical when resources required by service instances are greater than resources available Persistence Functions Dehydration and rehydration Instance recovery Transaction compensation Controlled system shutdown

  6. Persistence Points in an Orchestration Persistence Points Persistence Point Message sent within anon-atomic scope End of transactional scope Starting a new orchestration instance (Start Orchestration shape) Debug break point Dehydration Orchestration completes System shutdown Persist State MessageBox

  7. Steps for Setting Up a Transaction Create a scope 1 Identify the type of transaction required 2 Determine if the transaction requires compensation 3 Identify potential errors 4 Add appropriate exception handlers 5 Define compensation code 6

  8. Lesson 2: Configuring Transactions • Defining an Orchestration as Transactional • Creating a Long-Running Transaction • Creating an Atomic Transaction • Creating Modular Business Processes • Demonstration: Creating Transactions • Adding Compensation Code • Demonstration: Adding Compensation Code

  9. Defining an Orchestration as Transactional Transactional orchestration Use to define an entire orchestration as transactional You can nest a long-runningor atomic transaction withina transactional orchestration You cannot nest a transactional scope within an orchestration that is not transactional Set the Transaction Type property to specify the transaction type forthe orchestration

  10. Creating a Long-Running Transaction Long-running transactions Long-Running Transaction May run for an extended time Used when ACID properties arenot required Data is not locked and can be modified Individual steps are committed during the transaction The transaction itself is not committed until the last statement has completed Can be nested to provideatomic components Loan application received Request Credit Report Order Appraisal Sign Documents

  11. Creating an Atomic Transaction Atomic Transactions Guarantee rollback for transaction failures Used when ACID properties are required Isolate state changes until committed Can set entire orchestration to atomic Atomic Transaction Debit Account A Credit Account B Commit Commit

  12. Creating Modular Business Processes Invokes anotherorchestration synchronously Calling orchestration waits Invokes anotherorchestration asynchronously Calling orchestration continues processing Call Orchestration Start Orchestration

  13. Demonstration: Creating Transactions In this demonstration, you will see how to: • Set an orchestration as transactional • Add a transactional scope toan orchestration • Add an exception handler to a scope

  14. Adding Compensation Code Compensation code Can be used for long-running or atomic transactions Reverses the effects of a transaction Called after the transaction has been completed Uses default compensation for nested transactions Atomic Transaction Credit Account A Credit Account B Commit Commit Compensation Code Reverse Debit Reverse Credit

  15. Demonstration: Adding Compensation Code In this demonstration, you will see how to: • Add a compensation block toa transaction

  16. Lab: Creating Transactional Business Processes • Exercise 1: Adding Exception Handling to an Orchestration • Exercise 2: Adding Compensation to an Orchestration • Exercise 3: Calling Compensation • Exercise 4: Testing the Application

More Related