service composition and synthesis
play

Service Composition and Synthesis The Roman Model Giuseppe De - PowerPoint PPT Presentation

Service Composition and Synthesis The Roman Model Giuseppe De Giacomo SAPIENZA Universit di Roma, Italy Joint work with Daniela Berardi, Massimiliano de Leoni, Diego Calvanese, Fahima Cheikh, Rick Hull, Maurizio Lenzerini, Massimo Mecella,


  1. Service Composition and Synthesis The Roman Model Giuseppe De Giacomo SAPIENZA Università di Roma, Italy Joint work with Daniela Berardi, Massimiliano de Leoni, Diego Calvanese, Fahima Cheikh, Rick Hull, Maurizio Lenzerini, Massimo Mecella, Fabio Patrizi, Antonella Poggi, Riccardo Rosati, Sebastian Sardina 1

  2. Introduction • The promise of Service Computing is to use services fundamental elements for realizing distributed applications/solutions. • Services are processes that export their abstract specification • When no available service satisfies a desired specification, one might check whether (parts of) available services can be composed and orchestrated in order to realize the specification. • Working at an abstract level enable us to exploit results from automatic verification and synthesis to verify and compose services. • The problem of automatic composition becomes especially interesting in the presence of stateful (conversational) services. • Among the various frameworks proposed in the literature, here we concentrate on the so called `` Roman Model ’’ (name by Rick Hull). 2

  3. Data Integration Client Client’s query Global view or domain ontology Mapping 1 Mapping 2 Mapping n … … … Source 2 Source 1 Source n 3

  4. Service integration/composition: Key points Target service No available process for the target service spec. of the desired service behavior expressed in terms of virtual actions Must realize target service by delegating actual actions to Action ontology available services spec. of atomic processes and data Available services are stateful , hence must … realize the target using fragments of their Available services computations spec. of the behavior of available service processes expressed in terms of the environment Actual available processes 4

  5. The Roman Model: basics Key points Target service No available process for the target service Expressed as a Transition System spec. of the desired service behavior Must realize target service by delegating Action ontology actual actions to Shared Actions available services Environment expr. as a Transition Systems Available services are spec. of atomic processes and data stateful , hence must … realize the target using fragments of their Available services computations Each expressed as a Transition System spec. of the behavior of available service processes Actual available processes 5

  6. Roman Model’s main ingredients • The Roman Model exemplifies what can be achieved by composing conversational services and uncovers relationships with automated synthesis of reactive processes in Verification and AI Planning. • Roman Model’s main ingredients – Each available service is formally specified as a transition system that captures its possible conversations with a generic client. – Desired specification is a target service , described itself as a transition system . – the aim is to automatically synthesize orchestrators that realize the target service by delegating its actions to the available services, exploiting fragments of their execution. 6

  7. Transition systems • We represent services as transition systems : A TS is a tuple < A, S, s 0 , δ > where: • – A is the set shared of actions – S is the set of states – s 0 2 S is the set of initial states – δ µ S £ A £ S is the transition relation 7

  8. Service composition Problem of composition existence • Given: available services B 1 ,…,B n - - target service T over the same environment (same set of atomic actions) • Check whether T can be realized by delegating actions to B 1 ,…,B n so as to mimic T over time (forever!) Composition synthesis synthesis of the orchestrator that does the delegation 8

  9. Service composition as a game There are at least two kinds of games. One could be called finite, the other infinite. A finite game is played for the purpose of winning ... ... an infinite game for the purpose of continuing the play. Finite and Infinite Games J. P. Carse, philosopher 9

  10. Service composition as a game: Service composition vs Planning Roman model Stateless service Service composition Planning composition • Operators: available transition • Operators: atomic actions systems • Goal: target transition system • Goal: desired state of affair • Game: infinite! • Game: finite! – compose available transition – compose operators systems concurrently so as to sequentially so as to reach play the target transition system the goal • Playing strategy: orchestrator • Playing strategy: plan (process that delegate target actions to (program having operators the available service invocation as atomic instructions) 10

  11. Simple example of service composition target service Devilish nondeterminism! service 1 a a T0 T1 b a S10 S11 b service 2 orchestrator b S20 For simplicity we don’t consider environment. 11

  12. Simple example of service composition target service service 1 a a T0 T1 b a S10 S11 b service 2 orchestrator b S20 12

  13. Simple example of service composition target service service 1 a a T0 T1 b a S10 S11 b service 2 orchestrator b S20 13

  14. Simple example of service composition target service service 1 a a T0 T1 observe the actual state! b a S10 S11 b service 2 orchestrator b S20 14

  15. Simple example of service composition target service service 1 a a T0 T1 observe the actual state! b a S10 S11 b service 2 orchestrator b S20 15

  16. Simple example of service composition target service service 1 a a T0 T1 observe the actual state! b a S10 S11 b service 2 orchestrator b b S20 16

  17. Simple example of service composition target service service 1 a a T0 T1 b a S10 S11 b • Orchestrator program is any function P(h,a) = i that takes a history h and an action a to execute and delegates a to one of the available services i service 2 orchestrator • A history is a sequence that alternates states of the available services with actions performed: b S20 (s 10 ,s 20 ,…,s n0 ) a 1 (s 11 ,s 21 ,…,s n1 ) … a k (s k1 ,s 2k ,…,s nk ) • Observe that to take a decision P has full access 17 to the past , but no access to the future

  18. Synthesizing compositions •Techniques for computing compositions: •Reduction to PDL SAT •Simulation-based •LTL synthesis as model checking of game structure (all techniques are for finite state services) 18

  19. Simulation-based technique Directly based on ... controlling the concurrent execution of available services B 1 ,…,B n so as to mimic the target service T Thm: Composition exists iff the asynchronous (Cartesian) product C of B 1 ,…,B n can (ND-)simulate T 19

  20. Example of composition by simulation B 1 : Given from available and target service … B 2 : B 3 : T: 20

  21. Computing composition via simulation Let B 1 ,…,B n be the TSs of the available behaviors. The Available behaviors TS C = < A, S C , s C 0 , δ C ,F C > is the asynchronous product of B 1 ,...,B n where: • A is the set of actions • S C = S 1 £ ... £ S n • s C 0 = (s 01 , ... , s 0m ) • δ C µ S C £ A £ S C is defined as follows: • (s 1 £ ... £ s n ) ! a (s’ 1 £ ... £ s’ n ) iff 9 i. s i ! a s’ i 2 δ i and 8 j ≠ i. s’ j = s j 21

  22. Example of composition by simulation B 1 : C : B 2 : B 3 : … consider the asynchronous product of the available services … 22 22

  23. Simulation relation Given a target service T and (the asynchronous product of) available services C , a ( ND -) simulation is a relation R between the states t 2 T an (s 1 ,..,s n ) of C such that: (t, s 1 ,..,s n ) 2 R implies that for all t ! a t’ in T, exists a B i 2 C s.t. • 9 s i ! a s’ i in B i Æ • 8 s i ! a s’ i in B i ) (t’, s 1 ,..s’ i ,..s n ) 2 R If exists a simulation relation R (such that (t 0 , s 10 ,..,s n0 ) 2 R , • then we say that or T is simulated by C (or C simulates T ). • Simulated-by is –(i) a simulation; –(ii) the largest simulation. Simulated-by is a coinductive definition 23

  24. Simulation relation (cont.) Algorithm Compute (ND-)simulation Input: target behavior T and (async. prod. of) available behaviors C Output: the simulated-by relation (the largest simulation) Body R = ; R’ = S T £ S 1 £ .. £ S n while (R ≠ R’) { R := R’ R’ := R’ - {(t, s 1 ,..,s n ) | 9 t ! a t’ in T Æ ¬ ( 9 s i ! a s’ i in B i Æ 8 s i ! a s’ i in B i ) (t’, s 1 ,..s’ i ,..s n ) 2 R’ )} } return R’ End 24

  25. Example of composition by simulation B 1 : C : B 2 : B 3 : T: … compute ND-simulation 25 25

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend