SlideShare a Scribd company logo
17th International Conference on
                                 COOPERATIVE INFORMATION SYSTEMS
                CoopIS 2009 – http://www.onthemove‐conferences.org/index.php/coopis



                                The Influence of an
                             External Transaction on a
                                   BPEL Scope


                                Oliver Kopp, Ralph Mietzner, Frank Leymann
                           Institute of Architecture of Application Systems (IAAS)
                                          www.iaas.uni‐stuttgart.de




Presented by Oliver Kopp                                                              1
Agenda

      Background

      Usual Integration of Partner Services

      Choreography Scenario

      Relationship of WS‐Coordination Activities

      Extension of WS‐Business Activity


Presented by Oliver Kopp                           2
Background

      SOA
      Implementation: WS‐Plattform Architecture
              Curbera, F., Leymann, F., Storey, T., Ferguson, D.,Weerawarana, S.:Web Services Platform 
              Architecture: SOAP, WSDL, WS‐Policy, WS‐Addressing, WS‐BPEL, WS‐Reliable Messaging and 
              More. Prentice Hall PTR, Englewood Cliffs (2005)

      Services (described by WSDL)
      Orchestrated by a business process
              Business Process Execution Language (BPEL)
      A business process is a service, too
      Long‐running transactions
              Compensation instead of ACID
                       SAGA‐Principle: Garcia‐Molina, H. & Salem, K. Dayal, U. & Traiger, I. L. 
                       (ed.) Sagas. SIGMOD’87, ACM Press
Presented by Oliver Kopp                                                                                  3
Usual Integration of Partner Services
                                                         Visa 
Agency
Travel 




                                                      Application



       BPEL’s transaction boundaries are scopes
       Invokation of the visa agency is also a scope
       What if the visa application has to be compensated?
               “Manual compensation”
               Automated coordination




                            Tai, S., Khalaf, R., Mikalsen, T.A.: Composition of Coordinated Web Services. In: Middleware 2004.
 Presented by Oliver Kopp                                                                                                  4
WS‐Coordination Framework

                                                        Coordinator
                     Coordination
                       Context

     BPEL                           Activation           Registration            Protocol 
                                                                                                             Service 1
    Process                          Service               Service               Service




                                      Message including Coordination Context


                                      Message including Coordination Context                                  Service 2



                            Tai, S., Khalaf, R., Mikalsen, T.A.: Composition of Coordinated Web Services. In: Middleware 2004.
Presented by Oliver Kopp                                                                                                   5
WS‐Coordination Activity Tree

     BPEL 
                           Coordinator      Service 1
    Process

                                            Service 2




                                                      BPEL 
                                                     Process


                                         Service 1             Service 2



                                                               Service 2.1



Presented by Oliver Kopp                                                     6
Coordination Protocol: WS‐Business Activity

      Service is tied to life‐cycle of calling process
      Compensation‐based Transactions:
      WS‐Business Activity (WS‐BA) coordination protocol
                                      Coordinator generated
                                      Participant generated

                     completed                                     close                           closed
     Active                               Completed                               Closing                           Ended
                                              compensate
                           fail                                                 compensated
                                                                                                   failed
       cancel                                                            fail
                                        Compensating                              Failing

                                                            fail
                                           Canceling               canceled

                                  Tai, S., Khalaf, R., Mikalsen, T.A.: Composition of Coordinated Web Services. In: Middleware 2004.
Presented by Oliver Kopp                                                                                                         7
Scenario
                                                     Visa 
                                                  Application
  Travel Agency




                                                     24h
                           Send Booking
                              Details                                  Print and
                                                                      Send Ticket
                                                    Inform
                                                   Customer              Send 
                                                                      Confirmation



                                                                                  Flight 
                                                    24h                          started
                                          Free              Create      Send 
  Airline




                   Reserve Seat
                                          Seat              eTicket    eTicket
                     Send 
                  Confirmation                                            Flight
                                                                        canceled
Presented by Oliver Kopp                                                                    8
Scope Relations – WS‐Coordination “Tree”
  Travel Agency

                                                      Visa 
                                                   Application
                               Scope                                                  Scope
                            Booking (SB)                                            Ticket (ST)
  Airline




                                Scope                                                Send 
                           Reservation (SR)                                         eTicket


                                Travel Agency                                         Airline
                                   Process                                            Process


                  Scope SB     Visa Application   Scope ST                 Scope SR           Send eTicket




                                                      Nesting relationship of WS‐Coordination Activities

                                                   Pottinger, S., Mietzner, R., Leymann, F.: Coordinate BPEL Scopes and Processes by
                                                   Extending the WS‐Business Activity Framework. In: 15th International Conference
Presented by Oliver Kopp                           on Cooperative Information Systems (CoopIS 2007).                              9
Need for Participant‐Triggered Compensating

       Current WS‐BA: Coordinator triggers compensation
       WS‐BA w/ PTC: Coordinator and Participant may trigger 
       compensation
                                                                     compensate
                Preparing             closing           Closing
                 Closing             prepared          Prepared
                             prepare closing                 close
compensating
                                         close                       closed
               Completed                                Closing
                                                        Closed                    Ended
                            compensate
compensating                                          compensated
                                                                     failed
                                               fail
            Compensating                                Failing


                                                                                     Coordinator generated
 Presented by Oliver Kopp                                                            Participant generated   10
Conclusion and Outlook

      A BPEL scope may be a participant in two
      compensation‐based transactions
      Solved by a modification of WS‐BA
      Transaction boundary = scope boundary
      Last activity of scope: “reply” to incoming message

      What if last activity of scope is not a “reply”?
      What if scope boundary is not external transaction 
      boundary?
      What if scope is child of multiple external partners?

Presented by Oliver Kopp                                      11

More Related Content

Similar to The Influence of an External Transaction on a BPEL Scope

ServiceNow Knowledge11 IT Cost Management Session
ServiceNow Knowledge11 IT Cost Management SessionServiceNow Knowledge11 IT Cost Management Session
ServiceNow Knowledge11 IT Cost Management SessionJohn Roberts
 
Concur Best Practices In Travel And Expense Management
Concur Best Practices In Travel And Expense ManagementConcur Best Practices In Travel And Expense Management
Concur Best Practices In Travel And Expense Managementjaysdon02
 
Concur best practices in travel and expense management
Concur best practices in travel and expense managementConcur best practices in travel and expense management
Concur best practices in travel and expense managementLindseyvoigt
 
Concur Best Practices In Travel And Expense Management
Concur Best Practices In Travel And Expense ManagementConcur Best Practices In Travel And Expense Management
Concur Best Practices In Travel And Expense ManagementShannon Blackwell
 
Concur Best Practices In Travel And Expense Management
Concur Best Practices In Travel And Expense ManagementConcur Best Practices In Travel And Expense Management
Concur Best Practices In Travel And Expense Managementjfimmen
 
Best Practices In Travel And Expense Management
Best Practices In Travel And Expense ManagementBest Practices In Travel And Expense Management
Best Practices In Travel And Expense Managementsusanpeterson1966
 
Concur best practices in travel and expense management
Concur best practices in travel and expense managementConcur best practices in travel and expense management
Concur best practices in travel and expense managementTammilazarus
 
Concur best practices in travel and expense management
Concur best practices in travel and expense managementConcur best practices in travel and expense management
Concur best practices in travel and expense managementjcain79
 

Similar to The Influence of an External Transaction on a BPEL Scope (9)

Concur Overview
Concur OverviewConcur Overview
Concur Overview
 
ServiceNow Knowledge11 IT Cost Management Session
ServiceNow Knowledge11 IT Cost Management SessionServiceNow Knowledge11 IT Cost Management Session
ServiceNow Knowledge11 IT Cost Management Session
 
Concur Best Practices In Travel And Expense Management
Concur Best Practices In Travel And Expense ManagementConcur Best Practices In Travel And Expense Management
Concur Best Practices In Travel And Expense Management
 
Concur best practices in travel and expense management
Concur best practices in travel and expense managementConcur best practices in travel and expense management
Concur best practices in travel and expense management
 
Concur Best Practices In Travel And Expense Management
Concur Best Practices In Travel And Expense ManagementConcur Best Practices In Travel And Expense Management
Concur Best Practices In Travel And Expense Management
 
Concur Best Practices In Travel And Expense Management
Concur Best Practices In Travel And Expense ManagementConcur Best Practices In Travel And Expense Management
Concur Best Practices In Travel And Expense Management
 
Best Practices In Travel And Expense Management
Best Practices In Travel And Expense ManagementBest Practices In Travel And Expense Management
Best Practices In Travel And Expense Management
 
Concur best practices in travel and expense management
Concur best practices in travel and expense managementConcur best practices in travel and expense management
Concur best practices in travel and expense management
 
Concur best practices in travel and expense management
Concur best practices in travel and expense managementConcur best practices in travel and expense management
Concur best practices in travel and expense management
 

More from Oliver Kopp

Fault handling in the web service stack
Fault handling in the web service stackFault handling in the web service stack
Fault handling in the web service stackOliver Kopp
 
Interaction Choreography Models in BPEL:Choreographies on the Enterprise Serv...
Interaction Choreography Models in BPEL:Choreographies on the Enterprise Serv...Interaction Choreography Models in BPEL:Choreographies on the Enterprise Serv...
Interaction Choreography Models in BPEL:Choreographies on the Enterprise Serv...Oliver Kopp
 
The Subprocess Spectrum
The Subprocess SpectrumThe Subprocess Spectrum
The Subprocess SpectrumOliver Kopp
 
External And Internal Events In EPCs: E²EPCs
External And Internal Events In EPCs: E²EPCsExternal And Internal Events In EPCs: E²EPCs
External And Internal Events In EPCs: E²EPCsOliver Kopp
 
Do We Need Internal Behavior in Choreography Models?
Do We Need Internal Behavior in Choreography Models?Do We Need Internal Behavior in Choreography Models?
Do We Need Internal Behavior in Choreography Models?Oliver Kopp
 
A Model-Driven Approach to Implementing Coordination Protocols in BPEL
A Model-Driven Approach to Implementing Coordination Protocols in BPELA Model-Driven Approach to Implementing Coordination Protocols in BPEL
A Model-Driven Approach to Implementing Coordination Protocols in BPELOliver Kopp
 
Deriving Explicit Data Links in WS-BPEL Processes
Deriving Explicit Data Links in WS-BPEL ProcessesDeriving Explicit Data Links in WS-BPEL Processes
Deriving Explicit Data Links in WS-BPEL ProcessesOliver Kopp
 
On the Choice Between Graph-Based and Block-Structured Business Process Mod...
On the Choice Between  Graph-Based and Block-Structured  Business Process Mod...On the Choice Between  Graph-Based and Block-Structured  Business Process Mod...
On the Choice Between Graph-Based and Block-Structured Business Process Mod...Oliver Kopp
 
Web Service Choreography Configurations for BPMN
Web Service Choreography Configurations for BPMNWeb Service Choreography Configurations for BPMN
Web Service Choreography Configurations for BPMNOliver Kopp
 
Service Referrals in BPEL-based Choreographies
Service Referrals in BPEL-based ChoreographiesService Referrals in BPEL-based Choreographies
Service Referrals in BPEL-based ChoreographiesOliver Kopp
 
Tools4BPEL Abschlusspräsentation
Tools4BPEL AbschlusspräsentationTools4BPEL Abschlusspräsentation
Tools4BPEL AbschlusspräsentationOliver Kopp
 

More from Oliver Kopp (12)

Fault handling in the web service stack
Fault handling in the web service stackFault handling in the web service stack
Fault handling in the web service stack
 
Interaction Choreography Models in BPEL:Choreographies on the Enterprise Serv...
Interaction Choreography Models in BPEL:Choreographies on the Enterprise Serv...Interaction Choreography Models in BPEL:Choreographies on the Enterprise Serv...
Interaction Choreography Models in BPEL:Choreographies on the Enterprise Serv...
 
The Subprocess Spectrum
The Subprocess SpectrumThe Subprocess Spectrum
The Subprocess Spectrum
 
External And Internal Events In EPCs: E²EPCs
External And Internal Events In EPCs: E²EPCsExternal And Internal Events In EPCs: E²EPCs
External And Internal Events In EPCs: E²EPCs
 
Do We Need Internal Behavior in Choreography Models?
Do We Need Internal Behavior in Choreography Models?Do We Need Internal Behavior in Choreography Models?
Do We Need Internal Behavior in Choreography Models?
 
A Model-Driven Approach to Implementing Coordination Protocols in BPEL
A Model-Driven Approach to Implementing Coordination Protocols in BPELA Model-Driven Approach to Implementing Coordination Protocols in BPEL
A Model-Driven Approach to Implementing Coordination Protocols in BPEL
 
BPELscript
BPELscriptBPELscript
BPELscript
 
Deriving Explicit Data Links in WS-BPEL Processes
Deriving Explicit Data Links in WS-BPEL ProcessesDeriving Explicit Data Links in WS-BPEL Processes
Deriving Explicit Data Links in WS-BPEL Processes
 
On the Choice Between Graph-Based and Block-Structured Business Process Mod...
On the Choice Between  Graph-Based and Block-Structured  Business Process Mod...On the Choice Between  Graph-Based and Block-Structured  Business Process Mod...
On the Choice Between Graph-Based and Block-Structured Business Process Mod...
 
Web Service Choreography Configurations for BPMN
Web Service Choreography Configurations for BPMNWeb Service Choreography Configurations for BPMN
Web Service Choreography Configurations for BPMN
 
Service Referrals in BPEL-based Choreographies
Service Referrals in BPEL-based ChoreographiesService Referrals in BPEL-based Choreographies
Service Referrals in BPEL-based Choreographies
 
Tools4BPEL Abschlusspräsentation
Tools4BPEL AbschlusspräsentationTools4BPEL Abschlusspräsentation
Tools4BPEL Abschlusspräsentation
 

Recently uploaded

A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyUXDXConf
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutesconfluent
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1DianaGray10
 
Intelligent Gimbal FINAL PAPER Engineering.pdf
Intelligent Gimbal FINAL PAPER Engineering.pdfIntelligent Gimbal FINAL PAPER Engineering.pdf
Intelligent Gimbal FINAL PAPER Engineering.pdfAnthony Lucente
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxJennifer Lim
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...CzechDreamin
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityScyllaDB
 
Server-Driven User Interface (SDUI) at Priceline
Server-Driven User Interface (SDUI) at PricelineServer-Driven User Interface (SDUI) at Priceline
Server-Driven User Interface (SDUI) at PricelineUXDXConf
 
Motion for AI: Creating Empathy in Technology
Motion for AI: Creating Empathy in TechnologyMotion for AI: Creating Empathy in Technology
Motion for AI: Creating Empathy in TechnologyUXDXConf
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backElena Simperl
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty SecureFemke de Vroome
 
Agentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfAgentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfChristopherTHyatt
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Julian Hyde
 
Transforming The New York Times: Empowering Evolution through UX
Transforming The New York Times: Empowering Evolution through UXTransforming The New York Times: Empowering Evolution through UX
Transforming The New York Times: Empowering Evolution through UXUXDXConf
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIES VE
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlPeter Udo Diehl
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka DoktorováCzechDreamin
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCzechDreamin
 
In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsExpeed Software
 

Recently uploaded (20)

A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
Intelligent Gimbal FINAL PAPER Engineering.pdf
Intelligent Gimbal FINAL PAPER Engineering.pdfIntelligent Gimbal FINAL PAPER Engineering.pdf
Intelligent Gimbal FINAL PAPER Engineering.pdf
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
Server-Driven User Interface (SDUI) at Priceline
Server-Driven User Interface (SDUI) at PricelineServer-Driven User Interface (SDUI) at Priceline
Server-Driven User Interface (SDUI) at Priceline
 
Motion for AI: Creating Empathy in Technology
Motion for AI: Creating Empathy in TechnologyMotion for AI: Creating Empathy in Technology
Motion for AI: Creating Empathy in Technology
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
Agentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfAgentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdf
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
Transforming The New York Times: Empowering Evolution through UX
Transforming The New York Times: Empowering Evolution through UXTransforming The New York Times: Empowering Evolution through UX
Transforming The New York Times: Empowering Evolution through UX
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
 
In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT Professionals
 

The Influence of an External Transaction on a BPEL Scope

  • 1. 17th International Conference on COOPERATIVE INFORMATION SYSTEMS CoopIS 2009 – http://www.onthemove‐conferences.org/index.php/coopis The Influence of an External Transaction on a BPEL Scope Oliver Kopp, Ralph Mietzner, Frank Leymann Institute of Architecture of Application Systems (IAAS) www.iaas.uni‐stuttgart.de Presented by Oliver Kopp 1
  • 2. Agenda Background Usual Integration of Partner Services Choreography Scenario Relationship of WS‐Coordination Activities Extension of WS‐Business Activity Presented by Oliver Kopp 2
  • 3. Background SOA Implementation: WS‐Plattform Architecture Curbera, F., Leymann, F., Storey, T., Ferguson, D.,Weerawarana, S.:Web Services Platform  Architecture: SOAP, WSDL, WS‐Policy, WS‐Addressing, WS‐BPEL, WS‐Reliable Messaging and  More. Prentice Hall PTR, Englewood Cliffs (2005) Services (described by WSDL) Orchestrated by a business process Business Process Execution Language (BPEL) A business process is a service, too Long‐running transactions Compensation instead of ACID SAGA‐Principle: Garcia‐Molina, H. & Salem, K. Dayal, U. & Traiger, I. L.  (ed.) Sagas. SIGMOD’87, ACM Press Presented by Oliver Kopp 3
  • 4. Usual Integration of Partner Services Visa  Agency Travel  Application BPEL’s transaction boundaries are scopes Invokation of the visa agency is also a scope What if the visa application has to be compensated? “Manual compensation” Automated coordination Tai, S., Khalaf, R., Mikalsen, T.A.: Composition of Coordinated Web Services. In: Middleware 2004. Presented by Oliver Kopp 4
  • 5. WS‐Coordination Framework Coordinator Coordination Context BPEL  Activation Registration  Protocol  Service 1 Process Service Service Service Message including Coordination Context Message including Coordination Context Service 2 Tai, S., Khalaf, R., Mikalsen, T.A.: Composition of Coordinated Web Services. In: Middleware 2004. Presented by Oliver Kopp 5
  • 6. WS‐Coordination Activity Tree BPEL  Coordinator Service 1 Process Service 2 BPEL  Process Service 1 Service 2 Service 2.1 Presented by Oliver Kopp 6
  • 7. Coordination Protocol: WS‐Business Activity Service is tied to life‐cycle of calling process Compensation‐based Transactions: WS‐Business Activity (WS‐BA) coordination protocol Coordinator generated Participant generated completed close closed Active Completed Closing Ended compensate fail compensated failed cancel fail Compensating Failing fail Canceling canceled Tai, S., Khalaf, R., Mikalsen, T.A.: Composition of Coordinated Web Services. In: Middleware 2004. Presented by Oliver Kopp 7
  • 8. Scenario Visa  Application Travel Agency 24h Send Booking Details Print and Send Ticket Inform Customer Send  Confirmation Flight  24h started Free  Create  Send  Airline Reserve Seat Seat eTicket eTicket Send  Confirmation Flight canceled Presented by Oliver Kopp 8
  • 9. Scope Relations – WS‐Coordination “Tree” Travel Agency Visa  Application Scope Scope Booking (SB) Ticket (ST) Airline Scope Send  Reservation (SR) eTicket Travel Agency  Airline Process Process Scope SB Visa Application Scope ST Scope SR Send eTicket Nesting relationship of WS‐Coordination Activities Pottinger, S., Mietzner, R., Leymann, F.: Coordinate BPEL Scopes and Processes by Extending the WS‐Business Activity Framework. In: 15th International Conference Presented by Oliver Kopp on Cooperative Information Systems (CoopIS 2007). 9
  • 10. Need for Participant‐Triggered Compensating Current WS‐BA: Coordinator triggers compensation WS‐BA w/ PTC: Coordinator and Participant may trigger  compensation compensate Preparing closing Closing Closing prepared Prepared prepare closing close compensating close closed Completed Closing Closed Ended compensate compensating compensated failed fail Compensating Failing Coordinator generated Presented by Oliver Kopp Participant generated 10
  • 11. Conclusion and Outlook A BPEL scope may be a participant in two compensation‐based transactions Solved by a modification of WS‐BA Transaction boundary = scope boundary Last activity of scope: “reply” to incoming message What if last activity of scope is not a “reply”? What if scope boundary is not external transaction  boundary? What if scope is child of multiple external partners? Presented by Oliver Kopp 11