CN102158516B - Service composition realization method compiler - Google Patents
Service composition realization method compiler Download PDFInfo
- Publication number
- CN102158516B CN102158516B CN 201010260782 CN201010260782A CN102158516B CN 102158516 B CN102158516 B CN 102158516B CN 201010260782 CN201010260782 CN 201010260782 CN 201010260782 A CN201010260782 A CN 201010260782A CN 102158516 B CN102158516 B CN 102158516B
- Authority
- CN
- China
- Prior art keywords
- engine
- assembly
- combination
- event
- client
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 81
- 230000003993 interaction Effects 0.000 claims abstract description 83
- 230000008569 process Effects 0.000 claims abstract description 47
- 238000004891 communication Methods 0.000 claims abstract description 16
- 238000006243 chemical reaction Methods 0.000 claims description 8
- 230000002452 interceptive effect Effects 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 5
- 230000006870 function Effects 0.000 description 66
- 230000000875 corresponding effect Effects 0.000 description 40
- 230000009471 action Effects 0.000 description 30
- 230000000712 assembly Effects 0.000 description 19
- 238000000429 assembly Methods 0.000 description 19
- 238000011161 development Methods 0.000 description 15
- 230000005540 biological transmission Effects 0.000 description 13
- 230000000694 effects Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 8
- 230000007246 mechanism Effects 0.000 description 4
- 230000011664 signaling Effects 0.000 description 4
- 239000002131 composite material Substances 0.000 description 3
- 239000000344 soap Substances 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000002596 correlated effect Effects 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 239000012141 concentrate Substances 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000001815 facial effect Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The embodiment of the invention relates to a service combination compiling method and a compiler, wherein the service combination compiling method includes: based on a Web Services Description Language (WSDL) description of Web service and a User interface (UI) of a UI assembly, a unified combination description compiler compiling the unified combination description, generating a UI interaction description, a conventional business process implementation language combination description and UI engine configuration; the unified combination description compiler deploying the generated UI interaction description to a UI engine client, the UI engine client implementing based on the UI interaction description; the unified combination description compiler deploying the generated conventional business process implementation language combination description to the combined engine, so that the combination engine performing combination application implementation based on the conventional business process implementation language combination description; and the unified combination description compiler deploying the generated UI engine to a UI engine server, so that the UI engine server configuring based on the UI engine configuration, thereby implementing the communication and interaction between the UI engine client and the combination engine.
Description
Technical field
The embodiment of the invention relates to the service compute technical field, and especially a kind of service groups is compiled in collaboration with the method for translating and compiler.
Background technology
Along with the development of service compute technology, service compute becomes the main flow computation schema in the open isomerous environment gradually.When utilizing the function of service realization system, single service often can't be finished whole demands, must rely on one group of service cooperation each other just can achieve the goal, service groups cooperation important method flexible for realizing, fast integration is for the application integration between enterprise provides effective support.The Web service of enriching constantly makes by making up oneself has service to provide new value-added service to become a kind of application construction pattern with important value, and the service combination technique becomes one of core technology in the service compute.
From the technology dimension of Web service combination, the Web service combination mainly comprises workflow technology and artificial intelligence technology; Wherein, the service node that workflow technology usually need be in pre-defined combination process of design phase and flow process, the operation phase is synthesized service according to predefined flow process of design phase, belongs to the services composite type; Artificial intelligence technology does not need to describe in advance synthetic flow process usually, but by default planing method, the demand of analysis user is selected suitable service, thus dynamically synthetic service.From Web service combination services dimension, the Web service combination can be divided into UI combination, service logic combination and three aspects of business datum combination downwards from pushing up, wherein, that UI combination has been described is user oriented, visual, the integrated relationship between the different service interfaces, the control dependence between the service has been described in the service logic combination, and the data dependence relation between the service has been described in the business datum combination.
Prior art mainly concentrates on the service logic combination, for example: by business procedure effective language (Business Process Execution Language, be called for short: BPEL) be merely able to make up the Web service of not being with user interface, various Web for One's name is legion on the Internet with user interface use, and adopt BPEL to make up.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of service groups to compile in collaboration with the method for translating and compiler, by the efficient that improves the Web application and development of reusing to user interface.
The embodiment of the invention provides a kind of service groups to compile in collaboration with the method for translating, and comprising:
Describe based on the WSDL description of Web service and the UI of UI assembly, the unification combination is described compiler unification combination description is compiled, and generates UI and describes, generates conventional BPEL combination description alternately and generate the UI engine configuration;
Unified combination is described compiler mutual description of the UI that generates is deployed to UI engine client, and described UI engine client is carried out based on mutual description of described UI;
The conventional BPEL combination that unified combination description compiler will generate is described and is deployed to combine engine, described combine engine is described based on described conventional BPEL combination carried out the Combination application execution;
Unified combination is described compiler the UI engine configuration that generates is deployed on the UI engine server, and described UI engine server is configured based on described UI engine configuration, realizes the communication interaction between described UI engine client and the described combine engine.
The embodiment of the invention provides a kind of unified combination to describe compiler, comprising:
Unified processing module is used for describing based on the WSDL description of Web service and the UI of UI assembly, unified combination is described compiling, and generation UI describes, generates conventional BPEL combination alternately and describes and generate the UI engine configuration;
First deployment module, the mutual description of UI that is used for generating is deployed to UI engine client, and described UI engine client is carried out based on mutual description of described UI;
Second deployment module, the conventional BPEL combination that is used for generating is described and is deployed to combine engine, makes described combine engine carry out Combination application based on described conventional BPEL combination description and carries out;
The 3rd deployment module, the UI engine configuration that is used for generating is deployed to the UI engine server, and described UI engine server is configured based on described UI engine configuration, realizes the communication interaction between described UI engine client and the described combine engine.
In the embodiment of the invention, the event that produces according to the UI assembly generates the UI interaction message, generate the combine engine message call according to this UI interaction message, because the combine engine message call comprises the title of Combination application and the action name of UI assembly, thereby make combine engine can call the operation of the UI assembly that Combination application realizes according to the action name of the title of Combination application and UI assembly.The UI assembly is that the Web that has user interface uses, and when the Web application and development, owing to the combined treatment that has realized by combine engine the Web that has user interface is used, thereby has improved the efficient of Web application and development.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of an embodiment of service combination implementing method of the present invention;
Fig. 2 is signaling process figure embodiment illustrated in fig. 1;
Fig. 3 is the schematic flow sheet of another embodiment of service combination implementing method of the present invention;
Fig. 4 is signaling process figure embodiment illustrated in fig. 3;
Fig. 5 compiles in collaboration with the schematic flow sheet of translating method embodiment for service groups of the present invention;
Fig. 6 serves the structural representation that combination realizes system embodiment for the present invention;
Fig. 7 describes the structural representation of compiler embodiment for the unified combination of the present invention;
Fig. 8 is the configuration diagram of institute of the present invention applicable system.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Fig. 1 is the schematic flow sheet of an embodiment of service combination implementing method of the present invention, and as shown in Figure 1, present embodiment comprises the steps:
The title of this Combination application that step 103, combine engine comprise according to this combine engine message call and the action name of this UI assembly, the operation of calling the described UI assembly of being realized by this Combination application.
The service combination implementing method that the embodiment of the invention provides, UI engine client generates the UI interaction message according to the event that the UI assembly produces, the UI engine server generates the combine engine message call according to this UI interaction message, because the combine engine message call comprises the title of Combination application and the action name of this UI assembly, thereby make combine engine can call the operation of this UI assembly that this Combination application realizes according to the action name of the title of Combination application and this UI assembly, realized Combination application and UI assembly alternately.The UI assembly is that the Web that has user interface uses, when the Web application and development, owing to realized the combined treatment of the Web application that has user interface be need not to develop separately the user interface part again, thereby improved the efficient of Web application and development by combine engine.
In order to be illustrated more clearly in the described technical scheme of the embodiment of the invention, be described in detail embodiment illustrated in fig. 2 below.Fig. 2 is signaling process figure embodiment illustrated in fig. 1, and as shown in Figure 2, present embodiment comprises the steps:
Step 201, UI engine client are obtained the event that the UI assembly produces;
Wherein, event described in the present embodiment specifically can be the event that produces when the state of UI assembly changes, this event is got access to by UI engine client (Client), further, the state of the described UI assembly of the embodiment of the invention changes and is specifically as follows: carry out the interface content or the UI assembly that change the UI assembly by function and receive user's input;
Step 202, UI engine client are converted to the UI interaction message with this event, and this UI interaction message is sent to the UI engine server;
Particularly, after UI engine client receives this event, can be by being arranged on the title that monitor on the event bus obtains the corresponding Combination application to be called of the event that produces with the UI assembly, and obtain the action name of this UI assembly, thereby further according to the title of Combination application and the action name of UI assembly the event of this UI assembly generation is changed generation UI interaction message, wherein, the UI interaction message comprises the title of Combination application and the information such as action name of UI assembly; The parameter of this UI interaction message is identical with the parameter of the event that the UI assembly produces; This UI interaction message can send to the UI engine server by the interface module in the UI engine client.
Step 203, UI engine server obtain the title of Combination application and the action name of this UI assembly from the UI interaction message, according to the title of this Combination application and the action name of UI assembly the UI interaction message is changed generation combine engine message call, this combine engine message call is sent to combine engine;
Wherein, UI engine server (Server) assists the UI assembly and runs between the Combination application on the combine engine to realize communication interaction.Be specially: the interface module that sends data to UI engine client (Client) by the data transmission blocks of UI engine server, and reception is from the data of UI engine client (Client), and send data for the UI assembly to Combination application, thereby realize the correct exchange of message data; Further, can this UI interaction message be converted to the combine engine message call by the data transmission blocks of UI engine server, the parameter of this combine engine message call is identical with the parameter of UI interaction message, and this combine engine message call is sent to combine engine.
The title of the Combination application that step 204, combine engine comprise according to the combine engine message call and the action name of this UI assembly, the operation of calling the UI assembly that this Combination application realizes;
Particularly, Combination application is described on this combine engine based on conventional BPEL combination and carries out, and combine engine is called the operation of the receiving port type of this UI assembly of being realized by Combination application according to the combine engine message call; Combine engine is sent Web service message call or UI message call, thereby realizes calling corresponding Web service or UI assembly.
The service combination implementing method that the embodiment of the invention provides, the event that produces according to the UI assembly generates the UI interaction message, generate the combine engine message call according to this UI interaction message, because the combine engine message call comprises the title of Combination application and the action name of this UI assembly, thereby make combine engine can call the operation of this UI assembly that this Combination application realizes according to the action name of the title of Combination application and this UI assembly, realized Combination application and UI assembly alternately.The UI assembly is that the Web that has user interface uses, when the Web application and development, owing to realized the combined treatment of the Web application that has user interface be need not to develop separately the user interface part again, thereby improved the efficient of Web application and development by combine engine.
Fig. 3 is the schematic flow sheet of another embodiment of service combination implementing method of the present invention, and as shown in Figure 3, the embodiment of the invention comprises the steps:
The Combination application of carrying out on step 301, the combine engine is sent the UI message call to the UI engine server, to call the operation of the UI assembly that the UI engine server realizes;
The service combination implementing method that the embodiment of the invention provides because the UI interaction message comprises this event, thereby makes UI engine client can call the function of this UI assembly according to this event, has realized the mutual of Combination application and UI assembly.The UI assembly is that the Web that has user interface uses, when the Web application and development, owing to realized the combined treatment of the Web application that has user interface be need not to develop separately the user interface part again, thereby improved the efficient of Web application and development by combine engine.
In order to be illustrated more clearly in the described technical scheme of the embodiment of the invention, be described in detail embodiment illustrated in fig. 3 below, Fig. 4 is signaling process figure embodiment illustrated in fig. 3, and the function how present embodiment calls the UI assembly to Combination application carries out exemplary illustration; As shown in Figure 4, present embodiment comprises the steps:
Step 401, UI engine server receive the UI message call of the Combination application transmission of carrying out on the combine engine, and this UI message call comprises the title of Combination application, the action name of the title of this UI assembly and this UI assembly;
Step 402, UI engine server are converted to event with this UI message call, and the name of event is called the action name of this UI assembly, and the Event senders is this Combination application; Send the UI interaction message to UI engine client then, wherein, this UI interaction message comprises the title of this event, this event and Event senders's title;
Wherein, UI engine exposed interface is converted to event with this UI message call, and the parameter of this event is identical with the parameter of UI message call; In addition, this event can also be stored in the memory module by the UI engine server; The data transmission blocks of UI engine server is converted to the UI interaction message with this event and sends to UI engine client (Client).
Step 403, UI engine client trigger the operation of UI assembly according to this UI interaction message.
Wherein, the interface module of UI engine client receives this UI interaction message, the title of the event that comprises according to this UI interaction message, and Event senders's title, based on the monitor of carrying out in event bus, the function of this UI assembly is namely called in the operation of the Event triggered UI assembly that comprises by this UI interaction message, wherein, the input parameter of the function of this UI assembly is identical with the parameter of this event.
By above-described embodiment, combine engine is carried out Combination application, produces the UI message call, and the UI engine server converts the UI message call to event, and converts event to the UI interaction message, makes UI engine client trigger the operation of UI assembly according to the UI interaction message.Combine engine, UI engine client, the mutual coordination each other of UI engine server have realized seeking unity of action of service logic and user interface, when exploitation Web uses, composite service logical AND user interface simultaneously, namely realized reusing of service logic and user interface simultaneously, need not again the final user interface of using of manual exploitation, thereby improved the efficient of Web application and development.
Fig. 5 compiles in collaboration with the schematic flow sheet of translating method embodiment for service groups of the present invention, and as shown in Figure 5, the embodiment of the invention comprises the steps:
The conventional BPEL combination that step 503, unified combination description compiler will generate is described and is deployed to combine engine, combine engine is described based on described conventional BPEL combination carried out the Combination application execution;
The service groups that the embodiment of the invention provides is compiled in collaboration with the method for translating, unified combination is described compiler and is described and generate the UI that UI described and be deployed to UI engine client alternately respectively and describe the storehouse alternately by compiling unified combination, generate the combination of conventional BPEL and describe and be deployed to combine engine, generate the UI engine configuration and be deployed to the UI engine configuration storehouse of UI engine server.Subsequently, UI engine client is carried out based on mutual description of this UI, combine engine is described based on this routine BPEL combination and is carried out the Combination application execution, the configuration that the UI engine server then is correlated with based on this UI engine configuration realizes the communication interaction between UI engine client and the combine engine.
Further, on above-mentioned basis embodiment illustrated in fig. 5,
The relevant combination process of UI assembly in describing for unified combination, unified combination are described compiler and it is decomposed into UI is described alternately.UI describes alternately by UI engine client executing, is used for determining the external interactive relation of UI assembly on the UI engine client; Unified combination describe compiler will for participate in each mutual UI engine client of unified Combination application compile respectively generation separately independently UI describe alternately.
At first analyze to participate in mutual assembly, for a UI engine client, UI is mutual will comprise in describing execution thereon belong to the UI assembly that this unifies Combination application; Mutual with the Combination application that is executed in combine engine if desired, then also comprise this Combination application.For the UI assembly, also will analyze the client layout, definition is specified in the position during the unified combination of conversion is described, and specifies the UI assembly at the concrete page of client, and/or the particular location in the page.
Concrete unified combination process based on unified combination description, analyze the interactive relation of UI assembly, interaction mechanism is based on event bus, adopt event and operation between the monitor associated component: corresponding UI assembly sends event, be converted to the combine engine message call and be delivered to combine engine, call the flow process of the operation of the receiving port type that is realized by Combination application, carry out related with this operation of this Combination application this event of this UI assembly by monitor; Corresponding Combination application is sent the UI message call, and the event of being converted to is delivered to UI engine client, triggers the flow process of the operation of UI assembly, carries out related with this operation of this UI assembly this event of this Combination application by monitor; Corresponding intermediation by Combination application, realized on the same UI engine client mutual intermediary's flow process between two UI assemblies, be that last UI assembly sends event, be delivered to combine engine by conversion, finally transmitted back UI engine client by Combination application through conversion again, triggered the flow process of the operation of back one UI assembly.Decompose this intermediary's flow process, carry out related by this event that monitor will this last UI assembly with this operation of this back one UI assembly.
After having compiled the mutual description of UI, because unified combination is described in and is based on BPEL in form, unified combination is described compiler and only need wherein be deleted specific to the mutual content of describing of UI and can generate conventional BPEL combination description.Comprise deleting and specify the assembly that is combined for the UI assembly still is the description of Web service, the relevant description of definition is specified in the position that is used to specify UI assembly client layout.Then, if having decomposition to intermediary's flow process when describing alternately at compiling UI, intermediary's flow process is converted between the UI assembly directly mutual on UI engine client, then can also deletes this intermediary's flow process.By such intermediary's flow process is decomposed, the combination process that conventional BPEL combination is described will be simplified.
For each need with the mutual UI assembly of Combination application, unified combination is described compiler and will be produced the UI engine configuration of correspondence and be deployed to UI engine configuration storehouse in the UI engine server, be used for configuration UI engine exposed interface, memory module, data transmission blocks, realize the communication interaction between UI engine client and the combine engine.Based on the UI engine configuration, the UI engine exposed interface of UI engine server will realize the port type that calls of each UI assembly, be used for exposing calling interface for this UI assembly to combine engine at the UI engine server, and receive the UI message call that combine engine is sent, this UI message call is converted to event.For this reason, this calls the binding definition of port type to increase corresponding realization during unified combination description compiler will be described at the UI of this UI assembly, describes for conventional BPEL combination this realization of calling port type is quoted.
The described technical scheme of embodiment for a more clear understanding of the present invention exemplifies explanation below by a Web service and two UI assemblies are made up to the embodiment of the invention; Wherein, Web service is specially YaSearch, and the UI assembly is specially LocalSearch and GoMap, and UI assembly LocalSearch and UI assembly GoMap are executed in same UI engine client, also namely are positioned at same Web client.
The interface of Web service YaSearch is described the port type (portType) that comprises " YaSearchService ", wherein, has a search (Search) operation, realization is to the query function of specified geographic location given content, for example: the cinema in area is set in inquiry, concrete calling interface adopts Simple Object Access Protocol, and (Simple Object Access Protocol is called for short: SOAP) binding.In order in unified Combination application, this Web service YaSearch, UI assembly LocalSearch, UI assembly GoMap to be made up, partner's link type of definition Web service YaSearch is: YaSearch partnerLinkType, partner's link type of this Web service YaSearch comprises a service (Service) role (role), the port type (portType) of service (Service) is YaSearchService, will be realized by this Web service of YaSearch in unified Combination application.It is as follows that the interface of Web service YaSearch is described " YaSearch YaSearchService.WSDL ":
UI assembly LocalSearch is browser end JavaScript user interface program, for the user provides search input frame and the user interface of display list as a result.LocalSearch has three functions: upgrade (update) function, search (search) function, by option (itemSelected) function, wherein, upgrade (update) function and be used for display of search results, search (search) function is used for receiving user's search input, is used for receiving the user to the selection of Search Results by option (itemSelected) function.UI engine client will be called renewal (update) function based on the event that receives.And search for (search) function and will be sent event to UI engine client (Client) after the execution of option (itemSelected) function, wherein, event name (search) and function name (search) is identical.Concrete JavaScript code is as follows:
LocalSearch is described based on the UI assembly of expansion WSDL, and the UI description of generation comprises calls port type LocalSearchPortTypeINVOKE and two port types of receiving port type LocalSearchPortTypeRECEIVE (portType).LocalSearchPortTypeINVOKE corresponding all can be by the function of the LocalSearch UI assembly of UI engine client call, it is the update function, then will comprise the operation (operation) of the renewal (Update) of a correspondence in form, the event of this function call of triggering that its input (input) corresponding UI engine client (Client) receives, and the input parameter of function is identical with the parameter of this event.All can send the function of event to UI engine client the LocalSearchPortTypeRECEIVE correspondence, be search function and itemSelected function, then will comprise the search (Search) of two correspondences and by the operation of option (ItemSelected) (operation), the input (input) of Search and two operations of ItemSelected search (search) event that the and function that sends to UI engine client (Client) of corresponding search and these two functions of itemSelected is of the same name respectively and by option (itemSelected) event in form; Send to the BPEL Combination application that is executed on the combine engine after converting the combine engine message call to by the event that the UI assembly is sent, in fact receiving port type LocalSearchPortTypeRECEIVE will be provided by the BPEL Combination application.Partner's link type of definition UI assembly LocalSearch is: LocalSearchpartnerLinkType, partner's link type of this UI assembly LocalSearch comprises reception (Receive) and calls (Invoke) two roles (role), the port type (portType) that receives (Receive) role is LocalSearchPortTypeRECEIVE, will be realized by the BPEL Combination application in unified Combination application.The port type (portType) that calls (Invoke) role is LocalSearchPortTypeINVOKE, will be realized by UI assembly LocalSearch in unified Combination application.Binding (Binding) part is by supporting JavaScript binding expansion, renewal (Update) operation (operation) of expression LocalSearchPortTypeINVOKE port type (portType) specifically will be upgraded (update) function with JavaScript corresponding, and the search (Search) of LocalSearchPortTypeRECEIVE port type (portType) and by two operations of option (ItemSelected) (operation) respectively with JavaScript search (search) function and corresponding by option (itemSelected) function, be actually the search of the same name with above-mentioned function (search) event that corresponding above-mentioned two functions send to UI engine client (Client) and by option (itemSelected) event.The UI of UI assembly LocalSearch describe specific as follows shown in:
UI assembly GoMap is browser end JavaScript user interface program, and concrete cartographic information is provided.GoMap has demonstration point (showPoint) function, is used for carrying out map according to longitude, latitude and convergent-divergent size and shows.For UI engine client (Client), based on the event that receives, will call demonstration point (showPoint) function.And in the present embodiment, GoMap can not send event to UI engine client (Client).The part JavaScript code of GoMap is as follows:
GoMap is described based on the UI assembly of expansion WSDL, comprises and calls this port type of port type GoMapPortTypeINVOKE (portType).The function of corresponding all GoMap that can be called by UI engine client (Client) of GoMapPortTypeINVOKE, namely show point (showPoint) function, then will comprise the operation (operation) of the demonstration point (ShowPoint) of a correspondence in form, the event of this function call of triggering that input (input) the corresponding UI engine client (Client) of demonstration point operation receives, and the input parameter of function is identical with the parameter of this event.Partner's link type of definition UI assembly GoMap is: GMaps partnerLinkType, comprise that is called (Invoke) role (role), the port type (portType) that calls (Invoke) is GoMapPortTypeINVOKE, will be realized by UI assembly GoMap in unified Combination application.Binding (Binding) part is by supporting JavaScript binding expansion, and expression this port type of GoMapPortTypeINVOKE (portType) specifically will be provided by JavaScript function showPoint.GoMap is described based on the UI assembly of expansion WSDL, and it is as follows that generation UI describes GoMap.WSDL:
Based on expansion BPEL language, Web service YaSearch, UI assembly LocalSearch and UI assembly GoMap are combined as unified Combination application, shown in the unified combination of generation is described below:
Specify in the definition position, and container (containers) definition expression participates in the UI engine client (Client) of unified Combination application, specifies its page layout by the htmlLayoutURL attribute.UI assembly (uiComponent) attribute specifies whether the assembly that is combined is the UI assembly.For the UI assembly, container (container) attribute is specified the UI engine client (Client) at this UI assembly place, and the uiLayoutPlaceHolder attribute is specified the concrete page location of this UI assembly in this UI engine client (Client).In the present embodiment, the unified Combination application of container (containers) definition expression comprises a UI engine of Master client (Client), and specifying its page layout by the htmlLayoutURL attribute is masterLayout.html.In partner's link (partnerLinks) definition, YaSearch, LocalSearch and GoMap are three partner's links (partnerLink).UI assembly LocalSearch is assigned to main frame (Master) UI engine client (Client) by container (container) attribute, it is bpel4ui_search that the uiLayoutPlaceHolder attribute is then specified its concrete page location in this UI engine client (Client), bpel4ui_search is layout units, for example by<div id=" bpel4ui_search "〉the HTML div element of definition.UI assembly GoMap is assigned to main frame (Master) UI engine client by the container attribute, it is bpel4ui_gmaps that the uiLayoutPlaceHolder attribute is then specified its concrete page location in this UI engine client (Client), bpel4ui_gmaps is layout units, for example by<div id=" bpel4ui_gmaps "〉the HTML div element of definition.
Concrete combination process comprises the steps:
Step 11, BPEL Combination application FindIt receive the message call to the Search operation of this partner's link of UI assembly LocalSearch, corresponding to the search input parameter of user at the interface by the receive activity;
Step 12, be converted to the YaSearchRequest variable by the assign activity;
Step 13, with the YaSearchRequest variable as input, the Search operation by this partner of invoke activity called Web service YaSearch link obtains Search Results and stores the YaSearchResponse variable into;
Step 14, by the assign activity YaSearchResponse variable is converted to the UpdateLocalSearch variable;
Step 15, with the UpdateLocalSearch variable as input, call the Update operation of this partner of UI assembly LocalSearch link by the invoke activity, be implemented in the Search Results that shows Web service YaSearch among the LocalSearch;
Step 16, BPEL Combination application FindIt receive the message call to the ItemSelected operation of this partner's link of UI assembly LocalSearch by the pick activity, Search Results are selected in the interface corresponding to the user;
Step 17, be converted to the ShowPointGMaps variable by the assign activity;
Step 18, with the ShowPointGMaps variable as input, call the ShowPoint operation of this partner of UI assembly GoMaps link by the invoke activity, namely in the map of GoMaps, show selecteed place.
WSDL based on YaSearch describes, and the UI of LocalSearch and GoMap describes, and unified combination description compiler is described above-mentioned unified combination and compiled.
At first analyze to participate in mutual assembly, shown in the mutual component definition of describing of UI, in the present embodiment, will comprise unified combination describe in by LocalSearch and two UI assemblies of GoMap of uiComponent attribute appointment.In addition, in order to be made up by unified Combination application, also will be mutual with BPEL Combination application FindIt.For the UI assembly, also will analyze the client layout, definition is specified in the position during the unified combination of conversion is described, and the uiLayoutPlaceHolder attribute is transformed into component definition, specifies the concrete page location of this UI assembly in UI engine client.In the present embodiment, UI assembly LocalSearch is positioned at the bpel4ui_search layout units of Master UI engine client, and UI assembly GoMap is positioned at the bpel4ui_gmaps layout units of Master UI engine client.
Analyze the interactive relation of UI assembly then, interaction mechanism adopts event and operation between the monitor associated component based on event bus.Shown in the mutual monitor definition of describing of UI, the mutual description of present embodiment UI specifically comprises three monitors: first monitor (l1), second monitor (l2), the 3rd monitor (l3).
First monitor: in fact step 11 represents that UI assembly LocalSearch will send the search event in the combination process, UI engine client is delivered to the UI engine server with this event, be converted to the combine engine message call by the UI engine server and send to the BPEL Combination application FindIt that is executed in combine engine, call the Search operation of this port type of LocalSearchPortTypeRECEIVE (portType) of being realized by FindIt.Then corresponding have first monitor, with search event and the Search of BPEL Combination application FindIt of UI assembly LocalSearch operate carry out related;
Second monitor: in fact step 15 represents that BPEL Combination application FindIt will send the UI message call in the combination process, calls the Update operation of the UI assembly LocalSearch of the UI engine exposed interface realization on the UI engine server.The UI engine server is converted to the update event with this UI message call and is delivered to UI engine client, triggers the Update operation of UI assembly LocalSearch, i.e. the update function.Then corresponding have second monitor, with update event and the Update of UI assembly LocalSearch of BPEL Combination application FindIt operate carry out related;
The 3rd monitor: in fact step 16, step 17, step 18 represent the intermediary's flow process by BPEL Combination application FindIt in the combination process, between UI assembly LocalSearch and the UI assembly GoMaps alternately.Because these two UI assemblies are positioned at same UI engine client, the intermediary's flow process that then can decompose FindIt, be expressed as between these two UI assemblies directly mutual in UI engine client in describing in that UI is mutual, be that UI assembly LocalSearch will send the itemSelected event, the ShowPoint that is triggered UI assembly GoMaps by UI engine client operates, i.e. the showPoint function.Then corresponding have the 3rd monitor, with itemSelected event and the ShowPoint of UI assembly GoMap of UI assembly LocalSearch operate carry out related.By such intermediary's flow process is decomposed, realized simplifying the combination process that conventional BPEL combination is described.Shown in the UI that generates is described below alternately:
After having compiled the mutual description of UI, because unified combination is described in and is based on the BPEL language in form, unified combination is described compiler and only need wherein be deleted specific to the mutual content of describing of UI and can obtain conventional BPEL combination description.At first deletion is used to specify the content of UI assembly client layout, comprises the containers definition, and the uiComponent in the partnerLinks definition, container, attributes such as uiLayoutPlaceHolder.Then, will delete in the direct mutual corresponding intermediary flow process of UI engine client between the UI assembly in being converted into that UI is mutual and describing.In the present embodiment, i.e. step 16, step 17, step 18 in the combination process.Through after such adjustment, no longer relate to UI assembly GoMaps in the combination process, then delete its corresponding partnerLink definition.The conventional BPEL combination of present embodiment is described below:
For each need with the mutual UI assembly of BPEL Combination application FindIt, unified combination is described compiler and will be produced the UI engine configuration of correspondence and be deployed to UI engine configuration storehouse in the UI engine server, be used for configuration UI engine exposed interface, memory module, data transmission blocks, realize the communication interaction between UI engine client and the combine engine.In the present embodiment, UI assembly LocalSearch need be mutual with FindIt.Based on the UI engine configuration, the UI engine exposed interface of UI engine server will realize this port type of LocalSearchPortTypeINVOKE (portType) of UI assembly LocalSearch by soap protocol, be used for exposing calling interface for UI assembly LocalSearch to combine engine at the UI engine server, receive the UI message call that calls the Update operation that combine engine is sent, this UI message call is converted to the update event.In essence, this port type of LocalSearchPortTypeINVOKE (portType) corresponding all can be by the function of the UI assembly LocalSearch of UI engine client call, i.e. update function.Corresponding, unified combination description compiler will be described the following SOAP binding definition of increase among the LocalSearch.WSDL at UI, be used for conventional BPEL combination description the realization of this port type (portType) is quoted.
The UI assembly arrives the interaction flow following steps of combine engine:
Step 21, UI assembly LocalSearch send the search event to UI engine client, the search input of event argument respective user;
Step 22, foundation first monitor, UI engine client is converted to the UI interaction message with the search event, sends to the UI engine server.Comprise the search event in the UI interaction message, the action name Search of the title FindIt of the BPEL Combination application that call and UI assembly LocalSearch;
Data transmission blocks in step 23, the UI engine server is converted to the combine engine message call with this UI interaction message, send to combine engine, call the Search operation of this port type of LocalSearchPortTypeRECEIVE (portType) of the UI assembly LocalSearch that is realized by BPEL Combination application FindIt.
Combine engine arrives the interaction flow following steps of UI assembly:
Step 31, BPEL Combination application FindIt send the UI message call, call the Update operation of the UI assembly LocalSearch that UI engine exposed interface realizes on the UI engine server.This UI message call comprises that the name of BPEL Combination application is called FindIt, and the name of UI assembly is called LocalSearch, and the action name of UI assembly LocalSearch is Update;
The UI engine exposed interface of step 32, UI engine server is converted to event with this UI message call, and event argument is identical with the parameter of UI message call, and event name is called update, and the sender is BPEL Combination application FindIt.This update event is stored in memory module;
Step 33, UI engine client are periodically upgraded to UI engine server query event;
The data transmission blocks of step 34, UI engine server obtains the update event from memory module, then this update event is converted to the UI interaction message and sends to UI engine client, comprise the update event in the UI interaction message, event title update, the title FindIt of sender BPEL Combination application;
Step 35, UI engine client receive this UI interaction message, the update event that comprises according to this UI interaction message, event title update, the title FindIt of sender BPEL Combination application, according to second monitor, UI engine client triggers the Update operation of UI assembly LocalSearch, i.e. update function, and the input parameter of function is identical with the parameter of update event.
The UI assembly is to the interaction flow following steps of UI assembly:
Step 41, UI assembly LocalSearch send the itemSelected event to UI engine client, the selection that the event argument respective user is done in Search Results;
Step 42, receive the itemSelected event that UI assembly LocalSearch sends, according to the 3rd monitor l3, UI engine client triggers the ShowPoint operation of UI assembly GoMap, i.e. showPoint function, and the input parameter of function is identical with the parameter of itemSelected event.
The described technical scheme of embodiment for a more clear understanding of the present invention exemplifies explanation below by a Web service and two UI assemblies are made up to the embodiment of the invention; The difference of the embodiment that makes up with an above-mentioned Web service and two UI assemblies is, UI assembly LocalSearch is executed in different UI engine clients respectively with UI assembly GoMap, namely be distributed in two Web clients, can realize a plurality of users' collaborative work.Therefore, the WSDL of Web service YaSearch describes, the UI of UI assembly LocalSearch and GoMap describes, and the embodiment that the concrete combination process step described of the unified combination of unified Combination application and an above-mentioned Web service and two UI assemblies make up is identical.And because have two UI engine clients, definition is specified in the position that its unified combination of unifying Combination application is described, and compilation process and implementation there are differences.Below the main content of describing the embodiment facial difference that present embodiment and an above-mentioned Web service and two UI assemblies make up, there is not the content representation of description similar with the embodiment that two UI assemblies make up to an above-mentioned Web service, can only do making brief of the introduction here specifically with reference to an above-mentioned Web service and two embodiment that the UI assembly makes up.In addition, suppose that UI assembly LocalSearch is executed in UI engine client host (Master), and UI assembly GoMap is executed in UI engine client slave (Slave).
In the present embodiment, the unified Combination application of container (containers) definition expression comprises main frame (Master) and two UI engines of slave (Slave) client, and specifying their page layout respectively by the htmlLayoutURL attribute is masterLayout.html and slaveLayout.html.In the partnerLinks definition, UI assembly LocalSearch is assigned to main frame (Master) UI engine client by the container attribute, and it is bpel4ui_search that the uiLayoutPlaceHolder attribute is then specified its concrete page location in this UI engine client.UI assembly GoMap is assigned to slave (Slave) UI engine client by the container attribute, and it is bpel4ui_gmaps that the uiLayoutPlaceHolder attribute is then specified its concrete page location in this UI engine client.By the UI assembly being assigned to different UI engine clients, can realize that the user interface that will unify Combination application carries out distribution.The position that unified combination is described specifies the definition relevant portion as follows.
The embodiment that the concrete combination process step part that unified combination is described and an above-mentioned Web service and two UI assemblies make up is identical, does not repeat them here, and represents with ellipsis in code.
Because UI assembly LocalSearch and GoMap are executed in UI engine client host (Master) and slave (Slave) respectively, unified combination is described compiler and will be respectively these two UI engine clients compilings and generate that UI are mutual to be described and the 2nd UI describes alternately.
At first analyze and participate in mutual assembly, shown in the mutual component definition of describing of UI, in the present embodiment, the mutual description of the one UI will comprise UI assembly LocalSearch and BPEL Combination application FindIt, specify UI assembly LocalSearch to be positioned at the bpel4ui_search layout units of the page of UI engine client host (Master).The mutual description of the 2nd UI will comprise UI assembly GoMap and BPEL Combination application FindIt, and UI assembly GoMap is positioned at the bpel4ui_gmaps layout units of the page of UI engine client slave (Slave).Two UI assemblies are mutual in separately UI engine client and combine engine respectively.
Analyze the interactive relation of UI assembly then, the embodiment that makes up with an above-mentioned Web service and two UI assemblies is different, and UI assembly LocalSearch and GoMap can directly not carry out in same UI engine client alternately.Shown in the mutual monitor definition of describing of UI, the mutual description of present embodiment the one UI comprises three monitors: first monitor (l1), second monitor (l2), the 3rd monitor (l3).
First monitor: the embodiment that makes up with an above-mentioned Web service and two UI assemblies is identical, does not repeat them here;
Second monitor: the embodiment that makes up with an above-mentioned Web service and two UI assemblies is identical, does not repeat them here;
The 3rd monitor: in fact above-mentioned steps 16 represents that UI assembly LocalSearch will send the itemSelected event in the combination process, UI engine client is delivered to the UI engine server with this event, be converted to the combine engine message call by the UI engine server and send to the BPEL Combination application FindIt that is executed in combine engine, call the ItemSelected operation of this portType of LocalSearchPortTypeRECEIVE that is realized by FindIt.Then corresponding have the 3rd monitor, with itemSelected event and the ItemSelected of BPEL Combination application FindIt of UI assembly LocalSearch operate carry out related;
The mutual description of the 2nd UI in the present embodiment comprises a monitor: the 4th monitor (la); The 4th monitor: in fact above-mentioned steps 18 represents that BPEL Combination application FindIt will send the UI message call in the combination process, calls the ShowPoint operation of the UI assembly GoMaps of the UI engine exposed interface realization on the UI engine server.The UI engine server is converted to the showPoint event with this UI message call and is delivered to UI engine client, triggers the ShowPoint operation of UI assembly GoMaps, i.e. the showPoint function.Then corresponding have the 4th monitor, with showPoint event and the ShowPoint of UI assembly GoMaps of BPEL Combination application FindIt operate carry out related;
Be different from an above-mentioned Web service and two embodiment that the UI assembly makes up, in the present embodiment, UI assembly LocalSearch and GoMap can directly not carry out alternately in same UI engine client, therefore above-mentioned intermediary flow process is the deletion that can not be decomposed of step 16, step 17, step 18 in the present embodiment, and still comprises UI assembly GoMaps in the combination process.The conventional BPEL combination of present embodiment is described below:
In the present embodiment, UI assembly LocalSearch and GoMap are mutual with BPEL Combination application FindIt by UI engine client host (Master) and slave (Slave) respectively.Unified combination is described compiler and will be produced the UI engine configuration of correspondence and be deployed to UI engine configuration storehouse in the UI engine server, be used for configuration UI engine exposed interface, memory module, data transmission blocks, realize between main frame (Master) and the combine engine, and the communication interaction between slave (Slave) and the combine engine.
Based on the UI engine configuration, the UI engine exposed interface of UI engine server will realize this port type of LocalSearchPortTypeINVOKE (portType) of UI assembly LocalSearch by soap protocol, be used for exposing calling interface for UI assembly LocalSearch to combine engine at the UI engine server, receive the UI message call that calls the Update operation that combine engine is sent, this UI message call is converted to the update event.Corresponding, unified combination description compiler will be described the following SOAP binding definition 1 of increase among the LocalSearch.WSDL at UI, be used for conventional BPEL combination description the realization of this port type (portType) is quoted.
In the present embodiment, the UI engine exposed interface of UI engine server also will realize this port type of GoMapPortTypeINVOKE (portType) of UI assembly GoMap by soap protocol, be used for exposing calling interface for UI assembly GoMap to combine engine at the UI engine server, receive the UI message call that calls the ShowPoint operation that combine engine is sent, this UI message call is converted to the showPoint event.Corresponding, unified combination description compiler will be described the following SOAP binding definition 2 of increase among the GoMap.WSDL at UI, be used for conventional BPEL combination description the realization of this port type (portType) is quoted.
UI assembly LocalSearch arrives the interaction flow following steps of combine engine:
Step 51, UI assembly LocalSearch send search or itemSelected event to UI engine client host (Master);
Step 52, foundation first monitor or the 3rd monitor, main frame (Master) is converted to the UI interaction message with search or itemSelected event, sends to the UI engine server.Comprise search or itemSelected event in the UI interaction message, action name Search or the ItemSelected of the title FindIt of the BPEL Combination application that call and UI assembly LocalSearch;
Data transmission blocks in step 53, the UI engine server is converted to the combine engine message call with this UI interaction message, send to combine engine, call Search or the ItemSelected operation of this port type of LocalSearchPortTypeRECEIVE (portType) of the UI assembly LocalSearch that is realized by BPEL Combination application FindIt.
" combine engine is to the interaction flow of UI assembly " is identical among the embodiment that combine engine makes up to the interaction flow of UI assembly LocalSearch and an above-mentioned Web service and two UI assemblies, does not repeat them here.
Combine engine arrives the interaction flow following steps of UI assembly GoMap:
Step 61, BPEL Combination application FindIt send the UI message call, call the ShowPoint operation of the UI assembly GoMap that UI engine exposed interface realizes on the UI engine server.This UI message call comprises the title FindIt of BPEL Combination application, the title GoMap of UI assembly, the action name ShowPoint of UI assembly GoMap;
The UI engine exposed interface of step 62, UI engine server is converted to event with this UI message call, and event argument is identical with the parameter of UI message call, and event name is called showPoint, and the sender is BPEL Combination application FindIt.This showPoint event is stored in memory module;
Step 63, UI engine client slave (Slave) periodically upgrade to UI engine server query event;
The data transmission blocks of step 64, UI engine server obtains the showPoint event from memory module, then this showPoint event is converted to the UI interaction message and sends to slave (Slave), comprise the showPoint event in the UI interaction message, event title showPoint, the title FindIt of sender BPEL Combination application;
Step 65, UI engine client slave (Slave) receive this UI interaction message, the showPoint event that comprises according to this UI interaction message, event title showPoint, the title FindIt of sender BPEL Combination application, according to the 4th monitor, slave (Slave) triggers the ShowPoint operation of UI assembly GoMap, i.e. showPoint function, and the input parameter of function is identical with the parameter of showPoint event.
Fig. 6 serves the structural representation that combination realizes system embodiment for the present invention, and as shown in Figure 6, present embodiment comprises: UI engine client 601, UI engine server 602, combine engine 603;
The service combination realization system that the embodiment of the invention provides, generate the UI interaction message by UI engine client 601 according to the event that the UI assembly produces, UI engine server 602 generates the combine engine message call according to this UI interaction message, because the combine engine message call comprises the title of Combination application and the action name of this UI assembly, thereby make combine engine 603 can call the operation of this UI assembly that this Combination application realizes according to the action name of the title of Combination application and this UI assembly, realized Combination application and UI assembly alternately.The UI assembly is that the Web that has user interface uses, when the Web application and development, owing to realized the combined treatment of the Web application that has user interface be need not to develop separately the user interface part again, thereby improved the efficient of Web application and development by combine engine.
Further, on above-mentioned basis embodiment illustrated in fig. 6, also comprise: the Combination application of carrying out on the described combine engine also is used for sending the UI message call to the UI engine server, to call the operation of the UI assembly that described UI engine server realizes;
Described UI engine server also is used for obtaining described UI message call, and described UI message call is converted to the UI interaction message;
Described UI engine client also is used for obtaining described UI interaction message, triggers the operation of described UI assembly according to described UI interaction message, realizes calling the function of described UI assembly correspondence.
Fig. 7 is the structural representation of the unified combination description of the present invention compiler embodiment, and as shown in Figure 7, present embodiment comprises: unified processing module 71, first deployment module 72, second deployment module 73, the 3rd deployment module 74;
The 3rd deployment module 74, the UI engine configuration that is used for generating is deployed to the UI engine server, makes based on described UI engine configuration described UI engine server is configured, and realizes the communication interaction between described UI engine client and the described combine engine.
Compiler is described in the unified combination that the embodiment of the invention provides, describe based on the WSDL description of Web service and the UI of UI assembly, generating UI respectively by the unified combination description of unified processing module 71 compilings describes alternately, conventional BPEL combination is described and the UI engine configuration, by first deployment module 72 the mutual UI that is deployed to UI engine client that describes of the UI that generates is described alternately by the storehouse, the conventional BPEL combination description that will generate by second deployment module 73 is deployed to combine engine, the UI engine configuration that generates is deployed to the UI engine configuration storehouse of UI engine server by the 3rd deployment module 74.Subsequently, UI engine client is carried out based on mutual description of this UI, combine engine is described based on this routine BPEL combination and is carried out the Combination application execution, the configuration that the UI engine server then is correlated with based on this UI engine configuration realizes the communication interaction between UI engine client and the combine engine.
Fig. 8 is the structural representation of embodiment of the invention institute applicable system framework, as shown in Figure 8, comprise following main functional modules and/or related entities: Web service 81, UI assembly 82, compiler 83, UI engine client 84, UI engine server 85, combine engine 86 are described in unified combination;
Wherein, Web service 81 standard compliant Web Services standards adopt standard WSDL (Web Service Description Language) language to carry out interface and describe.Usually adopt SOAP (SimpleObject Access Protocol) agreement as the interface interchange bearing protocol.
UI assembly 82 is specifically as follows the dynamic script program, for example: based on the JavaScript language for the Web with user interface uses; UI assembly 82 can be demonstrated in the Web of routine client, for example: as a dynamic part in the html web page; UI assembly 82 moves at the UI container of UI engine client 84; Carrying out to change interface content or receive that the user imports etc. by function can be so that UI assembly 82 internal states changes; UI assembly 82 can produce event and send to event bus according to state variation.UI assembly 82 also can receive from the event of event bus and call with trigger action, carries out corresponding internal state and changes, for example: call correlation function with the display interface content etc.The embodiment of the invention can be described by the UI assembly of expansion WSDL, and calls port type and/or receiving port type (portType) for UI assembly 82 defines.Call the function of corresponding all the UI assemblies 82 that can be called by UI engine client 84 of port type, each function will correspond to this operation (operation) of calling port type, the event of this function call of triggering that the corresponding UI engine of its input (input) client 84 receives, and the input parameter of function is identical with the parameter of this event.Calling port type will be provided by UI assembly 82.All can send the function of the UI assembly 82 of event to UI engine client 84 receiving port type correspondence, each function corresponds to an operation (operation) of this receiving port type equally, the event that its input (input) respective function is sent to UI engine client 84, event are can and function of the same name.The event that UI assembly 82 sends can both be sent to combine engine 86 by conversion, and in fact the receiving port type will be provided by the Combination application that is executed on the combine engine.In order to make up based on the UI assembly 82 of BPEL, be this UI assembly 82 definition partner's link types (partnerLinkType), this partner's link type comprises that a correspondence calls the role (role) of the role of port type (role) and/or a corresponding receiving port type.The definition script binds to support the script interface to UI assembly 82 to describe in WSDL describes, and in this script binding, the corresponding relation of the script function of the operation of port type and/or receiving port type and UI assembly 82 is called in definition.For the receiving port type, be actually the corresponding relation that operation and script function send event.The UI assembly is called UI based on the interface description of expanding the WSDL form to be described.For the abstractdesription part in the UI description, comprise data type (data type), message (message), port type definition such as (porttype), adopt standard WSDL mechanism fully, (Extensible Markup Language, be called for short: XML) structure is used for abstract port type is tied to concrete script function just to increase corresponding extend markup language.
Extension standards BPEL of the present invention is to support the unified combination to Web service and UI assembly, and the final Combination application that produces is called unified Combination application.Be called unified combination description based on expansion BPEL form to being combined into line description between the assembly (Web service and/or UI assembly).In order to make up the UI assembly, specifying the assembly that is combined during unified combination is described is UI assembly or Web service, for example with the form of attribute.For the UI assembly, unified combination is described and also will be carried out position appointment definition, specifies UI engine client 84 and the concrete page location in this UI engine client 84 at this UI assembly place.Specify definition by such position, can realize the distribution of user interface, be conducive to a plurality of users' collaborative work.Because being described to UI by the WSDL expansion, describes by the UI assembly, its function is mapped as operation (operation), in unified combination is described, based on its partner's link type definition, describe compatible mode with conventional BPEL combination unified combination process is described.
The effect that compiler 83 is described in unified combination is the unified combination of unified Combination application to be described resolve, resolving is described based on the WSDL of Web service, the UI of UI assembly describes, conversion is described in unified combination generated relevant several entities, in UI engine client 84, carry out on UI engine server 85 and the combine engine 86 respectively:
For the relevant combination process of UI assembly in the unified combination description, unified combination description compiler 83 is decomposed into UI with it and describes alternately, carried out by UI engine client 84, be used for to determine the interactive relation between a plurality of UI assemblies 82 on the UI engine client 84, and the interactive relation between UI assembly 82 and the UI engine server 85 on the UI engine client 84.Interaction mechanism is based on event bus, and namely event bus receives certain event of previous entity, triggers certain operation of a back entity then, realizes external mutual of UI assembly.Unified combination describe compiler 83 will for participate in each mutual UI engine client 84 of unified Combination application compile respectively generation separately independently UI describe alternately.The mutual description at first of UI is passed to UI engine server 85 together with relevant UI engine configuration, obtained from this UI engine server 85 by the UI engine client 84 of correspondence again.
For each need with the mutual UI assembly 82 of Combination application, unified combination description compiler 83 will produce corresponding UI engine configuration and be deployed in the UI engine server 85, be used for configuration UI engine exposed interface, memory module, data transmission blocks realizes the communication interaction between UI engine client 84 and the combine engine 86.
Unified combination is described compiler 83 and will be unified to make up in the description and delete specific to the mutual content of describing of UI, produces the BPEL combinational logic of a routine, is called conventional BPEL combination and describes, and carries out in combine engine.This routine BPEL makes up describes the Web service of having represented in the former unified combination description, and the combination interactive relation between the UI engine exposed interface of UI assembly correspondence in UI engine server 85.
UI engine client 84 is for handling the Web client of event, for example: carried out the Web browser of script plug-in unit, can realize the instantiation of UI assembly, carried out interface content to represent in html page; UI engine client 84 provides the UI container to move for UI assembly 82 as running environment.The UI of UI engine client 84 describes the storehouse alternately and describes alternately for storage UI.UI engine client 84 is carried out according to mutual description of UI, realizes external mutual of UI assembly.The communication interaction of UI assembly is described based on UI alternately based on the event bus mode, carries out relevant monitor in event bus, carries out related with the operation of another one UI assembly or Web service the event of a UI assembly or Web service generation.UI engine client 84 is responsible for triggering the operation of UI assembly, namely calls the function of UI assembly correspondence.UI engine client 84 is undertaken by interface module and UI engine server 85 alternately.
UI engine server 85 is realized the UI assemblies and is executed in communication interaction between the Combination application of combine engine 86, send data to the interface module of UI engine client 84 by data transmission blocks, and reception is from the data of UI engine client 84, send data for the UI assembly to Combination application then, finally realize the correct exchange of message data.Send to the data of UI assembly by the memory module buffer memory.To be the UI assembly to combine engine 86 expose calling interfaces and receive calls data by UI engine exposed interface.The UI engine configuration storehouse of UI engine server 85 is used for storage UI engine configuration.
Combine engine 86 is specifically as follows conventional BPEL engine, execution is described the conventional BPEL combination of decomposing generation by unified combination and is described, namely carry out Combination application, realize mutual between Web service and the Web service, and between Web service and the UI assembly alternately.
The invention described above embodiment, simultaneously composite service logic and user interface when carrying out the Web application and development, and finally the user interface of unified Combination application need not manual exploitation, the user interface of using based on the Web that is combined combines fully, realize reusing of service logic and user interface, greatly improved the efficient of Web application and development; In addition, by the UI assembly being assigned to a plurality of different pages, and the diverse location in the page, can realize that the user interface that will unify Combination application is distributed to a plurality of Web clients, is conducive to a plurality of users' collaborative work.
The those skilled in the art can be well understood to, and is the convenience described and succinct, and the concrete course of work of the system of foregoing description, equipment, module and unit can not repeat them here with reference to the corresponding process among the preceding method embodiment.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-described embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (10)
1. a service groups is compiled in collaboration with the method for translating, and it is characterized in that, comprising:
Describe based on the WSDL description of Web service and the UI of UI assembly, the unification combination is described compiler unification combination description is compiled, and generates UI and describes, generates conventional BPEL combination description alternately and generate the UI engine configuration;
Unified combination is described compiler mutual description of the UI that generates is deployed to UI engine client, and described UI engine client is carried out based on mutual description of described UI;
The conventional BPEL combination that unified combination description compiler will generate is described and is deployed to combine engine, described combine engine is described based on described conventional BPEL combination carried out the Combination application execution;
Unified combination is described compiler the UI engine configuration that generates is deployed on the UI engine server, and described UI engine server is configured based on described UI engine configuration, realizes the communication interaction between described UI engine client and the described combine engine.
2. method according to claim 1 is characterized in that, also comprises: port type and/or receiving port type are called in definition in described UI describes;
Described call port type corresponding all can be by the function of the described UI assembly of described UI engine client call, each described can be by the corresponding described operation of calling port type of the function of the described UI assembly of described UI engine client call, each described can by the triggering that the corresponding described UI engine client of the input of the function of the described UI assembly of described UI engine client call receives is described can be by the event of the function call of the described UI assembly of described UI engine client call, and described can be identical with the parameter of described event by the input parameter of the function of the described UI assembly of described UI engine client call;
All can send the function of the described UI assembly of event to described UI engine client described receiving port type correspondence, each described operation of the corresponding described receiving port type of function from the described UI assembly of event to described UI engine client that can send, the input of described operation is corresponding described can send the event that the function of the described UI assembly of event sends to described UI engine client to described UI engine client.
3. method according to claim 2 is characterized in that, also comprises:
The definition script binds to support the script interface to described UI assembly to describe in described UI describes;
The corresponding relation of the script function of the described operation of calling port type and/or receiving port type of definition and described UI assembly in the binding of described script.
4. method according to claim 1 is characterized in that, also comprises:
Specifying the assembly that is combined in described unified combination is described is UI assembly or Web service; And/or,
Carry out the position and specify definition in described unified combination is described, described position specifies definition to specify UI engine client and the concrete page location in described UI engine client at described UI assembly place; And/or,
Describing compatible mode based on the definition of partner's link type with conventional BPEL combination in described unified combination is described is described unified combination process.
5. method according to claim 1 is characterized in that, the mutual description of described generation UI comprises:
Analysis is executed in the UI assembly that belongs to unified Combination application on the described UI engine client, generates the UI that comprises described UI assembly and describes alternately; And/or,
Analyzing described UI engine client needs mutual Combination application, generates the UI that comprises described Combination application and describes alternately.
6. method according to claim 1 is characterized in that, the mutual description of described generation UI comprises:
Based on the unified combination process that described unified combination is described, analyze the interactive relation of described UI assembly, based on event bus, event and operation in the mutual description of described UI between the definition monitor associated component.
7. method according to claim 6 is characterized in that, event and operation between the described definition monitor associated component comprise:
Corresponding UI assembly in the described unified combination process is sent event to be converted to the combine engine message call and to be delivered to described combine engine, call the flow process of the operation of the receiving port type that is realized by described Combination application, the definition monitor carries out related with the described operation of described Combination application the described event that described UI assembly sends in the mutual description of described UI; And/or,
Send the UI message call for corresponding described Combination application in the described unified combination process, the event of being converted to is delivered to described UI engine client, trigger the flow process of the operation of UI assembly, in the mutual description of described UI, the definition monitor carries out related with the described operation of described UI assembly the described event of described Combination application; And/or,
Send event for corresponding last UI assembly in the described unified combination process, be delivered to described combine engine by conversion, finally transmitted back described UI engine client by described Combination application through conversion again, trigger intermediary's flow process of the operation of back one UI assembly, in the mutual description of described UI, the definition monitor carries out related with the described operation of described back one UI assembly the described event that described last UI assembly sends.
8. method according to claim 7 is characterized in that, the conventional BPEL combination of described generation is described and comprised:
Delete the content of describing alternately specific to described UI in the described unified combination description, generate described conventional BPEL combination and describe.
9. method according to claim 2 is characterized in that, describedly described UI engine server is configured based on described UI engine configuration comprise:
Described UI engine server is realized the described port type that calls of described UI assembly, be that described UI assembly exposes calling interface to described combine engine in described UI engine server, and receive the UI message call that described combine engine is sent, described UI message call is converted to event;
Compiler is described in unified combination increases the described binding definition of calling port type that corresponding described UI engine server is realized described UI assembly in described UI describes.
10. compiler is described in a unified combination, it is characterized in that, comprising:
Unified processing module is used for describing based on the WSDL description of Web service and the UI of UI assembly, unified combination is described compiling, and generation UI describes, generates conventional BPEL combination alternately and describes and generate the UI engine configuration;
First deployment module, the mutual description of UI that is used for generating is deployed to UI engine client, and described UI engine client is carried out based on mutual description of described UI;
Second deployment module, the conventional BPEL combination that is used for generating is described and is deployed to combine engine, makes described combine engine carry out Combination application based on described conventional BPEL combination description and carries out;
The 3rd deployment module, the UI engine configuration that is used for generating is deployed to the UI engine server, and described UI engine server is configured based on described UI engine configuration, realizes the communication interaction between described UI engine client and the described combine engine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010260782 CN102158516B (en) | 2010-08-19 | 2010-08-19 | Service composition realization method compiler |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010260782 CN102158516B (en) | 2010-08-19 | 2010-08-19 | Service composition realization method compiler |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102158516A CN102158516A (en) | 2011-08-17 |
CN102158516B true CN102158516B (en) | 2013-08-07 |
Family
ID=44439696
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010260782 Expired - Fee Related CN102158516B (en) | 2010-08-19 | 2010-08-19 | Service composition realization method compiler |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102158516B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130091197A1 (en) | 2011-10-11 | 2013-04-11 | Microsoft Corporation | Mobile device as a local server |
WO2013055973A1 (en) * | 2011-10-11 | 2013-04-18 | Microsoft Corporation | Event service for local client applications through local server |
CN102685195B (en) * | 2011-12-20 | 2016-07-06 | 中兴通讯股份有限公司 | Application service combined method, Apparatus and system |
US9600351B2 (en) | 2012-12-14 | 2017-03-21 | Microsoft Technology Licensing, Llc | Inversion-of-control component service models for virtual environments |
CN107888631A (en) * | 2016-09-28 | 2018-04-06 | 北京京东尚科信息技术有限公司 | A kind of interface interchange method and apparatus of configurable combination |
CN108733353B (en) * | 2017-04-21 | 2023-08-08 | 中兴通讯股份有限公司 | Interface construction method and device |
CN109150677B (en) * | 2017-06-19 | 2021-06-08 | 阿里巴巴集团控股有限公司 | Cross-domain access processing method and device and electronic equipment |
CN107402766B (en) * | 2017-07-31 | 2020-08-04 | 武汉斗鱼网络科技有限公司 | Page layout management method and device |
CN111124348B (en) * | 2019-12-03 | 2023-12-05 | 光禹莱特数字科技(上海)有限公司 | Method and device for generating interaction engine cluster |
US11681508B2 (en) * | 2020-08-24 | 2023-06-20 | Cisco Technology, Inc. | Source code analysis to map analysis perspectives to events |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1456972A (en) * | 2003-05-15 | 2003-11-19 | 清华大学 | Webpage browsing method for embedded facilities |
CN1805345A (en) * | 2005-01-12 | 2006-07-19 | 北京航空航天大学 | Web service work flow processor |
CN101605147A (en) * | 2009-01-08 | 2009-12-16 | 北京邮电大学 | A kind of multimedia conference system and method |
JP2009294863A (en) * | 2008-06-04 | 2009-12-17 | Nippon Telegr & Teleph Corp <Ntt> | Event service distribution system, event service distribution device, and event service distribution method |
CN101741850A (en) * | 2009-12-25 | 2010-06-16 | 北京邮电大学 | Multitask concurrent executive system and method for hybrid network service |
-
2010
- 2010-08-19 CN CN 201010260782 patent/CN102158516B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1456972A (en) * | 2003-05-15 | 2003-11-19 | 清华大学 | Webpage browsing method for embedded facilities |
CN1805345A (en) * | 2005-01-12 | 2006-07-19 | 北京航空航天大学 | Web service work flow processor |
JP2009294863A (en) * | 2008-06-04 | 2009-12-17 | Nippon Telegr & Teleph Corp <Ntt> | Event service distribution system, event service distribution device, and event service distribution method |
CN101605147A (en) * | 2009-01-08 | 2009-12-16 | 北京邮电大学 | A kind of multimedia conference system and method |
CN101741850A (en) * | 2009-12-25 | 2010-06-16 | 北京邮电大学 | Multitask concurrent executive system and method for hybrid network service |
Also Published As
Publication number | Publication date |
---|---|
CN102158516A (en) | 2011-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102158516B (en) | Service composition realization method compiler | |
CA2604896C (en) | System and method of data source detection | |
Vaupel et al. | Model-driven development of mobile applications for Android and iOS supporting role-based app variability | |
CN101291337B (en) | Grid resource management system and method | |
CN103645908B (en) | Full life circle development achievement system of intemetware | |
AU2012362829A1 (en) | Cloud-edge topologies | |
Katasonov et al. | Towards ontology-driven development of applications for smart environments | |
CN104484216A (en) | Method and device for generating service interface document and on-line test tool | |
CN101185303A (en) | System and method for creating a mapping document for binding messages between an application and an associated backend server | |
CN113467972B (en) | Communication interface construction method and device, computer equipment and storage medium | |
CN103390018A (en) | Web service data modeling and searching method based on SDD (service data description) | |
CN101533262A (en) | Method for realizing associative simulation of machine and control system based on service | |
CN104391701A (en) | Method for developing energy efficiency assessment software | |
Nürnberg et al. | An agenda for open hypermedia research | |
Milosavljević et al. | Software architecture of distributed client/server library circulation system | |
CN102375743B (en) | SOA(Service-Oriented Architecture) system development method based on model and template | |
CN116389552A (en) | Heterogeneous data transmission system based on publish-subscribe model | |
Ayala et al. | A model driven engineering process of platform neutral agents for ambient intelligence devices | |
Voisard et al. | Abstraction and decomposition in interoperable GIS | |
EP1627302A2 (en) | Aggregation of non blocking state machines on enterprise java bean platform | |
CN101304410A (en) | Intelligent information platform for distributed WEB | |
EP1703386A1 (en) | System and method for designing component based applications | |
Fujima | Building a meme media platform with a JavaScript MVC framework and HTML5 | |
CN103561113A (en) | Web Service interface generating method and device | |
Bocciarelli et al. | Automated development of web-based modeling services for MSaaS platforms. |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130807 |