SlideShare una empresa de Scribd logo
1 de 11
Descargar para leer sin conexión
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

Más contenido relacionado

Similar a 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 a 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
 

Más de 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
 

Más de 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
 

Último

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
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
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
[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
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
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
 

Último (20)

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
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
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.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
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
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
 

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