SlideShare a Scribd company logo
1 of 11
BizTalk Orchestrations 
2nd Presentation 
Wajih Arshad
Topics 
 Scope 
 Use of scope for transactions 
 Synchronization 
 Exception handling 
 Compensation 
 Orchestration shapes in BizTalk 2004
Scope Shape 
 Defines scope in a flow 
 Used to implement transactions 
 Used to implement synchronization 
 Scope is not just a visual element, unlike Group shape 
 Used for exception handling and compensation
Nesting scopes 
Scope shapes can nest other scope shapes, subject to 
following conditions: 
 Atomic transactional scopes cannot nest other 
transactional scopes 
 Transactional scopes cannot be nested in non- 
Transactional scopes 
 Transactional scopes cannot be nested in synchronized 
scopes and their exception handlers 
 Synchronized scopes cannot be nested in other 
synchronized scopes and their exception handlers 
 CALLed orchestrations (nested orchestrations) are 
treated as nested transactions 
 STARTed orchestrations (nested orchestrations) do not 
have nesting scopes applying on them 
Source: MSDN
Scope Shape: Synchronization 
 Scope shape is used to declare a synchronized boundary 
(Synchronized block) 
 Synchronization avoids chances of data sharing and 
corruption 
 All orchestration actions within a synchronized scope are 
synchronized 
 Scopes do not hide variable names, unlike programming 
languages 
 Synchronization can help avoid deadlocks, though 
improper design can still lead to deadlocks
Scope Shape: Use for transactions 
How to make a transactional block? 
1. Set the whole orchestration as “Long Running” transaction 
2. Add a scope shape to define boundary of transaction 
3. Set the Transaction property of the scope to “Atomic” or 
“Long Running”
Scope Shape: Properties for transactions 
 Batch 
 Timeout 
 Retry 
 Isolation (Serializable, Read Committed, Repeated Read) 
 Synchronization (does not matter for atomic transactions)
Exception Handling 
 Exception handler can be associated with a scope 
(other than Atomic Transaction scope) 
 Exception handler can be configured to catch a .NET 
exception object or derived exception object 
 “Throw Exception” shape can be used to throw or re-throw 
an exception
Exception Handling (Cont.) 
 Timeout events result in exceptions and can be handled 
accordingly 
 Exception handler can contain other scopes 
 To associate an exception handling block with a scope, 
right click the scope shape and select “New Exception 
Handler”
Compensation 
 Used to remove the effects of a failed transaction 
 Can be used to undo a committed transaction 
 Both Atomic and Long Running transactions can have 
compensation block, though exception handling block is 
not allowed in Atomic transactions 
 Compensation blocks can contain transaction blocks 
 One scope can have only one compensation
Compensation: Order of execution 
 A default compensation is provided and invoked if 
one is not added 
 Compensation blocks are executed in reverse order: 
from compensation of outermost transaction to that of innermost. 
 Compensation blocks are executed in reverse order 
for loops: starting from last iteration back to the first iteration 
 “Compensate” shape can be used in compensation 
block to over-ride this default flow

More Related Content

Similar to Allied Consultants - Training on BizTalk orchestrations (2 of 2)

Simulation-Language.pptx
Simulation-Language.pptxSimulation-Language.pptx
Simulation-Language.pptxskknowledge
 
The free lunch is over
The free lunch is overThe free lunch is over
The free lunch is overThadeu Russo
 
Effective Spring Transaction Management
Effective Spring Transaction ManagementEffective Spring Transaction Management
Effective Spring Transaction ManagementUMA MAHESWARI
 
MuleSoft Meetup: Transaction Management
MuleSoft Meetup: Transaction ManagementMuleSoft Meetup: Transaction Management
MuleSoft Meetup: Transaction ManagementPankaj Goyal
 
Spring Transaction
Spring TransactionSpring Transaction
Spring Transactionpatinijava
 
Web Service Choreography Interface (Wsci)
Web Service Choreography Interface (Wsci)Web Service Choreography Interface (Wsci)
Web Service Choreography Interface (Wsci)awesomesos
 
Allied Consultants - Training on BizTalk orchestrations (1 of 2)
Allied Consultants - Training on BizTalk orchestrations (1 of 2)Allied Consultants - Training on BizTalk orchestrations (1 of 2)
Allied Consultants - Training on BizTalk orchestrations (1 of 2)Allied Consultants
 
Spring transaction management
Spring transaction managementSpring transaction management
Spring transaction managementHarshit Choudhary
 
Use Case and Activity Diagrams Modeling Notation
Use Case and Activity Diagrams Modeling NotationUse Case and Activity Diagrams Modeling Notation
Use Case and Activity Diagrams Modeling NotationLeslie Munday
 
Lecture10 use case model operation contracts
Lecture10 use case model operation contractsLecture10 use case model operation contracts
Lecture10 use case model operation contractsShahid Riaz
 
Distributed Transaction Management in Spring & JEE
Distributed Transaction Management in Spring & JEEDistributed Transaction Management in Spring & JEE
Distributed Transaction Management in Spring & JEEMushfekur Rahman
 
How to ace your .NET technical interview :: .Net Technical Check Tuneup
How to ace your .NET technical interview :: .Net Technical Check TuneupHow to ace your .NET technical interview :: .Net Technical Check Tuneup
How to ace your .NET technical interview :: .Net Technical Check TuneupBala Subra
 
UNIT III.ppt
UNIT III.pptUNIT III.ppt
UNIT III.pptAjit Mali
 

Similar to Allied Consultants - Training on BizTalk orchestrations (2 of 2) (20)

Simulation-Language.pptx
Simulation-Language.pptxSimulation-Language.pptx
Simulation-Language.pptx
 
The free lunch is over
The free lunch is overThe free lunch is over
The free lunch is over
 
Effective Spring Transaction Management
Effective Spring Transaction ManagementEffective Spring Transaction Management
Effective Spring Transaction Management
 
MuleSoft Meetup: Transaction Management
MuleSoft Meetup: Transaction ManagementMuleSoft Meetup: Transaction Management
MuleSoft Meetup: Transaction Management
 
Ho20
Ho20Ho20
Ho20
 
How to analyzing sap critical authorizations
How to analyzing sap critical authorizationsHow to analyzing sap critical authorizations
How to analyzing sap critical authorizations
 
Spring Transaction
Spring TransactionSpring Transaction
Spring Transaction
 
Web Service Choreography Interface (Wsci)
Web Service Choreography Interface (Wsci)Web Service Choreography Interface (Wsci)
Web Service Choreography Interface (Wsci)
 
Allied Consultants - Training on BizTalk orchestrations (1 of 2)
Allied Consultants - Training on BizTalk orchestrations (1 of 2)Allied Consultants - Training on BizTalk orchestrations (1 of 2)
Allied Consultants - Training on BizTalk orchestrations (1 of 2)
 
Spring transaction management
Spring transaction managementSpring transaction management
Spring transaction management
 
Autonomous transaction
Autonomous transactionAutonomous transaction
Autonomous transaction
 
Grails services
Grails servicesGrails services
Grails services
 
Spring transaction part4
Spring transaction   part4Spring transaction   part4
Spring transaction part4
 
Use Case and Activity Diagrams Modeling Notation
Use Case and Activity Diagrams Modeling NotationUse Case and Activity Diagrams Modeling Notation
Use Case and Activity Diagrams Modeling Notation
 
Spring aop
Spring aopSpring aop
Spring aop
 
Unit 2
Unit 2Unit 2
Unit 2
 
Lecture10 use case model operation contracts
Lecture10 use case model operation contractsLecture10 use case model operation contracts
Lecture10 use case model operation contracts
 
Distributed Transaction Management in Spring & JEE
Distributed Transaction Management in Spring & JEEDistributed Transaction Management in Spring & JEE
Distributed Transaction Management in Spring & JEE
 
How to ace your .NET technical interview :: .Net Technical Check Tuneup
How to ace your .NET technical interview :: .Net Technical Check TuneupHow to ace your .NET technical interview :: .Net Technical Check Tuneup
How to ace your .NET technical interview :: .Net Technical Check Tuneup
 
UNIT III.ppt
UNIT III.pptUNIT III.ppt
UNIT III.ppt
 

More from Allied Consultants

Hadoop Big Data Training (Part 1)
Hadoop Big Data Training (Part 1)Hadoop Big Data Training (Part 1)
Hadoop Big Data Training (Part 1)Allied Consultants
 
Integration Practice: How to make BizTalk Practice more profitable?
Integration Practice: How to make BizTalk Practice more profitable?Integration Practice: How to make BizTalk Practice more profitable?
Integration Practice: How to make BizTalk Practice more profitable?Allied Consultants
 
Requirements document for big data use cases
Requirements document for big data use casesRequirements document for big data use cases
Requirements document for big data use casesAllied Consultants
 
17 resources to become an IoT Pro
17 resources to become an IoT Pro17 resources to become an IoT Pro
17 resources to become an IoT ProAllied Consultants
 
Microsoft's view of the Internet of Things (IoT) by Imran Shafqat
Microsoft's view of the Internet of Things (IoT) by Imran ShafqatMicrosoft's view of the Internet of Things (IoT) by Imran Shafqat
Microsoft's view of the Internet of Things (IoT) by Imran ShafqatAllied Consultants
 
Sales training for an IT consulting firm
Sales training for an IT consulting firmSales training for an IT consulting firm
Sales training for an IT consulting firmAllied Consultants
 
Notes on BizTalk 2157 A training
Notes on BizTalk 2157 A trainingNotes on BizTalk 2157 A training
Notes on BizTalk 2157 A trainingAllied Consultants
 
Sample BizTalk post-training project
Sample BizTalk post-training projectSample BizTalk post-training project
Sample BizTalk post-training projectAllied Consultants
 
Allied Consultants - SharePoint Practice Overview
Allied Consultants - SharePoint Practice OverviewAllied Consultants - SharePoint Practice Overview
Allied Consultants - SharePoint Practice OverviewAllied Consultants
 
Allied Consultants - Partnership Models
Allied Consultants - Partnership ModelsAllied Consultants - Partnership Models
Allied Consultants - Partnership ModelsAllied Consultants
 
Allied Consultants - Mobile Development Services
Allied Consultants - Mobile Development ServicesAllied Consultants - Mobile Development Services
Allied Consultants - Mobile Development ServicesAllied Consultants
 
Allied Consultants - Management Consulting Partnerships
Allied Consultants - Management Consulting PartnershipsAllied Consultants - Management Consulting Partnerships
Allied Consultants - Management Consulting PartnershipsAllied Consultants
 
Allied Consultants - Introduction
Allied Consultants - IntroductionAllied Consultants - Introduction
Allied Consultants - IntroductionAllied Consultants
 

More from Allied Consultants (20)

Azure sentinal
Azure sentinalAzure sentinal
Azure sentinal
 
What is DevOps?
What is DevOps?What is DevOps?
What is DevOps?
 
Azure DevOps
Azure DevOpsAzure DevOps
Azure DevOps
 
Hadoop Big Data Training (Part 1)
Hadoop Big Data Training (Part 1)Hadoop Big Data Training (Part 1)
Hadoop Big Data Training (Part 1)
 
Integration Practice: How to make BizTalk Practice more profitable?
Integration Practice: How to make BizTalk Practice more profitable?Integration Practice: How to make BizTalk Practice more profitable?
Integration Practice: How to make BizTalk Practice more profitable?
 
Requirements document for big data use cases
Requirements document for big data use casesRequirements document for big data use cases
Requirements document for big data use cases
 
Big Data Pilot Template
Big Data Pilot Template Big Data Pilot Template
Big Data Pilot Template
 
17 resources to become an IoT Pro
17 resources to become an IoT Pro17 resources to become an IoT Pro
17 resources to become an IoT Pro
 
Microsoft's view of the Internet of Things (IoT) by Imran Shafqat
Microsoft's view of the Internet of Things (IoT) by Imran ShafqatMicrosoft's view of the Internet of Things (IoT) by Imran Shafqat
Microsoft's view of the Internet of Things (IoT) by Imran Shafqat
 
RossettaNet
RossettaNetRossettaNet
RossettaNet
 
Specialization template
Specialization templateSpecialization template
Specialization template
 
Mapper
MapperMapper
Mapper
 
Sales training for an IT consulting firm
Sales training for an IT consulting firmSales training for an IT consulting firm
Sales training for an IT consulting firm
 
Notes on BizTalk 2157 A training
Notes on BizTalk 2157 A trainingNotes on BizTalk 2157 A training
Notes on BizTalk 2157 A training
 
Sample BizTalk post-training project
Sample BizTalk post-training projectSample BizTalk post-training project
Sample BizTalk post-training project
 
Allied Consultants - SharePoint Practice Overview
Allied Consultants - SharePoint Practice OverviewAllied Consultants - SharePoint Practice Overview
Allied Consultants - SharePoint Practice Overview
 
Allied Consultants - Partnership Models
Allied Consultants - Partnership ModelsAllied Consultants - Partnership Models
Allied Consultants - Partnership Models
 
Allied Consultants - Mobile Development Services
Allied Consultants - Mobile Development ServicesAllied Consultants - Mobile Development Services
Allied Consultants - Mobile Development Services
 
Allied Consultants - Management Consulting Partnerships
Allied Consultants - Management Consulting PartnershipsAllied Consultants - Management Consulting Partnerships
Allied Consultants - Management Consulting Partnerships
 
Allied Consultants - Introduction
Allied Consultants - IntroductionAllied Consultants - Introduction
Allied Consultants - Introduction
 

Recently uploaded

FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 

Allied Consultants - Training on BizTalk orchestrations (2 of 2)

  • 1. BizTalk Orchestrations 2nd Presentation Wajih Arshad
  • 2. Topics  Scope  Use of scope for transactions  Synchronization  Exception handling  Compensation  Orchestration shapes in BizTalk 2004
  • 3. Scope Shape  Defines scope in a flow  Used to implement transactions  Used to implement synchronization  Scope is not just a visual element, unlike Group shape  Used for exception handling and compensation
  • 4. Nesting scopes Scope shapes can nest other scope shapes, subject to following conditions:  Atomic transactional scopes cannot nest other transactional scopes  Transactional scopes cannot be nested in non- Transactional scopes  Transactional scopes cannot be nested in synchronized scopes and their exception handlers  Synchronized scopes cannot be nested in other synchronized scopes and their exception handlers  CALLed orchestrations (nested orchestrations) are treated as nested transactions  STARTed orchestrations (nested orchestrations) do not have nesting scopes applying on them Source: MSDN
  • 5. Scope Shape: Synchronization  Scope shape is used to declare a synchronized boundary (Synchronized block)  Synchronization avoids chances of data sharing and corruption  All orchestration actions within a synchronized scope are synchronized  Scopes do not hide variable names, unlike programming languages  Synchronization can help avoid deadlocks, though improper design can still lead to deadlocks
  • 6. Scope Shape: Use for transactions How to make a transactional block? 1. Set the whole orchestration as “Long Running” transaction 2. Add a scope shape to define boundary of transaction 3. Set the Transaction property of the scope to “Atomic” or “Long Running”
  • 7. Scope Shape: Properties for transactions  Batch  Timeout  Retry  Isolation (Serializable, Read Committed, Repeated Read)  Synchronization (does not matter for atomic transactions)
  • 8. Exception Handling  Exception handler can be associated with a scope (other than Atomic Transaction scope)  Exception handler can be configured to catch a .NET exception object or derived exception object  “Throw Exception” shape can be used to throw or re-throw an exception
  • 9. Exception Handling (Cont.)  Timeout events result in exceptions and can be handled accordingly  Exception handler can contain other scopes  To associate an exception handling block with a scope, right click the scope shape and select “New Exception Handler”
  • 10. Compensation  Used to remove the effects of a failed transaction  Can be used to undo a committed transaction  Both Atomic and Long Running transactions can have compensation block, though exception handling block is not allowed in Atomic transactions  Compensation blocks can contain transaction blocks  One scope can have only one compensation
  • 11. Compensation: Order of execution  A default compensation is provided and invoked if one is not added  Compensation blocks are executed in reverse order: from compensation of outermost transaction to that of innermost.  Compensation blocks are executed in reverse order for loops: starting from last iteration back to the first iteration  “Compensate” shape can be used in compensation block to over-ride this default flow