Summary of the invention
Technical assignment of the invention is in view of the above problems, to provide a kind of design advantages of simple, can reduce system
Development cycle, and it is able to achieve the service dynamic integrated model of business datum dynamic translation.
The further technical assignment of the present invention is to provide that a kind of course of work is simple, can significantly improve the integrated of system business
Efficiency improves system structureization level, realizes the application method of the service dynamic integrated model of business datum dynamic translation.
To achieve the above object, the present invention provides the following technical scheme that
A kind of service dynamic integrated model, including data template, indicating template, business configuration management module, processing step
Management module, container scheduler module and data source control module;
The data template is for the data information of interception to be formatted;
The indicating template is used to realize the online editing of the display page, implements deployment, and to the foreground industry of data intercept
Business editor;
The business configuration management module is used to define the URI of new business and the mapping relations of business processing step;
The processing step management module is used to define the logical process step of new business URI;
The container scheduler module calls data template to carry out data identifying processing according to logical process step type, and will
Data processed result is cached;
The data source modules include interface configuration management module and data configuration management module, interface configuration management module
Registration management is carried out for the interface message to former operation system, data configuration management template is used to the data to former operation system
Library data are managed.
Preferably, the service dynamic integrated model further includes page parameter management module and Session mapping block,
Interface configuration management module realizes the management to the management of page parameter management module and to Session mapping block range.
Preferably, the type of the logical process step includes data processing step, data interception processing step, the page
Show step.The step can be combined, such as: step Step1 obtains account information, and type is data interception, defeated
Result is account information out;Step Step2 obtains list information according to account information, and type is data interception, and input parameter is
The result of step Step1;Step Step3 shows list information in the page, and type is that the page is shown, is configured by indicating template
Html template is defined, and the data acquisition system of step Step2 is subjected to data filling, final result by the definition of indicating template
It can provide in a variety of forms, such as interface service, the page are shown.
Preferably, the data template sheet, as Json format, the data in data template are by Key and ValueObj group
At data interception processing step converts MAP information for the data information being truncated to formatting by data template, to realize
Data sharing between each step.
Preferably, the ValueObj be customized crawl object, custom object type include parameter name, value and
Description.
Preferably, the indicating template is mainly made of Html, Css, Js and Freemarker template instruction,
What Html, Css, Js were responsible for front page layout shows effect and event handling, and Freemarker template instruction is responsible for data filling.
Preferably, the design of the indicating template is completed by IDE tool.
A kind of application method of service dynamic integrated model, comprising the following steps:
(1) business configuration process:
1.1, registration management is carried out, to Session using interface message of the interface configuration management module to former operation system
The scope management of mapping block and management to page parameter management module, interface message make the data as data acquisition layer
With;
If 1.2, there is access authority to the database of former operation system, the original that needs are called by data source control
Operation system database linkage information carries out registration management, and data source data also uses the data as data acquisition layer;
1.3, the URI of new business and the mapping relations of business processing step are defined using business configuration management module;
1.4, the logical process step of new business URI, the class of logical process step are defined using processing step management module
Type includes data processing step, data interception processing step, page display step;
1.5, the configuration of logical process step essential information needs Configuration Type, selection in the essential information of step to intercept
Interface and for interface configure argument list;
1.6, it is formatted in data interception processing step using data of the data template to interception and is converted into MAP letter
Breath;
In the process, by the business procession and former operation system interface of third party's tool analysis original WEB application
Input/output argument.Third party's tool can for it is in the prior art any one, such as ibay, auctiva or
Push anction etc..
(2) business access process:
2.1, terminal device accesses service dynamic integrated model, the URI defined according to business configuration management module by URI
Corresponding logical process step is found, and logical process step is put into container scheduler module and is run;
2.2, container scheduler module calls data template to carry out data identifying processing according to step type, and by the number of every step
It is cached according to processing result;
2.3, when it is page display that container scheduler module, which encounters processing step, the data acquisition system in caching is passed through into display
The format of the Freemarker template definition of template carries out data filling;
2.4, indicating template responds the event in the page by js, and calls others URI by ajax, thus
Realize the close loop maneuver of business logic processing.
Preferably, the data interception processing step is to intercept former operation system by data cutout expansion plugin
Page data and interface service data, the database data of former operation system does not need expansion plugin interception, but passes through data
Configuration management directly manages the database data of former operation system.
Compared with prior art, the present invention have it is following prominent the utility model has the advantages that
(1) service dynamic integrated model through the invention can carry out service slice and object to original multiple systems
Change, original system service or de-fragmentation service chain can be optimized, form new service chain;
(2) service dynamic integrated model through the invention, to being multiplexed existing architecture and labor in existing service
Dynamic achievement, and realize the service arrangement and adjustment capability of automation or semi-automation, the integrated efficiency of business in raising system,
And it can be reduced the R&D work amount reduction development cycle.
Specific embodiment
Below in conjunction with embodiment, a kind of service dynamic integrated model of the invention and its application method are made further detailed
It describes in detail bright.
A kind of service dynamic integrated model of the invention, including data template 1, indicating template 2, business configuration management module
3, processing step management module 4, container scheduler module 5 and data source control module 6.Data template 1 is Json format, data mould
Data in plate 1 are made of Key and ValueObj, and ValueObj is customized crawl object, and the type for grabbing object is as follows
Shown in table 1:
Table 1
Indicating template 2 is mainly made of Html, Css, Js and Freemarker template instruction, and Html, Css, Js are responsible for
Front page layout shows effect and event handling, and Freemarker template instruction is responsible for data filling.Pass through the realization pair of IDE tool
The design of indicating template 2.Indicating template 2 be used to realize display the page online editing, implement deployment, and to data intercept before
Platform business editor.Indicating template 2 is responded by event of the Js to front page layout.
Business configuration management module 3 is used to define the URI of new business and the mapping relations of business processing step.Processing step
Management module 4 is used to define the logical process step of new business URI.The type of logical process step include data processing step,
Data interception processing step and the page show step.Data interception processing step is turned the data information of interception by data template
It is changed to MAP information, to realize the data sharing between each step.The configuration of logical process step essential information, needs in step
Configuration step type in essential information selects the interface to be intercepted and configures argument list for interface.It is illustrated in figure 2 operation
Schematic diagram after business configuration management module, Fig. 3 show the schematic diagram after operation processing step management module.
Container scheduler module 5 calls data template 1 to carry out data identifying processing according to logical process step type, and will count
It is cached according to processing result.Container scheduler module 5 encounter processing step be the page display when, the data acquisition system in caching is led to
The format for crossing the Freemarker template definition of indicating template 2 carries out data filling.
Data source management module 6 includes interface configuration management module 7 and data configuration management module 8.Interface configuration management
Module 7 is used to carry out the interface message of former operation system registration management, and realize management to page parameter management module 9 and
Management to 10 range of Session mapping block.Data configuration management template 8 be used to the database data of former operation system into
Row management.
The application method of service dynamic integrated model of the invention, comprising the following steps:
(1) business configuration process:
By the business procession of third party's tool analysis original WEB application and the input and output ginseng of former operation system interface
Number.It is realized using interface configuration management module 7 and registration management is carried out to the interface message of former operation system, Session is mapped
The scope management of module 10 and management to page parameter management module 9, interface message make the data as data acquisition layer
With.It is managed using the database data of 8 pairs of data configuration management module former operation systems.Use business configuration management module
3 define the mapping relations of the URI of new business and business processing step.Define new business URI's using processing step management module 4
Logical process step, the type of logical process step include data processing step, data interception processing step, page display step
Suddenly.Data interception processing step intercepts the page data and interface service number of former operation system by data cutout expansion plugin
According to.The data intercepted in data interception processing step using 1 Dui of data template, which are formatted, is converted into MAP information.
(2) business access process:
Terminal device accesses service dynamic integrated model by URI, is looked for according to the URI that business configuration management module 2 defines
To corresponding logical process step, and logical process step is put into container scheduler module 5 and is run.Container dispatches mould
Block 5 calls data template 1 to carry out data identifying processing according to step type, and the data processed result of every step is cached.
When it is page display that container scheduler module 5, which encounters processing step, the data acquisition system in caching is passed through into indicating template 2
The format of Freemarker template definition carries out data filling.Indicating template 2 responds the event in the page by js, and
Others URI is called by ajax, to realize the close loop maneuver of business logic processing.
By business configuration process and business access process can accessing database data and page data intercept simultaneously, and
The two is combined, the scalability of business is improved.
Implementation of the invention includes two major classes: first is that directlying adopt service dynamic collection of the invention in operation system
At model, data sharing and service sharing functionality are constructed;Second is that developing independent cloud service platform, then mention in the form of services
Third party is supplied to use.No matter which kind of mode is used, and it is as described below reference realization case that basic process, which is all similar:
(1) business service Access Management is constructed;
(2) data template is constructed to the business service of access, can only identifies data format;
(3) new business service logic step is constructed by business configuration management;
(4) it is exported by indicating template and formulates formatted data;
(5) new service is issued to use for third party.