Service-oriented intelligent platformTechnical field
What the present invention relates to is the system in a kind of network information technology field, specifically a kind of service-oriented intelligent platform.
Background technology
That Web service is defined as is self-contained, self-described, modular, by the application program of URI sign, its adopts the open standard based on XML and Internet, supports interface definition, issue and discovery based on XML.Its appearance and popularization have changed the application model of existing network, and it has become Internet the set of a computational resource from the set of information resources.The main target of Web service is to construct general and technological layer platform independence, language independent on the basis of existing heterogeneous systems, and the application on the multiple different platform relies on this technological layer to implement each other connection and integrated.It has advantages such as cross-platform, interoperability and loose coupling.But current Web service only is can be by the module of external call, and it is a kind of stateless function response, has function singleness, can't the extraneous incident of active response, deficiency such as can't independently cooperate mutually between the service.
Find by prior art documents, Chinese patent application numbers 200610037595.3, denomination of invention: a kind of Web service discovery and integration proxy system, publication number: CN1968322, this patent encapsulates UDDI registration center by using agent skill group, and externally provide the function and the interface of service registry and service search, modification, improved the precision ratio and the recall ratio of service discovery to a certain extent, this integration proxy system: (1) does not realize the fusion of service-oriented technology and software agent technology; (2) do not change the essence that Web service only is the module called of passive respective external.
Summary of the invention
The present invention is directed to the deficiencies in the prior art and defective, a kind of service-oriented intelligent platform is provided, this platform has been realized the integrated of Web service and intelligent body by the software agent technology is incorporated into field of service-oriented computing.Service-oriented intelligent platform has been realized the intelligent management of Web service, it is with current stateless, only the Web service of calling of passive respective external has become one and has association area knowledge, has certain ability intelligent agent, this platform provides technical foundation for the software middleware platform of setting up a new generation, thus for the effective integration typical case that realizes Web service the basis.
The present invention is achieved by the following technical solutions, the present invention includes: serve intelligent volume modeling instrument, the intelligent body registration center of service and serve the execution engine of intelligent body, wherein:
The intelligent volume modeling instrument of described service provides patterned service intelligent volume modeling instrument to the user, realizes the modeling of the intelligent body of service, and after the user had finished certain and serves intelligent volume modeling, this model can be turned to the XML file by sequence;
The intelligent body of described service registration center, realized serving the registration of intelligent body, serve intelligent body registration center and come down to a special container, serve intelligent body and have only after service register center is container issue and just might be found by other service intelligence body and utilize, serve intelligent body registration center the intelligent body registration of service, query interface outwards are provided;
The intelligent body of described service is carried out engine, employing is based on the mechanism of match messages, the function of calling the planning of the intelligent body of service is provided, has served intelligent body and begin to accept message immediately after starting, message be temporarily stored in wait in the personal box of the intelligent body of service processed.All planning that are in the active state all can regularly go personal box to screen untreated message, after the message of discovery and oneself coupling, call the pairing service operations sequence of planning, in the process of carrying out service operations, serve intelligent body and carry out the conviction of engine, and the execution result of planning is sent to the sender of message according to the intelligence of the update service as a result body of call service actions.
The intelligent volume modeling instrument of described service comprises: serve intelligent body conviction MBM, the movable MBM of the intelligent body of service and serve intelligent body planning modeling module.Serve intelligent body conviction MBM and be used to make up the knowledge base of serving intelligent body, serve the movable MBM of intelligent body and be used to make up the Web service operation set of serving intelligent body, serve intelligent body planning modeling module and be used to construct the planning set of serving intelligent body, each planning is the execution body of a business objective, it acts on the corresponding business rule, has described the process of finishing a certain business objective.
The intelligent body conviction of described service MBM comprises ABC modeling unit, constraint knowledge modeling unit, social knowledge's modeling unit, the ABC modeling unit is used for constructing the fact known to the intelligent body of service, they are stored in the mode of one group of proposition, the constraint knowledge modeling unit is used to construct a series of relations that the intelligent body of service will be safeguarded, these relation and functions are on the related variable of ABC, social knowledge's modeling unit is used to construct that the intelligent body of service understands that other serves the information of intelligent body, for example address, role, ability or the like.
The movable MBM of the intelligent body of described service comprises Web service operating function information modeling unit and Web service operation non-functional modeling unit, the function information modeling unit is used for the function of the service of describing, comprise the input and output parameter of service, the title of service, interface of service call or the like, the non-functional modeling unit is used to the quality of the service of describing, Service Quality Metrics commonly used is free, cost, reliability etc., and they have described the non-functional characteristic of Web service operation from different sides.
Described rule are served intelligent body planning modeling module and are used to construct the planning collection that the intelligent body of service is finished business objective, the procedural representation that the planning of serving intelligent body will be finished a certain target becomes the sequence of one group of Web service operation, each activity is made up according to control flows and the data flow set in each planning, control flows has defined the sequencing of movable execution, data flow has then defined the input of a certain movable data that produce as which activity, the corresponding business rule is followed in each planning, described the process of finishing a certain target, each plan attribute comprises the planning title, planning is described, the priority level of planning, trigger the incident of this planning, the Web service sequence of operation of the precondition of planning and planning body correspondence.
The intelligent body of described service registration center comprises: serve intelligent body registering unit, the intelligent body query unit of service and serve intelligent body monitoring unit.Registering unit realizes the registration of the intelligent body of service; Query unit realizes the inquiry of the intelligent body of service, and user or other service intelligence body can realize serving the inquiry of intelligent body according to conditions such as the title of the service service that will inquire about, address, abilities; Serve the ruuning situation that mode that intelligent body monitoring unit adopts poll serves intelligent body to all of serving the management of intelligent body registration center and monitor, comprise the communication state of serving intelligent body, whether available etc.
The intelligent body of described service is carried out engine and is comprised: match messages unit, Web service operation calls unit and conviction updating block.The match messages unit mates message that receives and the input of serving intelligent body planning, if the message that receives is mated fully with the intelligent body input of service, then calls the Web service sequence of operation that corresponding planning is comprised; Web service operation calls unit obtains Web service closing and operates needed input, the called Web service operation from serving intelligent body conviction.And send execution result to the conviction updating block, by the conviction of conviction updating block update service intelligence body.
The present invention is from the outside, and the intelligent body of service is a software agent, and on the one hand, it provides with other intelligent body carries out the interface of communication, thereby has realized the perception to external environment condition; Another aspect, serving intelligent body uses planning to shield to use the service operations sequence to finish the interior details of business objective, thereby make common user only need pay close attention to their the required target of finishing, how not use Web service to finish their target and do not need to pay close attention to.Web service and software agent integrated become stateless Web service into one state, and the intelligent entity that can make a response to the outside.The intelligent bodyization of service strengthens and expanded the deficiency of existing service technology from following several aspects: serving intelligent body is a service colligate body.It is managed concentratedly functionally similar one group of service, and provides high-rise service to the external world; Serve intelligent body and can serve the selection of the QoS requirement optimization service of the preference of intelligent body or customization according to user and other; Serve intelligent body and can serve intelligent body by communication language and other and carry out communication, realize cooperation mutually between the intelligent body of service.
The present invention serves the synthesis that intelligent body is one group of functionally similar Web service and software agent, and it has realized the encapsulation to one group of function similar service; The planning of serving intelligent body has encapsulated the service logic of using Web service, thereby increases the integrated granularity of service; The user can customized personal services selection and consulting tactical, thereby realize that service personalization selects.The present invention adopts OO development technique, and the user can carry out modeling to conviction, activity and the planning of serving intelligent body by patterned user interface, user interface close friend, and it is strong to have extensibility, the characteristics that maintenance costs is little.Serving intelligent body is can be at the autonomous agent of independent operating under the distributed environment, and they are registered in the intelligent body registrar of service, and the communications protocol of following the FIPA standard is adopted in the communication of serving between the intelligent body, to realize the negotiation between the intelligent body of service.
The present invention uses OO technology, adopts opening, modularization, extendible framework, and the user can be according to the needs of personalization, easily the function of the intelligent body of expansion service; Serving intelligent body can move easily: serve intelligent body and adopt the XML form to store, can move easily; Use and convenient management: the visualization interface that the user can using system provides carries out modeling to serving intelligent body, and the system interface close friend is easy to operate.
Description of drawings
Fig. 1 is a system block diagram of the present invention;
Fig. 2 is intelligent phantom type structure chart for the present invention serves;
Fig. 3 is intelligent body execution engine operation principle for the present invention serves.
Embodiment
Below in conjunction with accompanying drawing embodiments of the invention are elaborated: present embodiment is being to implement under the prerequisite with the technical solution of the present invention, provided detailed execution mode and concrete operating process, but protection scope of the present invention is not limited to following embodiment.
It is exploitation that the present invention serves intelligent platform, a whole set of solution of distributed deployment and operation service intelligence body.Serve intelligent volume modeling instrument one group of visual modeling tool is provided, realized the integrated of software agent technology and service technology, after the user had finished certain and serves intelligent volume modeling, this model can be turned to the XML file by sequence.The modeling of an intelligent body of service comprises the content of three aspects, is respectively conviction modeling, activity modeling and planning modeling.Conviction has been formed the knowledge base of serving intelligent body, serve intelligent body representation of activity the service operations that can carry out of intelligent body, the planning of serving intelligent body has been described from the professional hierarchy of objectivies and has been used service operations to finish the process of a certain business objective.
Serve intelligent body registration center and realized serving the registration of intelligent body, the intelligent body of service only could move after the service register center registration.
Serve intelligent body and carry out the mechanism of engine employing, the function of call service actions sequence is provided based on match messages.Serve intelligent body and begin to accept message immediately after starting, message be temporarily stored in wait in the personal box of the intelligent body of service processed.All planning that are in the active state all can regularly go personal box to screen untreated message.After the message of discovery and oneself coupling, call the pairing service operations sequence of planning, in the process of carrying out service operations, serve the conviction of the execution engine of intelligent body, and the execution result of planning is sent to the sender of message according to the intelligence of the update service as a result body of call service actions.
The intelligent volume modeling instrument of described service comprises: serve intelligent body conviction MBM, the movable MBM of the intelligent body of service and serve intelligent body planning modeling module.Serve intelligent body conviction MBM and be used to make up the knowledge base of serving intelligent body, serve the movable MBM of intelligent body and be used to make up the Web service operation set of serving intelligent body, serve intelligent body planning modeling module and be used to construct the planning set of serving intelligent body, each planning is the execution body of a business objective, it acts on the corresponding business rule, has described the process of finishing a certain business objective.
The intelligent body conviction of described service MBM comprises ABC modeling unit, constraint knowledge modeling unit, social knowledge's modeling unit, the ABC modeling unit is used for constructing the fact known to the intelligent body of service, they are stored in the mode of one group of proposition, the constraint knowledge modeling unit is used to construct a series of relations that the intelligent body of service will be safeguarded, these relation and functions are on the related variable of ABC, and social knowledge's modeling unit is used to construct that the intelligent body of service understands that other serves the information of intelligent body.
The movable MBM of the intelligent body of described service comprises Web service operating function information modeling unit and Web service operation non-functional modeling unit, the function information modeling unit is used for the function of the service of describing, the non-functional modeling unit is used to the quality of the service of describing, and they have described the non-functional characteristic of Web service operation from different sides.
The conviction set has constituted the knowledge base of serving intelligent body.The knowledge of serving intelligent body can be divided three classes, and is respectively ABC, constraint knowledge and social knowledge.ABC is the fact known to the intelligent body of service, is used for defining the variable that the intelligent body of service will be used, and simple data type variable comprises shaping, floating type, character string type and Boolean type, and composite data type is unified to be defined with the XML form; Constraint knowledge is a series of relations that will safeguard of the intelligent body of service, and these restriction relations act on the defined variable of ABC, the constraint manipulation symbol comprise greater than, equal, less than, comprise etc.; Social knowledge is storing other information of serving intelligent body, for example address, ability and role etc.Active set is the set of the Web service operation that can carry out of the intelligent body of service, each service operations attribute comprises title, input, input and service quality etc., input and output have characterized the functional attribute of operation, service quality has then characterized the non-functional attribute of operation, Service Quality Metrics commonly used is free, cost, reliability etc., and they have described the non-functional characteristic of service from different sides.The variablees such as input parameter, output parameter and service quality of Web service operation all come from defined ABC in the intelligent body conviction MBM of service.The planning of serving intelligent body is the execution body of business objective, the corresponding business rule is followed in each planning, the process of using the Web service operation to finish a certain business objective has been described from professional destination layer, each plan attribute comprises the planning title, planning is described, the input of planning, the Web service sequence of operation of the output of planning and planning body correspondence, the input of planning must all come from the defined ABC of the intelligent body conviction MBM of service, and the sequence of operation that planning is comprised comes from the Web service operation that the movable MBM of the intelligent body of service has defined.
The intelligent body of described service is carried out engine and is comprised: match messages unit, Web service operation calls unit and conviction updating block.The match messages unit mates message that receives and the input of serving intelligent body planning, if the message that receives is mated fully with the intelligent body input of service, then calls the Web service sequence of operation that corresponding planning is comprised; Web service operation calls unit obtains Web service closing and operates needed input from serving intelligent body conviction, the called Web service operation, and send execution result to the conviction updating block, by the conviction of conviction updating block update service intelligence body.
Specific embodiments of the invention below are provided, and the present embodiment system is equipment platform with the microcomputer, encapsulates the Web service resource by using the software agent technology, has realized the intelligent management to the Web service resource.Deficiency that software agent technology and service-oriented technology integrated overcome existing service technology is for the software middleware platform of setting up a new generation provides technical foundation.This embodiment system configuration is by shown in Figure 1.
Operating personnel 1 create anintelligent phantom type 3 of service by the intelligentvolume modeling instrument 2 of service, serveintelligent phantom type 3 and only are distributed in the intelligent body of theservice registration center 4 and just may be found bygeneral user 5 and utilize.User 5 obtains to finish the service intelligence body of its task by inquiry service intelligencebody registration center 4, and its task sent to corresponding with service intelligence body with the form of message, serve after intelligent body receives user's task, obtain the planning of coupling and carry out the Web service sequence ofoperation 21 that planning is comprised by match messages mechanism, and the result is returned to the user with the form of message.
As shown in Figure 2, a complete serviceintelligence phantom type 3 comprises the content of three parts, is respectivelyconviction model 6,motility model 7 and plan model 8.Whereinconviction model 6 has constituted the knowledge base of serving intelligent body, and the knowledge of serving intelligent body can be divided three classes, and is respectively ABC 9, constraintknowledge 10 andsocial knowledge 11.
Themotility model 7 of serving intelligent body is the set of one group of Web service operation, represented the set of serving the activity that intelligent body can carry out, eachWeb service operation 12 base attribute that comprise is thetitle 14 of Web service operation, theinput 15 of Web service operation, theoutput 16 of Web service operation and the quality index 17 of Web service operation, wherein theoutput 16 of theinput 15 of Web service operation and Web service operation has characterized the function of Web service, and the quality index 17 of Web service operation has characterized the non-functional attribute of Web service operation.
Theplan model 8 of serving intelligent body is the set of one group of planning, has represented the ability of serving intelligent body, and the process of using the Web service operation to finish a certain business objective has been described in eachplanning 13 from the angle of business objective.The base attribute of a planning comprises theoutput 20 of thetitle 18 of planning, the input ofplanning 19, planning and plans the pairing Web service sequence ofoperation 21.
As shown in Figure 3, when the intelligent body of service receives outside service request bymessage sink unit 22, its messagecall matching unit 23 obtains to carry out the planning tabulation of service request, and if there is no Pi Pei planning then directly sends the task scheduling failure to the user.If there are a plurality of planning that can carry out service request, then from the planning tabulation of coupling, selectbest planning 25 according to certain evaluation criterion, call this then and plan the pairing Web service sequence ofoperation 26, and the user is sent the result who carries out after planning.
Present embodiment has been realized the integrated of Web service and intelligent body by the software agent technology is incorporated into field of service-oriented computing.Service-oriented intelligent platform has been realized the intelligent management of Web service, it is with current stateless, only the Web service of calling of passive respective external has become one and has association area knowledge, has certain intelligent intelligent agent, this platform provides technical foundation for the software middleware platform of setting up a new generation, the present embodiment module is clear, has the characteristics of very strong autgmentability, adaptability and ease for use.