SlideShare a Scribd company logo
Behavioral Constraints for Services
Analyzing Interacting Services




                                                              Behavioral Constraints for Services
 ! Controllability:   a correctness criterion for a service


        P                R        Composition P!R is
                                  free of deadlocks

 ! Operating   Guideline: characterization of all partners


                 RR
                 RR               OGP characterizes
                                  all partners of P

 ! At BPM 2006: Algorithms, Implementation, and a link
   to BPEL (“Analyzing Interacting BPEL Processes”)
                                                                         2
Motivation for Today




                                                            Behavioral Constraints for Services
 ! Operating   Guideline characterizes all partners


             RR
             RR
                         ! Can be thousands…
                         ! Are all intended?
                         ! Is a certain feature usable?

This Talk:
    Refine controllability + show applications to SOA
    ! Business rules                    Service
                                        Broker
    ! Scenarios                 find              publish

    ! Causalities              Service          Service
                              Requester  bind   Provider
    ! Constraints
                                                                        3
Constraints for Services




                                                     Behavioral Constraints for Services
 Exclude or enforce actions of provider P
 with respect to a requestor R
                       P             t7 must fire

                                    always receive
                                       an order




    t6 must not fire

    never send an
    error message

                                                                4
Constraint Net




                                                                 Behavioral Constraints for Services
 ! Describe    desired behavior as constraint net:

                                 C

       transitions of P




 C = “Firstly, fire either t1 or t2, then fire either t3 or t4.”


                                                                             5
Product of P and C




                                                   Behavioral Constraints for Services
 ! “Synchronize”   P and C via transition labels




                                                             6
Product of P and C




                                                   Behavioral Constraints for Services
 ! “Synchronize”   P and C via transition labels
                 P"C




  final marking
                                                               7
First Results




                                                              Behavioral Constraints for Services
                                         Service
                                         Broker
 Applications to SOA:          find                 publish

 1. Validation of services    Service              Service
 2. Restriction of OGs       Requester    bind     Provider
                                                                         8
Application 1: Service Validation




                                                            Behavioral Constraints for Services
 !   Services are subject to change
                                             Not every
      P1          P2            P3           change is an
                                             improvement


 Goal: make sure the core features are still possible /
   unwanted behaviors are still impossible

 Solution:
 1. Describe feature or “anti-feature” as constraint net
 2. Check if product net is controllable/uncontrollable
                                                                      9
Application 1: Service Validation




                                                            Behavioral Constraints for Services
 !   Services are subject to change
                                             Not every
      P1          P2            P3           change is an
                                             improvement

                    This is not testing!
 Goal: make sure the core features are still possible /
                 Constraints do not need
    unwanted behaviors are a complete
                   describe still impossible
                      conversation!
 Solution:
 1. Describe feature or “anti-feature” as constraint net
 2. Check if product net is controllable/uncontrollable
                                                                10
Application 2: OG Restriction




                                                              Behavioral Constraints for Services
 Broker organizes specialized repository:
                                                          !

                                            !
 ! Mastercard payment only
 ! invoice after delivery
 ! no o!ering of certain products
 ! order can always be withdrawn
 !…


 Solution:
 Add constraint to service, re-calculate and publish OG

 Advantage:
 Many published (restricted) OGs for same service
                                                                     11
Constraints for Services




                                                          Behavioral Constraints for Services
 ! ServiceP itself might not be accessible
 ! Apply constraint to its published OGP

                                       OGP




 ! Only   communicating transitions can be constrained!
                                                               12
Constraint Automaton




                                                           Behavioral Constraints for Services
 ! Describe desired communicational behavior as
   constraint automaton




          C!
                                 ?r     regular customer
                                 ?p     premium customer
                                 !cod   cash on delivery
                                 !cc    credit card




                                                                 13
Product of Operating Guideline and Constraint Automaton




                                                          Behavioral Constraints for Services
 ! “Standard”      product automaton

   ?r     regular customer
   ?p     premium customer                       C!
   !cod   cash on delivery
   !cc    credit card



              OGP




                                                               14
Product of Operating Guideline and Constraint Automaton




                                                               Behavioral Constraints for Services
 ! “Standard”   product automaton



                OGP"C!




                                     ?r     regular customer
                                     ?p     premium customer
                                     !cod   cash on delivery
                                     !cc    credit card

                                                                      15
Further Results




                                                                Behavioral Constraints for Services
                                           Service
                                           Broker
 Applications to SOA:            find                 publish

 3. Selection of services       Service              Service
 4. Construction of services   Requester    bind     Provider
                                                                     16
Service Discovery in a Nutshell




                                                        Behavioral Constraints for Services
 Broker has a repository of Operating Guidelines
 1. Send model of requestor to the broker

                                                P
                                      P             P
                                            P
      R                                   P P
                                       P
                                         P
                                     P      P
 2. Broker matches service R           P
    with OGs in repository               P P
 3. These OGs are from “fitting” providers
                                                              17
Application 3: Service Selection (1)




                                                        Behavioral Constraints for Services
 Goal: Only return services satisfying a constraint
 ! Describe constraint as constraint automaton

                                               C"P
                                                 P
                                        C"P C"P
                                          P         P
      C                                    C"PP
      R                                        C"PP
                                                 PC"P
                                          C"P
                                            P
                                              C"P
                                                P
                                       C"P
                                         P       C"P
                                                   P
                                          C"P
                                            P
 ! Brokercalculates the product              C"P C"P
                                                P P
 ! Matching
                                                             18
Application 3: Service Selection (2)




                                                          Behavioral Constraints for Services
 Goal: Only return services satisfying a constraint
 ! Describe constraint as constraint net
 ! Requester calculates the product
                                                 P
                                        P             P
      C                                      P
      "                                     P P
                                         P
      R                                    P
                                       P      P
                                         P
                                           P P
 ! Matching
                                                               19
Application 4: Service Construction




                                                     Behavioral Constraints for Services
 Goal: Find services fulfilling a constraint
 ! Describe constraint as constraint automaton
 ! Broker calculates the product
                                            C"P
                                              P
 ! Remove empty OGs                   C"P C"P
                                         P      P
                                         C"P
                                           P
     C                                      C"PP
                                              PC"P
                                        C"P
                                         P
                                           C"P
                                             P
                                   C"PP       C"P
                                                P
        I want                         C"P
                                         P
     (to receive)                         C"P C"P
                                             P P
                          These services
        co!ee!
                          provide co!ee.
                                                        20
Take-Home Points




                                                                   Behavioral Constraints for Services
 ! Two   simple constructions, four nice applications

                                 Service
                                 Broker
         Selection     find                 publish Restriction

                      Service              Service
      Construction   Requester    bind     Provider   Validation

 !A   step towards service composition
Open Tasks
 ! Enhance expressiveness of constraints (LTL, CTL, …)
 ! Diagnosis results: Why is constraint unsatisfiable?


             Thank you very much! Any Questions?                        21

More Related Content

PDF
DCRA Inc. Supply Chain S&OP Solutions Summary
KEY
Kgomadam Candidacy
PDF
P&G China and Metro C&C Supply Chain performance improvement project (by ECR ...
PDF
Bill Stankiewicz Linders
PPTX
Best team presentation slides
PDF
Star Com Profile Interactive Pdf
PDF
Iipcc 2012 ip valuation
PDF
Nrf13 brasil varejo conectando a indústria ao cliente
DCRA Inc. Supply Chain S&OP Solutions Summary
Kgomadam Candidacy
P&G China and Metro C&C Supply Chain performance improvement project (by ECR ...
Bill Stankiewicz Linders
Best team presentation slides
Star Com Profile Interactive Pdf
Iipcc 2012 ip valuation
Nrf13 brasil varejo conectando a indústria ao cliente

Similar to Behavioral Constraints for Services (20)

PDF
S-CUBE LP: Service Identification
PDF
S-CUBE LP: A Soft-Constraint Based Approach to QoS-Aware Service Selection
PPTX
Representing Service-Relationships as First Class Entities in Service Orchest...
PDF
S-CUBE LP: Quality of Service-Aware Service Composition: QoS optimization in ...
PPTX
Self-Adaptive SLA-Driven Capacity Management for Internet Services
PDF
Service Interaction: Patterns, Formalization, and Analysis
PDF
S-CUBE LP: Data Dependency: Inferring Data Attributes in Service Orchestratio...
PDF
Layer 7: Robust Net-Centric Services
PDF
Market awareness in Service based Systems
PPTX
Adressing requirements with agile practices
PDF
Web Business Platforms on the Cloud
PPT
Product Design and Process Selection – Services
PDF
Orchestration and provisioning architecture for effective service management
PPT
Behavior of Services
PDF
Introduction to NServiceBus
PDF
Evaluating Contract Compatibility for Service Composition in The SeCO2 Framework
PPT
Building a Local Administration Services Portal for Citizens and Businesses: ...
PDF
FLINS'08 - A linguistic approach for non-functional constraints in a semanti...
PDF
Compensating Service Transactions
S-CUBE LP: Service Identification
S-CUBE LP: A Soft-Constraint Based Approach to QoS-Aware Service Selection
Representing Service-Relationships as First Class Entities in Service Orchest...
S-CUBE LP: Quality of Service-Aware Service Composition: QoS optimization in ...
Self-Adaptive SLA-Driven Capacity Management for Internet Services
Service Interaction: Patterns, Formalization, and Analysis
S-CUBE LP: Data Dependency: Inferring Data Attributes in Service Orchestratio...
Layer 7: Robust Net-Centric Services
Market awareness in Service based Systems
Adressing requirements with agile practices
Web Business Platforms on the Cloud
Product Design and Process Selection – Services
Orchestration and provisioning architecture for effective service management
Behavior of Services
Introduction to NServiceBus
Evaluating Contract Compatibility for Service Composition in The SeCO2 Framework
Building a Local Administration Services Portal for Citizens and Businesses: ...
FLINS'08 - A linguistic approach for non-functional constraints in a semanti...
Compensating Service Transactions
Ad

More from Universität Rostock (20)

PDF
Pragmatic model checking: from theory to implementations
PDF
Where did I go wrong? Explaining errors in process models
PDF
Decidability Results for Choreography Realization
PDF
Artifact-centric modeling using BPMN
PDF
Compliance by Design for Artifact-Centric Business Processes
KEY
Verification with LoLA
KEY
Verification with LoLA: 7 Implementation
KEY
Verification with LoLA: 6 Integrating LoLA
KEY
Verification with LoLA: 5 Case Studies
KEY
Verification with LoLA: 4 Using LoLA
KEY
Verification with LoLA: 3 State Space Reduction
KEY
Verification with LoLA: 1 Basics
KEY
Verification with LoLA: 2 The LoLA Input Language
PDF
Saarbruecken
PDF
Ws4 dsec talk @ Kickoff RS3
PDF
Internal Behavior Reduction for Services
PDF
Karsten Wolf @ Carl Adam Petri Memorial Symposium
PDF
Implementation of an Interleaving Semantics for TLDA
PDF
Formale Fundierung und effizientere Implementierung der schrittbasierten TLDA...
PDF
Demonstration of BPEL2oWFN and Fiona
Pragmatic model checking: from theory to implementations
Where did I go wrong? Explaining errors in process models
Decidability Results for Choreography Realization
Artifact-centric modeling using BPMN
Compliance by Design for Artifact-Centric Business Processes
Verification with LoLA
Verification with LoLA: 7 Implementation
Verification with LoLA: 6 Integrating LoLA
Verification with LoLA: 5 Case Studies
Verification with LoLA: 4 Using LoLA
Verification with LoLA: 3 State Space Reduction
Verification with LoLA: 1 Basics
Verification with LoLA: 2 The LoLA Input Language
Saarbruecken
Ws4 dsec talk @ Kickoff RS3
Internal Behavior Reduction for Services
Karsten Wolf @ Carl Adam Petri Memorial Symposium
Implementation of an Interleaving Semantics for TLDA
Formale Fundierung und effizientere Implementierung der schrittbasierten TLDA...
Demonstration of BPEL2oWFN and Fiona
Ad

Behavioral Constraints for Services

  • 2. Analyzing Interacting Services Behavioral Constraints for Services ! Controllability: a correctness criterion for a service P R Composition P!R is free of deadlocks ! Operating Guideline: characterization of all partners RR RR OGP characterizes all partners of P ! At BPM 2006: Algorithms, Implementation, and a link to BPEL (“Analyzing Interacting BPEL Processes”) 2
  • 3. Motivation for Today Behavioral Constraints for Services ! Operating Guideline characterizes all partners RR RR ! Can be thousands… ! Are all intended? ! Is a certain feature usable? This Talk: Refine controllability + show applications to SOA ! Business rules Service Broker ! Scenarios find publish ! Causalities Service Service Requester bind Provider ! Constraints 3
  • 4. Constraints for Services Behavioral Constraints for Services Exclude or enforce actions of provider P with respect to a requestor R P t7 must fire always receive an order t6 must not fire never send an error message 4
  • 5. Constraint Net Behavioral Constraints for Services ! Describe desired behavior as constraint net: C transitions of P C = “Firstly, fire either t1 or t2, then fire either t3 or t4.” 5
  • 6. Product of P and C Behavioral Constraints for Services ! “Synchronize” P and C via transition labels 6
  • 7. Product of P and C Behavioral Constraints for Services ! “Synchronize” P and C via transition labels P"C final marking 7
  • 8. First Results Behavioral Constraints for Services Service Broker Applications to SOA: find publish 1. Validation of services Service Service 2. Restriction of OGs Requester bind Provider 8
  • 9. Application 1: Service Validation Behavioral Constraints for Services ! Services are subject to change Not every P1 P2 P3 change is an improvement Goal: make sure the core features are still possible / unwanted behaviors are still impossible Solution: 1. Describe feature or “anti-feature” as constraint net 2. Check if product net is controllable/uncontrollable 9
  • 10. Application 1: Service Validation Behavioral Constraints for Services ! Services are subject to change Not every P1 P2 P3 change is an improvement This is not testing! Goal: make sure the core features are still possible / Constraints do not need unwanted behaviors are a complete describe still impossible conversation! Solution: 1. Describe feature or “anti-feature” as constraint net 2. Check if product net is controllable/uncontrollable 10
  • 11. Application 2: OG Restriction Behavioral Constraints for Services Broker organizes specialized repository: ! ! ! Mastercard payment only ! invoice after delivery ! no o!ering of certain products ! order can always be withdrawn !… Solution: Add constraint to service, re-calculate and publish OG Advantage: Many published (restricted) OGs for same service 11
  • 12. Constraints for Services Behavioral Constraints for Services ! ServiceP itself might not be accessible ! Apply constraint to its published OGP OGP ! Only communicating transitions can be constrained! 12
  • 13. Constraint Automaton Behavioral Constraints for Services ! Describe desired communicational behavior as constraint automaton C! ?r regular customer ?p premium customer !cod cash on delivery !cc credit card 13
  • 14. Product of Operating Guideline and Constraint Automaton Behavioral Constraints for Services ! “Standard” product automaton ?r regular customer ?p premium customer C! !cod cash on delivery !cc credit card OGP 14
  • 15. Product of Operating Guideline and Constraint Automaton Behavioral Constraints for Services ! “Standard” product automaton OGP"C! ?r regular customer ?p premium customer !cod cash on delivery !cc credit card 15
  • 16. Further Results Behavioral Constraints for Services Service Broker Applications to SOA: find publish 3. Selection of services Service Service 4. Construction of services Requester bind Provider 16
  • 17. Service Discovery in a Nutshell Behavioral Constraints for Services Broker has a repository of Operating Guidelines 1. Send model of requestor to the broker P P P P R P P P P P P 2. Broker matches service R P with OGs in repository P P 3. These OGs are from “fitting” providers 17
  • 18. Application 3: Service Selection (1) Behavioral Constraints for Services Goal: Only return services satisfying a constraint ! Describe constraint as constraint automaton C"P P C"P C"P P P C C"PP R C"PP PC"P C"P P C"P P C"P P C"P P C"P P ! Brokercalculates the product C"P C"P P P ! Matching 18
  • 19. Application 3: Service Selection (2) Behavioral Constraints for Services Goal: Only return services satisfying a constraint ! Describe constraint as constraint net ! Requester calculates the product P P P C P " P P P R P P P P P P ! Matching 19
  • 20. Application 4: Service Construction Behavioral Constraints for Services Goal: Find services fulfilling a constraint ! Describe constraint as constraint automaton ! Broker calculates the product C"P P ! Remove empty OGs C"P C"P P P C"P P C C"PP PC"P C"P P C"P P C"PP C"P P I want C"P P (to receive) C"P C"P P P These services co!ee! provide co!ee. 20
  • 21. Take-Home Points Behavioral Constraints for Services ! Two simple constructions, four nice applications Service Broker Selection find publish Restriction Service Service Construction Requester bind Provider Validation !A step towards service composition Open Tasks ! Enhance expressiveness of constraints (LTL, CTL, …) ! Diagnosis results: Why is constraint unsatisfiable? Thank you very much! Any Questions? 21