SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
[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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
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
 
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
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
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
 
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
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
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
 
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
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
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
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
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
 

Kürzlich hochgeladen (20)

Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
[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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
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...
 
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
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
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
 
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
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
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
 
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
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
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
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
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
 

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