CN103077045B - A kind of method that builds XML script flow engine - Google Patents

A kind of method that builds XML script flow engine Download PDF

Info

Publication number
CN103077045B
CN103077045B CN201210544164.1A CN201210544164A CN103077045B CN 103077045 B CN103077045 B CN 103077045B CN 201210544164 A CN201210544164 A CN 201210544164A CN 103077045 B CN103077045 B CN 103077045B
Authority
CN
China
Prior art keywords
script
construction part
part module
module
container
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.)
Active
Application number
CN201210544164.1A
Other languages
Chinese (zh)
Other versions
CN103077045A (en
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 Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information Technology 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 Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN201210544164.1A priority Critical patent/CN103077045B/en
Publication of CN103077045A publication Critical patent/CN103077045A/en
Application granted granted Critical
Publication of CN103077045B publication Critical patent/CN103077045B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

A kind of method that the present invention relates to the XML of structure script flow engine, comprising: step 1, the script of employing XML format configuration operation flow; Step 2, reads whole scripts, and deposits script in script container; Step 3, obtains all types of construction part modules in script, and power function corresponding with construction part module in dynamic base module is read in to this construction part module, then construction part module is deposited in member container corresponding in script; Step 4 reads first script from script container, carries out the beginning construction part module in this script, and obtains the next construction part module that starts construction part module; Step 5, carries out this construction part module, and enters in corresponding member container and carry out operation flow; Step 6, obtains the next construction part module of this construction part module, and repeated execution of steps 5, until carry out to exiting construction part module. The present invention generates required code automatically rapidly by XML script flow engine, develops rapidly the business scenario that client proposes.

Description

A kind of method that builds XML script flow engine
Technical field
The present invention relates to telecommunications industry business treatment technique field, particularly relate to a kind of XML of structure scriptThe method of flow engine.
Background technology
Along with market is more and more faster to the changes in demand of business, by encoded test traditional mode of reaching the standard gradeBe difficult to meet client and caught the focus demand of response fast. Therefore, how can develop and go to a party fastThe business scenario that family proposes generates operation flow by picture flow chart required as the visio of MicrosoftCode, be in prior art, to need the urgent technical problem solving. The present invention is based on this point,Carry out automatically to generate rapidly by XML script flow engine the code needing, for client develops rapidlyThe business scenario needing.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of method of the XML of structure script flow engine,Be used for solving prior art and develop business scenario problem not fast.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of XML script flow engine that buildsMethod, comprising:
Step 1, the script of employing XML format configuration operation flow;
Step 2, reads whole scripts, and deposits script in script container;
Step 3, obtains the construction part module of type described in script, and by dynamic base module with corresponding structurePower function corresponding to part module reads in to this construction part module, then construction part module is deposited in script correspondingMember container in;
Step 4 reads first script from script container, carries out the beginning construction part module in this script,And obtain and start the next construction part module of construction part module;
Step 5, carries out this construction part module, and enters in corresponding member container and carry out operation flow;
Step 6, obtains the next construction part module of this construction part module, and repeated execution of steps 5, until holdRow is to exiting construction part module.
On the basis of technique scheme, the present invention can also do following improvement.
Further, in described step 1, the script structure of configuration comprises script name, construction part module, beginning structurePart module numbering and member container.
Further, in described step 2, reading whole scripts specifically comprises:
Step 21, by script storage directory, dynamic base storage catalogue, daily record storing directory and dynamic library textPart is configured to basic configuration file, and is stored into background system;
Step 22, reads whole scripts according to the script storage directory in basic configuration file.
Further, in described step 2, depositing script in script container specifically comprises: each script correspondenceThere is unique numbering, script is sequentially deposited in script container by number successively.
Further, the construction part module in described step 3 comprise start construction part module, exit construction part module,Finish construction part module and/or composite component module.
Further, in described step 3: each construction part module in script is to there being unique numbering.
Further, described step 5 also comprises:
Step 51, if this construction part module, for exiting construction part module, finishes to build XML script flow engine;
Step 52, if this construction part module is for finishing construction part module or composite component module, obtains the next oneScript, and return to execution step 4.
The invention has the beneficial effects as follows: the present invention is automatically generated and needs rapidly by XML script flow engineThe code of wanting, the business scenario proposing for developing client rapidly. By the present invention, to technical staffTechnology realization can be more absorbed in, and the logic of business needn't be paid close attention to; To business personnel and safeguard peopleWhether member, can more clearly pay close attention to the logicality of business rationally with correct, and needn't pierce generationIn code, see code. The accumulation of administrative skill that can also be convenient by this engine, reduces repeated work.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of structure XML script flow engine of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, principle of the present invention and feature are described, example is only for explaining thisInvention, is not intended to limit scope of the present invention.
As shown in Figure 1, embodiment mono-is a kind of method of the XML of structure script flow engine, comprising:
Step 1, the script of employing XML format configuration operation flow. Wherein, the script structure bag of configurationDraw together script name, construction part module, beginning construction part module numbering and member container.
Step 2, reads whole scripts, and deposits script in script container.
Wherein, reading whole scripts specifically comprises:
Step 21, by script storage directory, dynamic base storage catalogue, daily record storing directory and dynamic library textPart is configured to basic configuration file, and is stored into background system;
Step 22, reads whole scripts according to the script storage directory in basic configuration file.
Specifically comprise and script is deposited in step 2 in to script container: each script is to there being unique volumeNumber, script is sequentially deposited in script container by number successively.
Step 3, obtains all types of construction part modules in script, and by dynamic base module with corresponding structurePower function corresponding to part module reads in to this construction part module, then construction part module is deposited in script correspondingMember container in. The construction part module here comprises beginning construction part module, exits construction part module, finishes structurePart module and/or composite component module etc., and each construction part module is to there being unique numbering.
Step 4 reads first script from script container, carries out the beginning construction part module in this script,And obtain and start the next construction part module of construction part module.
Step 5, carries out this construction part module, and enters in corresponding member container and carry out operation flow. RemoveBeyond this, step 5 also comprises:
Step 51, if this construction part module, for exiting construction part module, finishes to build XML script flow engine;
Step 52, if this construction part module is for finishing construction part module or composite component module, obtains the next oneScript, and return to execution step 4.
Step 6, obtains the next construction part module of this construction part module, and repeated execution of steps 5, until holdRow is to exiting construction part module.
In actual applications, construction part module is to realize with the form of member in XML, one in representative systemPart physical implementation, comprises software code (source code, binary code or executable code) or its etc.Valency thing (as script or command file) etc.
In script container, first script is the script of main.xml by name, according to the beginning structure of this scriptPart is carried out, and then obtains next member or the script of this member, enters in the container of script and member and holdsRow operation flow. Taking main.xml script as example, the XML script flow engine building in embodiment mono-The statement of important structure as follows:
One, each parameter declaration of member:
; Each parameter declaration in member, comprises parameter name, parameter value, data type, parameterType. Wherein data type has shaping, character shape, character string shape etc., and parameter type has constant and variableTwo types.
Two, the statement of member is as follows:
Three, the statement of script structure is as follows:
Four, the statement of global data structures body is as follows:
Five, the structure that engine is used is as follows:
SeeData is engine global structure body used.
First engine resolves the member in script and script, then according to the structure in member containerPart is read into the function of using in the container of power function from dynamic base. Then according to first pinBeginning member in this moves, and enters into an operation member, looks for next member, moves nextIn the such circulating system of individual member until run to and exit member.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, not all in the present inventionSpirit and principle within, any amendment of doing, be equal to replacement, improvement etc., all should be included in thisWithin bright protection domain.

Claims (7)

1. a method that builds XML extend markup language script flow engine, is characterized in that,Comprise:
Step 1, the script of employing XML format configuration operation flow;
Step 2, reads whole scripts, and deposits script in script container;
Step 3, obtains all types of construction part modules in script, and by dynamic base module with corresponding structurePower function corresponding to part module reads in to this construction part module, then construction part module is deposited in script correspondingMember container in;
Step 4 reads first script from script container, carries out the beginning construction part module in this script,And obtain and start the next construction part module of construction part module;
Step 5, carries out this construction part module, and enters in corresponding member container and carry out operation flow;
Step 6, obtains the next construction part module of this construction part module, and repeated execution of steps 5, until holdRow is to exiting construction part module.
2. method according to claim 1, is characterized in that, the pin of configuration in described step 1This structure comprises script name, construction part module, beginning construction part module numbering and member container.
3. method according to claim 1, is characterized in that, reads all in described step 2Script specifically comprises:
Step 21, by script storage directory, dynamic base storage catalogue, daily record storing directory and dynamic library textPart is configured to basic configuration file, and is stored into background system;
Step 22, reads whole scripts according to the script storage directory in basic configuration file.
4. method according to claim 1, is characterized in that, in described step 2, script is depositedEntering script container specifically comprises: each script, to there being unique numbering, is sequentially complied with script by numberInferior depositing in script container.
5. method according to claim 1, is characterized in that, the component dies in described step 3Piece comprises beginning construction part module, exits construction part module, finishes construction part module and/or composite component module.
6. method according to claim 1, is characterized in that, in described step 3: in scriptEach construction part module to there being unique numbering.
7. method according to claim 1, is characterized in that, described step 5 also comprises:
Step 51, if this construction part module, for exiting construction part module, finishes to build XML script flow engine;
Step 52, if this construction part module is for finishing construction part module or composite component module, obtains the next oneScript, and return to execution step 4.
CN201210544164.1A 2012-12-14 2012-12-14 A kind of method that builds XML script flow engine Active CN103077045B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210544164.1A CN103077045B (en) 2012-12-14 2012-12-14 A kind of method that builds XML script flow engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210544164.1A CN103077045B (en) 2012-12-14 2012-12-14 A kind of method that builds XML script flow engine

Publications (2)

Publication Number Publication Date
CN103077045A CN103077045A (en) 2013-05-01
CN103077045B true CN103077045B (en) 2016-05-11

Family

ID=48153582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210544164.1A Active CN103077045B (en) 2012-12-14 2012-12-14 A kind of method that builds XML script flow engine

Country Status (1)

Country Link
CN (1) CN103077045B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293687B (en) * 2015-06-25 2019-11-19 腾讯科技(深圳)有限公司 A kind of control method and device being packaged process
CN109254790A (en) * 2018-07-27 2019-01-22 京信通信***(中国)有限公司 Software package method, apparatus, computer storage medium and equipment
CN110135166B (en) * 2019-05-08 2021-03-30 北京国舜科技股份有限公司 Detection method and system for service logic vulnerability attack

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006130508A2 (en) * 2005-05-31 2006-12-07 Computer Associates Think, Inc. Executing a dialog using one or more xml components and one or more embedded scripts
CN1972296A (en) * 2006-12-05 2007-05-30 北京邮电大学 Method for generating service combined with various communication means based on XPL and its system
CN101216761A (en) * 2007-12-28 2008-07-09 北京邮电大学 Electric communication application software frame for NGN operation development

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006130508A2 (en) * 2005-05-31 2006-12-07 Computer Associates Think, Inc. Executing a dialog using one or more xml components and one or more embedded scripts
CN1972296A (en) * 2006-12-05 2007-05-30 北京邮电大学 Method for generating service combined with various communication means based on XPL and its system
CN101216761A (en) * 2007-12-28 2008-07-09 北京邮电大学 Electric communication application software frame for NGN operation development

Also Published As

Publication number Publication date
CN103077045A (en) 2013-05-01

Similar Documents

Publication Publication Date Title
US8689177B2 (en) Integration environment generator
US20150339269A1 (en) System and method for generating flowchart from a text document using natural language processing
CN103309904A (en) Method and device for generating data warehouse ETL (Extraction, Transformation and Loading) codes
Shoemaker et al. Cybersecurity: The essential body of knowledge
CN103077045B (en) A kind of method that builds XML script flow engine
CN106886535A (en) A kind of data pick-up method and apparatus for being adapted to multiple data sources
Khadka et al. Model-driven development of service compositions for enterprise interoperability
CN109522013A (en) A kind of code generating method and device of business function
Guo et al. An application of ontology to test case reuse
CN104679793A (en) Dynamic invoice template invoice issuing system
CN102520953A (en) Page generating method based on BPMN (business process modeling notation) and device
Juric et al. WS-BPEL 2.0 for SOA Composite Applications with IBM WebSphere 7
CN102811257A (en) Automatic publication and combination method for Web service
US20140324918A1 (en) Database Generation System, Method For Generating A Database, Product Line Management System And Non-Transitory Data Carrier
CN109918084A (en) A kind of data mapping method of business management system
John Leveraging traditional software engineering tools to ontology engineering under a new methodology
CN104298490A (en) Service publication method and device based on service oriented architecture
CN103176830A (en) Method for generating C++code based on combination of class diagram and activity diagram
Fabra et al. BPEL2DENEB: translation of BPEL processes to executable high-level Petri nets
Banciu et al. Bringing EU Entrepreneurs together through Crossborder Services: SPOCS-a Case Study
Augenstein et al. The service meta modeling editor–bottom-up integration of service models
CN114860566A (en) Source code testing method and device, electronic equipment and storage medium
Hoffmann et al. Planning@ sap: An application in business process management
Giannoulis Model-driven Alignment: Linking Business Strategy with Information Systems
CN102662719A (en) SOA based code translation method in PLM system component library

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