CN103902270A - Dynamic business building, managing and processing methods and dynamic business system - Google Patents

Dynamic business building, managing and processing methods and dynamic business system Download PDF

Info

Publication number
CN103902270A
CN103902270A CN201210581484.4A CN201210581484A CN103902270A CN 103902270 A CN103902270 A CN 103902270A CN 201210581484 A CN201210581484 A CN 201210581484A CN 103902270 A CN103902270 A CN 103902270A
Authority
CN
China
Prior art keywords
dynamic
service
business
function
script
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.)
Pending
Application number
CN201210581484.4A
Other languages
Chinese (zh)
Inventor
汪海涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Niuhai Information Technology (Shanghai) Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Niuhai Information Technology (Shanghai) Co Ltd filed Critical Niuhai Information Technology (Shanghai) Co Ltd
Priority to CN201210581484.4A priority Critical patent/CN103902270A/en
Publication of CN103902270A publication Critical patent/CN103902270A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses dynamic business building, managing and processing methods and a dynamic business system. The dynamic business building method includes the steps of S11, building a main function and a plurality of business scripts; S12, adding the calling function of each business script into the main function; S13, by the main function, allowing each calling function to be associated with one business line. The invention further provides a dynamic business managing method for managing the dynamic businesses built by the building method, a dynamic business processing method for using the dynamic businesses built by the building method, and a dynamic business system using the dynamic business building, managing and processing methods. The methods and the system have the advantages that files are configured flexibly through scripts, distributed calculation and file processing are integrally performed through a mature application system, so that modification of business contents in the application system can be achieved efficiently and safely.

Description

Dynamic service foundation, management and disposal route and dynamic service system
Technical field
The present invention relates to a kind of dynamic service foundation, management and disposal route and dynamic service system, particularly relate to a kind of dynamic service foundation, management and disposal route and dynamic service system based on script.
Background technology
The at present IT(of large enterprise infotech) application system all faces this has mutual demand of communicating by letter with the system of its partner, especially as the basic relevant industry of the national economies such as the huge telecommunications of business scale amount, finance or security.
For example third party's on-line payment belongs to the liquidation organization of financial industry, need and its liquidation organization that carry out reaches tens of families, the business of carrying out especially hundreds of, comprise domestic and international bank, logistics system, insurance and transnational enterprise etc.Because the Information Technology Platform of every profession and trade is far from each other, this traditional information exchange system of file remains the means that mainly adopt between third party's on-line payment and liquidation organization.
But along with business high speed development, the how data model that is revised as these document definitions fast and safely, and also wish that the as far as possible little high availability that affects core system is a difficult problem of confronting.
From developer's angle, for existing scheme, if file layout is revised because business changes, also must modify and recompilate, dispose and restart the code of resolution file simultaneously, the reason of adding product test deenergized period is published to production environment also can need the longer time, and therefore cost is high and efficiency is low.
From application system angle, based on the service-oriented architecture of the SOA(of enterprise) core system under computing environment bearing huge key calculation task, revising core system code not only has a big risk, test cost is high, also may also can bring new potential risk because code merges, the well-known core business system safety and stability based under SOA environment is particularly important to the whole SOA ecosystem, so frequent core system is revised and issued number of times or obviously reduces the availability of whole application system.
Summary of the invention
The technical problem to be solved in the present invention is cannot be reliably in the application system in order to overcome prior art, the defect of business processing content in change system efficiently, a kind of dynamic service foundation, management and disposal route and dynamic service system are provided, Distributed Calculation and the file processing of being undertaken by script flexible configuration file and ripe application system integration, thereby the modification that realizes business tine in application system that can be efficient and safe.
The present invention solves above-mentioned technical matters by following technical proposals:
The invention provides a kind of dynamic service method for building up, be characterized in, described dynamic service method for building up comprises the following steps:
S11, set up a principal function and multiple service scenario;
In S12, described principal function, add the call function of each service scenario;
S13, described principal function are by an associated each call function class of business.
The present invention passes through as the associated different call function of different classs of business, thereby the processing operation of each business is distributed in different scripts, so user only need to just can realize the modification to business processing by script is modified.
Wherein principal function described in the present invention is externally carried out the function interface of business processing, and the program that described service scenario has comprised concrete business processing flow or content is correctly processed business by described service scenario.Described call function is the function interface that calls described service scenario in principal function, that is to say, by moving described call function, can point to and need service scenario to be processed.
The class of business that can process based on the corresponding script of described call function in the present invention is by call function and described class of business association link, so in the time that principal function is judged the type that needs business to be processed, can call the service scenario corresponding to described type of service by call function.
The associated services of call function described in the present invention kind refers to the incidence relation that has the directive property such as link between class of business and described call function, the incidence relation of described call function and described class of business can be form arbitrarily, and the present invention does not limit its associated form.
Preferably, described service scenario is grooy script, javascript script, python script, ruby script or perl script etc.
The present invention can use the script that script forms arbitrarily.Above-mentioned grooy, javascript, python, ruby and perl are existing script, therefore repeat no more.
Preferably, described principal function and call function are java function, C function or C++ function etc.
Wherein said java, C and C++ are existing programming language, so repeat no more here.
The present invention also provides a kind of dynamic traffic management method, is characterized in, the dynamic service that described dynamic traffic management method is used dynamic service method for building up as above to generate, and comprise the following steps:
S21, search the service scenario associated with described call function;
S22, revise described service scenario by text editor.
In the present invention, only need script to revise, just can realize the modification of business processing, thereby no longer need again whole principal function to be recompilated, thereby overcome the stiffness of principal function.
The service scenario of call function association of the present invention, refers to the contact between call function and the service scenario to external structure as service scenario, and the concrete correlation form of wherein said call function and service scenario can be arbitrarily.
Preferably, after described step S22, also comprise step:
Upgrade the call function associated with described service scenario.
Wherein revise after described service scenario, may correspondingly revise the data such as the parameter of call function in described principal function, so need to upgrade equally the content of the call function in described principal function.
Preferably, described step text editor is WEB(internet) editing machine.
The present invention also provides a kind of dynamic business processing method, is characterized in, described dynamic business processing method is processed the dynamic service of dynamic service method for building up as above and the generation of described dynamic traffic management method, and comprises following steps:
S31, described principal function are read in the class of business of a pending business;
S32, call service scenario by the call function associated with described class of business;
S33, explain and carry out by a script interpreter the described service scenario that described call function calls.
Dynamic service of the present invention is processing when business all by external scripts processing, while being each processing business, be all to reload script, so the business processing of principal function all adopts service scenario processing fresh described in any moment, i.e. realization and convenience that business is upgraded are realized.
Script interpreter described in the present invention is the content interpret actuator of the script of the existing generation of script arbitrarily, so be no longer described in detail herein.
Preferably, further comprising the steps of after step S33:
The execution result of S34, the described service scenario of described principal function feedback output.
In the present invention, execute after described business at service scenario, or return to service processing result to program, equipment or the thread of principal function described in external call etc. by principal function.
The present invention provides again a kind of dynamic service system, be characterized in, described dynamic service system comprises a server, and described server comprises multiple service scenarios, a script interpreter and a principal function, and described dynamic service system is used dynamic business processing method as above.
For convenience of description, in the present invention, described server is divided into various modules according to function and describes respectively, so in the time that enforcement is of the present invention, the function of each module can be realized in same or multiple software and/or hardware.
Preferably, also comprise a database in described server, described service scenario is all stored in described database.
Preferably, also comprise a file system in described server, described file system loads described service scenario from described database.
The present invention carrys out standardization to the reading or the operation such as modification of described service scenario by file system, that is to say, file system is external unique can realize the interface to script operation in database.
Preferably, described file system is a NFS system (Network File System, network file system(NFS)).
Meeting on the basis of this area general knowledge, above-mentioned each optimum condition, can combination in any, obtains the preferred embodiments of the invention.
Positive progressive effect of the present invention is:
Dynamic service foundation of the present invention, management and disposal route and dynamic service system, Distributed Calculation and the file processing of being undertaken by script flexible configuration file and ripe application system integration, that is to say, application system is with the calculating that distributes of the mode of loading scripts.Because kind of document to be resolved is very many, and frequent variations, for minimizing system is issued number of times, the logic of resolving text is realized with script, then script is stored with text mode, thereby without restarting application system, also completed upgrading without issuing under core system.
And in this manner, user only need to revise script can realize the modification of business, so simplified the flow process of the modification of business.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of the dynamic service system of preferred embodiment of the present invention.
Fig. 2 is the process flow diagram that the dynamic service of preferred embodiment of the present invention is set up.
Fig. 3 is the process flow diagram of the dynamic traffic management of preferred embodiment of the present invention.
Fig. 4 is the process flow diagram of the dynamic service processing of preferred embodiment of the present invention.
Embodiment
Mode below by embodiment further illustrates the present invention, but does not therefore limit the present invention among described scope of embodiments.
The principal function dynamic load groovy service scenario that the employing java language of the present embodiment the forms calculating that distributes.Because kind of document to be resolved is very many, and frequent variations, for minimizing system is issued number of times, the logic of resolving text is realized with groovy, then groovy service scenario is stored with text mode, so without restarting, also complete upgrading without recompilating again principal function.
Specifically, as shown in Figure 1, the dynamic service system of the present embodiment comprises a server 1, and wherein said server 1 comprises a database 11, a NFS file system 12, a script interpreter 13, a java principal function 14 and a WEB editing machine 15.Described database 11 comprises multiple groovy service scenario (not shown).In described server 1, set up dynamic service by dynamic service method for building up as shown in Figure 2, concrete Establishing process is as described below:
Step S11, sets up described java principal function 14 and multiple groovy service scenario.Wherein said groovy service scenario is all stored in described database 11, and described NFS file system 12 is for loading described groovy service scenario from described database 11.
Step S12, adds the call function of each groovy service scenario in described java principal function 14.That is to say, described java principal function 14 has the interface of the described groovy service scenario of access.
Step S13, described java principal function 14 is by an associated each call function class of business.Namely tell me, in the present embodiment, the groovy service scenario of realizing different business for each is marked out clearly in java principal function 14 to the type of the business of its actual treatment.
If described service scenario adopts as javascript script, python script, ruby script or perl script etc. in addition, when described principal function adopts as C function or C++ function etc., also can use equally above-mentioned flow process to set up dynamic service.
In the server 1 of the present embodiment, database 11, NFS file system 12, java principal function 14 and groovy service scenario are common forms after a dynamic service, when data are said in the instruction that receives processing business when server 1, realize the processing of business by the flow process of dynamic service processing as shown in Figure 4, its idiographic flow tell lower described in:
Step S31, described java principal function 14 is read in the class of business of a pending business.
Step S32, calls groovy service scenario by the call function associated with described class of business.That is to say, when java principal function 14 clear and definite after the type of pending business, call by clearly marked in advance the call function of class of business in java principal function 14 the groovy service scenario that can process described class of business.
Step S33, described call function is explained and is carried out described groovy service scenario by described script interpreter 13.Be that described call function loads the groovy service scenario that needs operation from described database 11 by NFS file system, after this groovy service scenario that described NFS file system loads is explained and moved to script interpreter 13, thereby realized the processing of business.
Step 34, the execution result of the described groovy service scenario of described java principal function 14 feedback output.Finally described groovy service scenario executes after business again, and the result after described java principal function 14 is carried out described groovy service scenario returns to other request unit or thread etc.
In the time that the business tine of certain groovy service scenario processing in the present embodiment changes, can realize by dynamic traffic management method as shown in Figure 3 the modification of business, it specifically comprises flow process as described below:
Step S21, searches the described groovy service scenario associated with described call function.Be that user determines the groovy service scenario that needs modification by call function.
Step S22, revises described groovy service scenario by WEB editing machine 15.That is to say, from database 11, load described groovy service scenario in NFS file system 14, then user revises the content of described groovy service scenario in the mode of Edit Text by WEB editing machine 15.
Step S23, upgrades the call function associated with described groovy service scenario.Owing to may correspondingly revising the data such as the parameter of call function in described java principal function 14, so need to upgrade the content of the call function in described java principal function 14.
By the way can be in the case of not affecting the operation of java principal function 14, the content of modification business, the for example service scenario of calculating freight charges, because freight charges often change, so set up the groovy service scenario file of a fee by name, described java principal function 14 reads fee script file when need to calculating freight charges and moves in script interpreter, if 5 yuan of one kilogram of freight charges in this script file, in the time that service logic changes, the logic that only need to revise this script file change into front two kilograms free, 3 yuan of per kilograms etc. afterwards, both can realize the modification of business tine, and the java principal function 14 of whole outside need not any variation and issue, just can realize the variation of freight charges computation rule in business.
So as mentioned above, the dynamic service system of the present embodiment has been applicable to accessing the application platform of a large amount of outer application system, the increment service system of such as telecommunications industry etc. or the intermediate business platform of bank etc., as long as the affiliate of access is more, the business of carrying out is more complicated, the variation of demand is faster, and the advantage of the present embodiment just can be more obvious.
Description by above embodiment is known, and those skilled in the art can be well understood to the mode that the application can add essential general hardware platform by software and realize.Based on such understanding, the part that the application's technical scheme contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in storage medium, as ROM/RAM(ROM (read-only memory)/random access memory), magnetic disc, CD etc., comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) carry out the method described in the application's embodiment or some part of embodiment.
Although more than described the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is limited by appended claims.Those skilled in the art is not deviating under the prerequisite of principle of the present invention and essence, can make various changes or modifications to these embodiments, but these changes and modification all fall into protection scope of the present invention.

Claims (12)

1. a dynamic service method for building up, is characterized in that, described dynamic service method for building up comprises the following steps:
S11, set up a principal function and multiple service scenario;
In S12, described principal function, add the call function of each service scenario;
S13, described principal function are by an associated each call function class of business.
2. dynamic service method for building up as claimed in claim 1, is characterized in that, described service scenario is grooy script, javascript script, python script, ruby script or perl script.
3. dynamic service method for building up as claimed in claim 1, is characterized in that, described principal function and call function are java function, C function or C++ function.
4. a dynamic traffic management method, is characterized in that, the dynamic service that described dynamic traffic management method is used the dynamic service method for building up as described in any one in claim 1-3 to generate, and comprise the following steps:
S21, search the service scenario associated with described call function;
S22, revise described service scenario by text editor.
5. dynamic traffic management method as claimed in claim 4, is characterized in that, also comprises step after described step S22:
Upgrade the described call function associated with described service scenario.
6. the dynamic traffic management method as described in claim 4 or 5, is characterized in that, described text editor is WEB editing machine.
7. a dynamic business processing method, it is characterized in that, described dynamic business processing method is processed the dynamic service of the dynamic service method for building up as described in any one in claim 1-3 and the generation of the dynamic traffic management method as described in any one in claim 4-6, and comprises following steps:
S31, described principal function are read in the class of business of a pending business;
S32, call service scenario by the call function associated with described class of business;
S33, explain and carry out by a script interpreter the described service scenario that described call function calls.
8. dynamic business processing method as claimed in claim 7, is characterized in that, further comprising the steps of after step S33:
The execution result of S34, the described service scenario of described principal function feedback output.
9. a dynamic service system, it is characterized in that, described dynamic service system comprises a server, and described server comprises multiple service scenarios, a script interpreter and a principal function, and described dynamic service system is used dynamic business processing method as claimed in claim 7 or 8.
10. dynamic service system as claimed in claim 9, is characterized in that, also comprises a database in described server, and described service scenario is all stored in described database.
11. dynamic service systems as claimed in claim 10, is characterized in that, also comprise a file system in described server, and described file system loads described service scenario from described database.
12. dynamic service systems as claimed in claim 11, is characterized in that, described file system is a NFS system.
CN201210581484.4A 2012-12-27 2012-12-27 Dynamic business building, managing and processing methods and dynamic business system Pending CN103902270A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210581484.4A CN103902270A (en) 2012-12-27 2012-12-27 Dynamic business building, managing and processing methods and dynamic business system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210581484.4A CN103902270A (en) 2012-12-27 2012-12-27 Dynamic business building, managing and processing methods and dynamic business system

Publications (1)

Publication Number Publication Date
CN103902270A true CN103902270A (en) 2014-07-02

Family

ID=50993614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210581484.4A Pending CN103902270A (en) 2012-12-27 2012-12-27 Dynamic business building, managing and processing methods and dynamic business system

Country Status (1)

Country Link
CN (1) CN103902270A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182234A (en) * 2014-08-25 2014-12-03 杭州华为数字技术有限公司 Business processing method and business system
CN104461522A (en) * 2014-11-26 2015-03-25 盈世信息科技(北京)有限公司 Auxiliary service implementation method based on scripts
CN107273165A (en) * 2017-06-19 2017-10-20 郑州云海信息技术有限公司 A kind of system and method for realizing module dynamic call
CN108762745A (en) * 2018-05-25 2018-11-06 中国光大银行股份有限公司 The scenario generation method and device of business
CN109254787A (en) * 2018-07-18 2019-01-22 东软集团股份有限公司 Service logic variation, device, storage medium and electronic equipment
CN109358842A (en) * 2018-09-25 2019-02-19 广州城市信息研究所有限公司 A kind of service implementing method, electronic equipment and storage medium
CN110187936A (en) * 2019-05-31 2019-08-30 口碑(上海)信息技术有限公司 Data backflow platform, system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020026632A1 (en) * 2000-07-28 2002-02-28 Airsys Atm Sa Universal computer code generator
CN101056429A (en) * 2007-05-29 2007-10-17 华为技术有限公司 Universal service system and its implementation method
CN101645013A (en) * 2009-09-07 2010-02-10 中兴通讯股份有限公司 Plug-in type service management system and method of integrated service management platform
CN102141917A (en) * 2011-04-02 2011-08-03 南京天溯自动化控制系统有限公司 Method for realizing multi-service linkage based on IronPython script language
CN102707934A (en) * 2011-03-28 2012-10-03 中兴通讯股份有限公司 Method and system for representing value-added service flow in script form

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020026632A1 (en) * 2000-07-28 2002-02-28 Airsys Atm Sa Universal computer code generator
CN101056429A (en) * 2007-05-29 2007-10-17 华为技术有限公司 Universal service system and its implementation method
CN101645013A (en) * 2009-09-07 2010-02-10 中兴通讯股份有限公司 Plug-in type service management system and method of integrated service management platform
CN102707934A (en) * 2011-03-28 2012-10-03 中兴通讯股份有限公司 Method and system for representing value-added service flow in script form
CN102141917A (en) * 2011-04-02 2011-08-03 南京天溯自动化控制系统有限公司 Method for realizing multi-service linkage based on IronPython script language

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李英华: "基于C语言程序的模块化设计", 《保定师范专科学校学报》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182234A (en) * 2014-08-25 2014-12-03 杭州华为数字技术有限公司 Business processing method and business system
CN104182234B (en) * 2014-08-25 2017-10-10 杭州华为数字技术有限公司 A kind of method for processing business and operation system
CN104461522A (en) * 2014-11-26 2015-03-25 盈世信息科技(北京)有限公司 Auxiliary service implementation method based on scripts
CN104461522B (en) * 2014-11-26 2018-05-01 论客科技(广州)有限公司 Auxiliary activities implementation method based on script
CN107273165A (en) * 2017-06-19 2017-10-20 郑州云海信息技术有限公司 A kind of system and method for realizing module dynamic call
CN108762745A (en) * 2018-05-25 2018-11-06 中国光大银行股份有限公司 The scenario generation method and device of business
CN108762745B (en) * 2018-05-25 2022-01-21 中国光大银行股份有限公司 Service script generation method and device
CN109254787A (en) * 2018-07-18 2019-01-22 东软集团股份有限公司 Service logic variation, device, storage medium and electronic equipment
CN109358842A (en) * 2018-09-25 2019-02-19 广州城市信息研究所有限公司 A kind of service implementing method, electronic equipment and storage medium
CN110187936A (en) * 2019-05-31 2019-08-30 口碑(上海)信息技术有限公司 Data backflow platform, system and method

Similar Documents

Publication Publication Date Title
US10824948B2 (en) Decision tables and flow engine for building automated flows within a cloud based development platform
CN103902270A (en) Dynamic business building, managing and processing methods and dynamic business system
US8196126B2 (en) Methods and systems for dynamically generating and optimizing code for business rules
CN105022630B (en) A kind of assembly management system and assembly management method
CN104050261A (en) Stormed-based variable logic general data processing system and method
US20220244972A1 (en) Dynamic module injector for real time restructuring of enterprise application
CN113254445B (en) Real-time data storage method, device, computer equipment and storage medium
CN113128978B (en) Data settlement method, device, system and storage medium
CN101989294B (en) Distributed file resolving method and resolving system
CN101393535A (en) Method and system for associating event and assembly while working
CN104517181A (en) Enterprise content management system and enterprise content management method for nuclear power plants
CN104657274A (en) Method and device for testing software interface
CN113360676A (en) Method and device for determining potential relation of enterprise based on knowledge graph
WO2024060725A1 (en) Aircraft tool change method and apparatus, device, and storage medium
CN110807016A (en) Data warehouse construction method and device applied to financial business and electronic equipment
da Silva et al. SPReaD: service-oriented process for reengineering and DevOps: Developing microservices for a Brazilian state department of taxation
CN103455476B (en) The processing method of the network information and the method for building up of abstract syntax tree and device thereof
CN111241803A (en) Method and device for generating text file, computer equipment and readable storage medium
US20180321932A1 (en) Method, device and related system for dynamically repairing application
CN110633077B (en) Quick development system and method based on modularization
CN111538491B (en) Data event processing method, device, equipment and storage medium
CN113364806A (en) Service interface migration verification method and device
CN111273893A (en) Financial data processing method and device, computer equipment and storage medium
CN113792039A (en) Data processing method and device, electronic equipment and storage medium
US9286112B2 (en) Determining and dispatching processing agent for transaction processing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160919

Address after: East Building 11, 100195 Beijing city Haidian District xingshikou Road No. 65 west Shan creative garden district 1-4 four layer of 1-4 layer

Applicant after: Beijing Jingdong Shangke Information Technology Co., Ltd.

Address before: 201203 Shanghai city Pudong New Area Zu Road No. 295 Room 102

Applicant before: Niuhai Information Technology (Shanghai) Co., Ltd.

RJ01 Rejection of invention patent application after publication

Application publication date: 20140702

RJ01 Rejection of invention patent application after publication