CN106293687B - A kind of control method and device being packaged process - Google Patents

A kind of control method and device being packaged process Download PDF

Info

Publication number
CN106293687B
CN106293687B CN201510359652.9A CN201510359652A CN106293687B CN 106293687 B CN106293687 B CN 106293687B CN 201510359652 A CN201510359652 A CN 201510359652A CN 106293687 B CN106293687 B CN 106293687B
Authority
CN
China
Prior art keywords
service logic
business
packaged
configuration file
business operation
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
CN201510359652.9A
Other languages
Chinese (zh)
Other versions
CN106293687A (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.)
Shenzhen Yayue Technology Co ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510359652.9A priority Critical patent/CN106293687B/en
Publication of CN106293687A publication Critical patent/CN106293687A/en
Application granted granted Critical
Publication of CN106293687B publication Critical patent/CN106293687B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

The embodiment of the invention discloses a kind of control methods and device for being packaged process, and wherein the realization of method includes: acquisition configuration file, parses the configuration file and obtains the parameter sets of business operation;Parameter sets according to the business operation determine the service logic needed to be implemented in being packaged process, determine the service logic corresponding operation;Operating result is obtained to the data execution service logic corresponding operation is packaged, the operating result is verified.The parameter sets of business operation are determined using configuration file, then control service logic by the parameter sets of business operation, then execute service logic.It can be realized the business logic processing being packaged in flowchart process, make to be packaged process and its result meets the demand of different business.

Description

A kind of control method and device being packaged process
Technical field
The present invention relates to field of computer technology, in particular to a kind of control method and device for being packaged process.
Background technique
Building, the packing of general Windows (Windows) product are all that the language of the scripting used is realized , on windows platform, mainly there is Command Shell (command shell) script, the script structure is simple, and process understands, But it when handling some complex logics, can not flexibly and effectively be controlled.
It is packaged process and generally comprises following steps:
1, engineering source code is compiled, PE (Portable Executable, executable file) is obtained;
2, the verification of CRT (C Runtime Library, C run-time library) is carried out to the PE file of generation;
3, it signs to PE file;
4, the PE file after signature verification;
5, according to engineering installation, installation kit is generated;
6, it signs to the installation kit of generation;
7, the installation kit after signature verification;
8, PE, SYMBOL and installation package file are uploaded;
9, mail notification related personnel.
In the above process, need to do certain business logic processing to related step, such as: compile different engineerings Source code;When generating installation kit, it is packaged different product function modules.But it can not be real using Command Shell script The now above business logic processing.
Summary of the invention
The embodiment of the invention provides a kind of control methods and device for being packaged process, for realizing flowchart process is packaged In business logic processing, make to be packaged the demand that process and its result meet different business.
A kind of control method being packaged process, comprising:
Configuration file is obtained, the configuration file is parsed and obtains the parameter sets of business operation;
Parameter sets according to the business operation determine the service logic that needs to be implemented in being packaged process, determine described in Service logic corresponding operation;
Operating result is obtained to the data execution service logic corresponding operation is packaged, the operating result is carried out Verification.
A kind of control device being packaged process, comprising:
Resolution unit parses the configuration file and obtains the parameter sets of business operation for obtaining configuration file;
Determination unit determines the business needed to be implemented in being packaged process for the parameter sets according to the business operation Logic determines the service logic corresponding operation;
Execution unit, for obtaining operating result to being packaged data and execute the service logic corresponding operation;
Verification unit, for being verified to the operating result.
As can be seen from the above technical solutions, the embodiment of the present invention, which has the advantage that, determines business using configuration file The parameter sets of operation, then service logic is controlled by the parameter sets of business operation, then execute service logic.It can be realized The business logic processing being packaged in flowchart process makes to be packaged process and its result meets the demand of different business.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without any creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is present invention method flow diagram;
Fig. 2 is present invention method flow diagram;
Fig. 3 is control device of embodiment of the present invention structure intention;
Fig. 4 is control device of embodiment of the present invention structure intention;
Fig. 5 is control device of embodiment of the present invention structure intention;
Fig. 6 is server architecture of embodiment of the present invention intention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that the described embodiments are only some of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of control methods for being packaged process characterized by comprising
101: obtaining configuration file, parse above-mentioned configuration file and obtain the parameter sets of business operation;
In example of the embodiment of the present invention, configuration file can be used for controlling the business operation for being packaged and needing to be implemented in process, It specifically can be with the realization of various logic parameter.Configuration file is the file of configurableization, can use such as XML The file of configurableization including (Extensible Markup Language, extensible markup language) technology is realized.Tool Body does not make uniqueness limitation using which kind of specific configuration file embodiment of the present invention.Include in the parameter sets of business operation Business operation specifies service logic, and the quantity of business operation can be much or seldom, the particular number embodiment of the present invention With no restriction.
It is specific as follows the embodiment of the invention also provides the scheme of the parameter sets of business operation true from configuration file: Above-mentioned acquisition configuration file, parses above-mentioned configuration file and obtains the parameter sets of business operation and include:
The configuration information in configuration file is obtained, the type comprising business operation, state, mark letter in above-mentioned configuration information At least one of in breath;The parameter sets of business operation are determined according to above-mentioned configuration information.
In the present embodiment, configuration file, which is further provided with, is packaged the type that each step executes in process, state, mark Information etc..Subsequent embodiment will provide more detailed example explanation to this.
102: the parameter sets according to above-mentioned business operation determine the service logic needed to be implemented in being packaged process, determine Above-mentioned service logic corresponding operation;
In the present embodiment, the configuration information in configuration file specifies the parameter sets of business operation, business operation Parameter sets then specify the service logic needed to be implemented, specific as follows: the above-mentioned set determination according to above-mentioned business operation is being beaten The service logic needed to be implemented in packet stream journey includes: reception identification parameter, determines identification information corresponding with above-mentioned identification parameter Then affiliated business operation determines that the corresponding service logic of the business operation is that the business needed to be implemented in being packaged process is patrolled Volume.
It can determine that service logic will be performed in configuration file by the identification information of input, Ke Yishi Existing increasingly complex packetization logic control.
In embodiments of the present invention, configuration file can be dedicated configuration file, such as: it is exclusively used in the configuration of QQ packing File, alternatively, being exclusively used in the configuration file of a certain office software;Dedicated configuration file can not have to input identification information, or Person inputs the identification information of few optional function selection;By taking Tencent computer house keeper as an example, Tencent computer house keeper has many function Can, such as: there is cloud checking and killing Trojan, system accelerates, loophole reparation, real-time protection, network speed protection, computer clinic, the small assistant of health Etc. functions.Based on different demands, the function of selection can be combined and be packed up, repertoire can also packed up. If being exclusively used in the configuration file of Tencent computer house keeper packing, the parameter set of whole business operations of above functions may include It closes, then default all executes;If there is identification information inputs, then it is then packaged the corresponding service logic of identification information, thus Realize the packing of corresponding function.
Identification information is inputted in the present embodiment, realizes and increasingly complex packetization logic is controlled, and can be applied to have logical With the configuration file of property;The configuration file of universal property, can configure various possible applications to packing process in business Then the parameter sets of operation select the service logic that needs to be implemented by input identification information, to adapt to a certain specifically beat Packet stream journey demand.It therefore, in the present embodiment, is not that the embodiment of the present invention must using the implementation of the identification information of input Must, but can be used as preferred implementation.
103: operating result is obtained to the above-mentioned service logic corresponding operation of data execution is packaged, to aforesaid operations result It is verified.
The embodiment of the present invention determines the parameter sets of business operation, then the parameter set for passing through business operation using configuration file Control service logic is closed, service logic is then executed.It can be realized the business logic processing being packaged in flowchart process, make to be packaged and flow Journey and its result meet the demand of different business.
In embodiments of the present invention, service logic can have many branches therefore service logic can be executed gradually, in order to More fully the mistake of generation and exception are detected, the embodiment of the invention provides solutions, specific as follows: above-mentioned industry Business logic contains at least two, the above method further include: during executing any service logic corresponding operation, record operation Log;Occur exiting packing process when mistake or exception in the implementation procedure of above-mentioned service logic, and exports aforesaid operations day Will.
By way of recording operation log in each logic implementation procedure, to obtain testing result, mistake is occurring Or packing process is exited when abnormal, it can the subsequent dimension of accurate output test result aspect by way of exporting operation log Shield.
The embodiment of the invention also provides execute different volumes to different business source codes using Template (template) The control of option is translated, it is specific as follows: above-mentioned to obtain operating result to being packaged data and execute above-mentioned service logic corresponding operation Include:
It is obtained out of template and is packaged the corresponding compiling option of data with above-mentioned, according to above-mentioned compiling option to being packaged number Operating result is obtained according to the corresponding operation of above-mentioned service logic is executed.
Increasingly complex beat may be implemented by executing different compiling options to different business source codes in the present embodiment Packet logic control.Template can be what technical staff write, and technical staff is according to the compiling demand selection compiling for being packaged data Option, to form template;Or technical staff selects according to the demand selection compiling for being packaged result, to form template.Afterwards Continuous embodiment will provide the concrete example explanation of template.
The present embodiment additionally provides the optional implementation of building application program process, specific as follows: executing above-mentioned industry It is engaged in carrying out file packing using Python (boa) script in logical process, above-mentioned Python script includes: file copy, source generation Code compiling, specified application execute, specified tool executes, Python script embed it is at least one of in execution.
Due to Python script have it is cross-platform, do not need to compile, while having the characteristics that high-level language again, support class, There is library file abundant, therefore can be adapted for the scheme of the embodiment of the present invention, for realizing complicated business logic Processing, and the efficiency of complicated business logical process is improved, different product function modules is packaged for different application demands.
The main thought of the technical solution of the embodiment of the present invention is by the file of configurableization come to needing to be implemented Service logic configured, what be can be used in this programme is XML technology, but is not limited only to XML.In addition, of the invention Embodiment realizes that one has parsing configuration file, executes by a kind of general, scripting language Python that can be cross-platform The service logic specified in configuration file, and to the application that implementing result is verified by force.As shown in Fig. 2, detailed process is as follows:
201: the configuration file of input being parsed, the set of business operation is obtained;
202: according to the logic specified in configuration file, executing corresponding operation and obtain operating result;
203: operating result is verified;
204: determining whether that there are also business operations, if so, otherwise entering 205 into 202;
205: exiting packing process.
In addition, in the implementation procedure of the above process, if there is any one existing mistake or exception, the application walked out of will record Into operation log, and stops to execute and be packaged process.
Packing configuration file and application builds process will be described in detail below as follows:
One, configuration file
In configuration file, type, state, flag information of each step etc., two industry as follows is can be set in we The attribute for logic of being engaged in:
<2 " enable=" True " template=" build_solution " of task type=">
< pram name=" solution_path " > ... </pram >
</task >
<2 " enable=" True " template=" build_solution " flag=" of task type=", 48 ">
< pram name=" solution_path " > ... </pram >
</task >
Two above service logic has different attributes, can be by being passed to different Flag when calling packing application (mark) parameter is performed to control which service logic needs.
It is also possible to be executed to different business source codes different by defining different Template (template) Option is compiled, template instances as follows:
Two, application program is constructed
Building application program in being packaged process of the embodiment of the present invention can be realization rate by Python script, Python script have the advantages that it is cross-platform, do not need to compile, while having the characteristics that high-level language again, support class, have it is rich Rich library file etc..
Python script can execute following a variety of different tasks, such as:
The copy of file (file);
The compiling of source code;
The execution of specified application, tool;
The embedded execution of Python script;
And the application program can also continue to extend, to support different service logic tasks.
It should be noted that concrete implementation of embodiment of the present invention mode can be a variety of, and such as: use different trays Formula saves configuration information, realizes the building application program etc. using different development languages.The citing of above embodiments is not It is interpreted as limiting the uniqueness of the embodiment of the present invention.
The embodiment of the invention also provides a kind of control devices for being packaged process, as shown in Figure 3, comprising:
Resolution unit 301 parses above-mentioned configuration file and obtains the parameter sets of business operation for obtaining configuration file;
Determination unit 302 needs to be implemented in being packaged process for the parameter sets determination according to above-mentioned business operation Service logic determines above-mentioned service logic corresponding operation;
Execution unit 303, for obtaining operating result to being packaged data and execute above-mentioned service logic corresponding operation;
Verification unit 304, for being verified to aforesaid operations result.
In example of the embodiment of the present invention, configuration file can be used for controlling the business operation for being packaged and needing to be implemented in process, It specifically can be with the realization of various logic parameter.Configuration file is the file of configurableization, can use such as XML The file of configurableization including (Extensible Markup Language, extensible markup language) technology is realized.Tool Body does not make uniqueness limitation using which kind of specific configuration file embodiment of the present invention.Include in the parameter sets of business operation Business operation specifies service logic, and the quantity of business operation can be much or seldom, the particular number embodiment of the present invention With no restriction.
The embodiment of the present invention determines the parameter sets of business operation, then the parameter set for passing through business operation using configuration file Control service logic is closed, service logic is then executed.It can be realized the business logic processing being packaged in flowchart process, make to be packaged and flow Journey and its result meet the demand of different business.
It is specific as follows: optional the embodiment of the invention also provides the scheme of the set of business operation true from configuration file Ground, above-mentioned resolution unit 301 include business operation in above-mentioned configuration information for obtaining the configuration information in configuration file Type, state, in identification information at least one of;The parameter sets of business operation are determined according to above-mentioned configuration information.
In the present embodiment, configuration file, which is further provided with, is packaged the type that each step executes in process, state, mark Information etc..Subsequent embodiment will provide more detailed example explanation to this.
In the present embodiment, the configuration information in configuration file specifies the set of business operation, the set of operational order The service logic needed to be implemented is then specified, specific as follows: optionally, above-mentioned determination unit 302, for receiving identification parameter, really Business operation belonging to fixed identification information corresponding with above-mentioned identification parameter, then determines the corresponding service logic of the business operation For the service logic needed to be implemented in being packaged process.
It can determine that service logic will be performed in configuration file by the parameter identification of input, Ke Yishi Existing increasingly complex packetization logic control.
In embodiments of the present invention, configuration file can be dedicated configuration file, such as: it is exclusively used in the configuration of QQ packing File, alternatively, being exclusively used in the configuration file of a certain office software;Dedicated configuration file can not have to input identification information, or Person inputs the identification information of few optional function selection;By taking Tencent computer house keeper as an example, Tencent computer house keeper has many function Can, such as: there is cloud checking and killing Trojan, system accelerates, loophole reparation, real-time protection, network speed protection, computer clinic, the small assistant of health Etc. functions.Based on different demands, the function of selection can be combined and be packed up, repertoire can also packed up. If being exclusively used in the configuration file of Tencent computer house keeper packing, the parameter set of whole business operations of above functions may include It closes, then default all executes;If there is identification information inputs, then it is then packaged the corresponding service logic of identification information, thus Realize the packing of corresponding function.
Identification information is inputted in the present embodiment, realizes and increasingly complex packetization logic is controlled, and can be applied to have logical With the configuration file of property;The configuration file of universal property, can configure various possible applications to packing process in business Then the parameter sets of operation select the service logic that needs to be implemented by input identification information, to adapt to a certain specifically beat Packet stream journey demand.It therefore, in the present embodiment, is not that the embodiment of the present invention must using the implementation of the identification information of input Must, but can be used as preferred implementation.
In embodiments of the present invention, service logic can have many branches therefore service logic can be executed gradually, in order to More fully the mistake of generation and exception are detected, the embodiment of the invention provides solutions, specific as follows: further Ground, as shown in figure 4, above-mentioned service logic contains at least two, above-mentioned control device further include:
Recording unit 401, for remembering during above-mentioned execution unit 303 executes any service logic corresponding operation Record operation log;
Flow control unit 402 is exited when for occurring mistake or exception in the implementation procedure of above-mentioned service logic and is beaten Packet stream journey;
Output unit 403, for exporting aforesaid operations log.
By way of recording operation log in each logic implementation procedure, to obtain testing result, mistake is occurring Or packing process is exited when abnormal, it can the subsequent dimension of accurate output test result aspect by way of exporting operation log Shield.
The embodiment of the invention also provides execute different volumes to different business source codes using Template (template) The control of option is translated, specific as follows: optionally, above-mentioned execution unit 303 is packaged data with above-mentioned for obtaining out of template Corresponding compiling option, according to above-mentioned compiling option, to being packaged, the above-mentioned service logic of data execution is corresponding to be operated As a result.
Increasingly complex beat may be implemented by executing different compiling options to different business source codes in the present embodiment Packet logic control.
The present embodiment additionally provides the optional implementation of building application program process, specific as follows: optionally, above-mentioned to hold Row unit 303, it is above-mentioned for carrying out file packing using boa Python script during executing above-mentioned service logic Python script includes: file copy, compilation of source code, specified application execute, specified tool executes, Python script It embeds at least one of in execution.
Due to Python script have it is cross-platform, do not need to compile, while having the characteristics that high-level language again, support class, There is library file abundant, therefore can be adapted for the scheme of the embodiment of the present invention, for realizing complicated business logic Processing, and the efficiency of complicated business logical process is improved, different product function modules is packaged for different application demands.
The embodiment of the invention also provides another control devices for being packaged process, as shown in Figure 5, comprising: reception device 501, output device 502, processor 503 and memory 504;Wherein memory 504 can be used for processor 503 and execute Required caching in data handling procedure can also provide the memory space of accordingly called data and/or processing result;
Wherein, processor 503 parse above-mentioned configuration file and obtain the parameter set of business operation for obtaining configuration file It closes;Parameter sets according to above-mentioned business operation determine the service logic needed to be implemented in being packaged process, determine above-mentioned business Logic corresponding operation;Operating result is obtained to the above-mentioned service logic corresponding operation of data execution is packaged, to aforesaid operations As a result it is verified.
In example of the embodiment of the present invention, configuration file can be used for controlling the business operation for being packaged and needing to be implemented in process, It specifically can be with the realization of various logic parameter.Configuration file is the file of configurableization, can use such as XML The file of configurableization including (Extensible Markup Language, extensible markup language) technology is realized.Tool Body does not make uniqueness limitation using which kind of specific configuration file embodiment of the present invention.Include in the parameter sets of business operation Business operation specifies service logic, and the quantity of business operation can be much or seldom, the particular number embodiment of the present invention With no restriction.
The embodiment of the present invention determines the parameter sets of business operation, then the parameter set for passing through business operation using configuration file Control service logic is closed, service logic is then executed.It can be realized the business logic processing being packaged in flowchart process, make to be packaged and flow Journey and its result meet the demand of different business.
It is specific as follows the embodiment of the invention also provides the scheme of the parameter sets of business operation true from configuration file: Above-mentioned acquisition configuration file, parsing above-mentioned configuration file and obtaining the parameter sets of business operation includes: to obtain in configuration file At least one of configuration information, in the type, state, identification information in above-mentioned configuration information comprising business operation;According to above-mentioned Configuration information determines the parameter sets of business operation.
In the present embodiment, configuration file, which is further provided with, is packaged the type that each step executes in process, state, mark Information etc..Subsequent embodiment will provide more detailed example explanation to this.
In the present embodiment, the configuration information in configuration file specifies the set of business operation, the set of operational order The service logic needed to be implemented is then specified, specific as follows: above-mentioned processor 503, for the above-mentioned collection according to above-mentioned business operation It closes and determines that the service logic needed to be implemented in being packaged process includes:
Identification parameter is received, business operation belonging to identification information corresponding with above-mentioned identification parameter is determined, then determines The corresponding service logic of the business operation is the service logic needed to be implemented in being packaged process.
It can determine that service logic will be performed in configuration file by the parameter identification of input, Ke Yishi Existing increasingly complex packetization logic control.
In embodiments of the present invention, configuration file can be dedicated configuration file, such as: it is exclusively used in the configuration of QQ packing File, alternatively, being exclusively used in the configuration file of a certain office software;Dedicated configuration file can not have to input identification information, or Person inputs the identification information of few optional function selection;By taking Tencent computer house keeper as an example, Tencent computer house keeper has many function Can, such as: there is cloud checking and killing Trojan, system accelerates, loophole reparation, real-time protection, network speed protection, computer clinic, the small assistant of health Etc. functions.Based on different demands, the function of selection can be combined and be packed up, repertoire can also packed up. If being exclusively used in the configuration file of Tencent computer house keeper packing, the parameter set of whole business operations of above functions may include It closes, then default all executes;If there is identification information inputs, then it is then packaged the corresponding service logic of identification information, thus Realize the packing of corresponding function.
Identification information is inputted in the present embodiment, realizes and increasingly complex packetization logic is controlled, and can be applied to have logical With the configuration file of property;The configuration file of universal property, can configure various possible applications to packing process in business Then the parameter sets of operation select the service logic that needs to be implemented by input identification information, to adapt to a certain specifically beat Packet stream journey demand.It therefore, in the present embodiment, is not that the embodiment of the present invention must using the implementation of the identification information of input Must, but can be used as preferred implementation.
In embodiments of the present invention, service logic can have many branches therefore service logic can be executed gradually, in order to More fully the mistake of generation and exception are detected, the embodiment of the invention provides solutions, specific as follows: above-mentioned industry Business logic contains at least two, and above-mentioned processor 503 is also used to during executing any service logic corresponding operation, note Record operation log;Occur exiting packing process when mistake or exception in the implementation procedure of above-mentioned service logic, and exports above-mentioned Operation log.
By way of recording operation log in each logic implementation procedure, to obtain testing result, mistake is occurring Or packing process is exited when abnormal, it can the subsequent dimension of accurate output test result aspect by way of exporting operation log Shield.
The embodiment of the invention also provides execute different volumes to different business source codes using Template (template) The control of option is translated, specific as follows: above-mentioned processor 503, for being grasped accordingly to being packaged data and execute above-mentioned service logic Obtaining operating result includes: to obtain to be packaged the corresponding compiling option of data with above-mentioned out of template, according to above-mentioned compiling choosing Item obtains operating result to the corresponding operation of the above-mentioned service logic of data execution is packaged.
Template can be what technical staff write, and technical staff is according to the compiling demand selection compiling choosing for being packaged data , to form template;Or technical staff selects according to the demand selection compiling for being packaged result, to form template.It is subsequent Embodiment will provide the concrete example explanation of template.
Increasingly complex beat may be implemented by executing different compiling options to different business source codes in the present embodiment Packet logic control.
The present embodiment additionally provides the optional implementation of building application program process, specific as follows: processor 503 is used During executing above-mentioned service logic use Python (boa) script carry out file packing, above-mentioned Python script packet Contain: file copy, compilation of source code, specified application execute, specified tool executes, Python script embed it is in execution At least one of.
Due to Python script have it is cross-platform, do not need to compile, while having the characteristics that high-level language again, support class, There is library file abundant, therefore can be adapted for the scheme of the embodiment of the present invention, for realizing complicated business logic Processing, and the efficiency of complicated business logical process is improved, different product function modules is packaged for different application demands.
The embodiment of the present invention has been also provided to another control device for being packaged process, as shown in fig. 6,
Fig. 6 is a kind of server architecture schematic diagram provided in an embodiment of the present invention, can be used to implement the control for being packaged process Device processed.The server 600 can generate bigger difference because configuration or performance are different, may include one or more Central processing unit (central processing units, CPU) 622 (for example, one or more processors) and storage Device 632, one or more storage application programs 642 or data 644 storage medium 630 (such as one or more Mass memory unit).Wherein, memory 632 and storage medium 630 can be of short duration storage or persistent storage.It is stored in storage The program of medium 630 may include one or more modules (diagram does not mark), and each module may include to server In series of instructions operation.Further, central processing unit 622 can be set to communicate with storage medium 630, service The series of instructions operation in storage medium 630 is executed on device 600.
Server 600 can also include one or more power supplys 626, one or more wired or wireless networks Interface 650, one or more input/output interfaces 658, and/or, one or more operating systems 641, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
The step as performed by the control device of packing process can be based on the server shown in fig. 6 in above-described embodiment Structure.The embodiment of the present invention can be applied in hardware configuration as shown in FIG. 6, can also be applied to PC, movement is set In the various equipment for needing to realize Software package such as standby, it is not limited to the citing of the embodiment of the present invention.
It is worth noting that, in above-mentioned control device embodiment, included each unit only according to function logic into What row divided, but be not limited to the above division, as long as corresponding functions can be realized;In addition, each functional unit Specific name is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
In addition, those of ordinary skill in the art will appreciate that realizing all or part of the steps in above-mentioned each method embodiment It is that relevant hardware can be instructed to complete by program, corresponding program can store in a kind of computer readable storage medium In, storage medium mentioned above can be read-only memory, disk or CD etc..
The above is only the preferable specific embodiments of the present invention, but scope of protection of the present invention is not limited thereto, any Those familiar with the art the variation that can readily occur in or replaces in the technical scope that the embodiment of the present invention discloses It changes, should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with the protection model of claim Subject to enclosing.

Claims (11)

1. a kind of control method for being packaged process characterized by comprising
Configuration file is obtained, the configuration file is parsed and obtains the parameter sets of business operation, the configuration file is configured with each Kind of possible application to packing process in business operation parameter sets, the configuration file, which also inputs, optional function selection Identification information;
Parameter sets according to the business operation determine the corresponding industry of the identification information needed to be implemented in being packaged process Business logic, determines the service logic corresponding operation, to realize the packing of the identification information corresponding function;
Compiling option corresponding with data are packaged is obtained out of template, executes institute to data are packaged according to the compiling option It states the corresponding operation of service logic and obtains operating result, the operating result is verified, the template is used for different Business source code executes the control of different compiling options.
2. method according to claim 1, which is characterized in that the acquisition configuration file parses the configuration file and obtains The parameter sets of business operation include:
The configuration information in configuration file is obtained, includes in the type, state, identification information of business operation in the configuration information At least one of;The parameter sets of business operation are determined according to the configuration information.
3. method according to claim 2, which is characterized in that the set according to the business operation, which determines, is being packaged stream The corresponding service logic of the identification information needed to be implemented in journey includes:
Identification parameter is received, business operation belonging to identification information corresponding with the identification parameter is determined, then determines the industry It is the service logic needed to be implemented in being packaged process that business, which operates corresponding service logic,.
4. according to claim 1 to 3 any one the methods, which is characterized in that the service logic contains at least two, institute State method further include:
During executing any service logic corresponding operation, operation log is recorded;In the implementation procedure of the service logic Packing process is exited when middle appearance mistake or exception, exports the operation log.
5. method according to claim 1, which is characterized in that use boa Python during executing the service logic Script carries out file packing, and the Python script includes: file copy, compilation of source code, specified application execute, are specified Tool executes, Python script embed it is at least one of in execution.
6. a kind of control device for being packaged process characterized by comprising
Resolution unit parses the configuration file and obtains the parameter sets of business operation, the configuration for obtaining configuration file File configuration have various possible applications to packing process in business operation parameter sets, the configuration file, which also inputs, to be had The identification information of optional function selection;
Determination unit determines the mark needed to be implemented in being packaged process for the parameter sets according to the business operation The corresponding service logic of information determines the service logic corresponding operation, to realize beating for the identification information corresponding function Packet;
Execution unit, for obtaining compiling option corresponding with data are packaged out of template, according to the compiling option to quilt Packaged data execute the corresponding operation of the service logic and obtain operating result, and the template is used for different business source codes Execute the control of different compiling options;
Verification unit, for being verified to the operating result.
7. control device according to claim 6, which is characterized in that
The resolution unit includes the class of business operation for obtaining the configuration information in configuration file, in the configuration information Type, state, in identification information at least one of;The parameter sets of business operation are determined according to the configuration information.
8. control device according to claim 7, which is characterized in that
The determination unit determines business belonging to identification information corresponding with the identification parameter for receiving identification parameter Then operation determines that the corresponding service logic of the business operation is the service logic needed to be implemented in being packaged process.
9. according to control device described in claim 6 to 8 any one, which is characterized in that the service logic includes at least two It is a, the control device further include:
Recording unit, for recording operation log during the execution unit executes any service logic corresponding operation;
Flow control unit exits packing process when for occurring mistake or exception in the implementation procedure of the service logic;
Output unit, for exporting the operation log.
10. control device according to claim 6, which is characterized in that
The execution unit, for carrying out file packing using boa Python script during executing the service logic, The Python script includes: file copy, compilation of source code, specified application execute, specified tool executes, Python foot Embedding for this is at least one of in execution.
11. a kind of computer readable storage medium, which is characterized in that be stored with program, described program quilt in the storage medium It is realized when execution such as the control method described in any one of claim 1 to 5 for being packaged process.
CN201510359652.9A 2015-06-25 2015-06-25 A kind of control method and device being packaged process Active CN106293687B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510359652.9A CN106293687B (en) 2015-06-25 2015-06-25 A kind of control method and device being packaged process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510359652.9A CN106293687B (en) 2015-06-25 2015-06-25 A kind of control method and device being packaged process

Publications (2)

Publication Number Publication Date
CN106293687A CN106293687A (en) 2017-01-04
CN106293687B true CN106293687B (en) 2019-11-19

Family

ID=57650362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510359652.9A Active CN106293687B (en) 2015-06-25 2015-06-25 A kind of control method and device being packaged process

Country Status (1)

Country Link
CN (1) CN106293687B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908404A (en) * 2017-11-17 2018-04-13 深圳市泉眼网络科技有限公司 program packaging method, system and terminal device
CN109976713A (en) * 2017-12-28 2019-07-05 中国电信股份有限公司 Script processing method and device for Service Assembly
CN108363578A (en) * 2018-01-29 2018-08-03 深圳前海有电物联科技有限公司 Application program packaging method, electronic device and computer storage media
CN109144563A (en) * 2018-06-29 2019-01-04 平安科技(深圳)有限公司 Application component constructs packaging method, device and computer storage medium
CN109254790A (en) * 2018-07-27 2019-01-22 京信通信系统(中国)有限公司 Software package method, apparatus, computer storage medium and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631262A (en) * 2009-08-25 2010-01-20 中兴通讯股份有限公司 VoiceXML business integrated development system and realizing method thereof
CN102521687A (en) * 2011-12-01 2012-06-27 中国资源卫星应用中心 Miniaturized universal platform for preprocessing remote-sensing satellite data
CN103077045A (en) * 2012-12-14 2013-05-01 北京思特奇信息技术股份有限公司 Method for constructing XML (Extensive Markup Language) script workflow engine
CN103699384A (en) * 2013-12-23 2014-04-02 青岛优维奥信息技术有限公司 Rapid development method for project process management and data content management
CN104063273A (en) * 2014-06-13 2014-09-24 航天恒星科技有限公司 Center control type business process dispatching management system and realizing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631262A (en) * 2009-08-25 2010-01-20 中兴通讯股份有限公司 VoiceXML business integrated development system and realizing method thereof
CN102521687A (en) * 2011-12-01 2012-06-27 中国资源卫星应用中心 Miniaturized universal platform for preprocessing remote-sensing satellite data
CN103077045A (en) * 2012-12-14 2013-05-01 北京思特奇信息技术股份有限公司 Method for constructing XML (Extensive Markup Language) script workflow engine
CN103699384A (en) * 2013-12-23 2014-04-02 青岛优维奥信息技术有限公司 Rapid development method for project process management and data content management
CN104063273A (en) * 2014-06-13 2014-09-24 航天恒星科技有限公司 Center control type business process dispatching management system and realizing method

Also Published As

Publication number Publication date
CN106293687A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
US11422778B2 (en) Development environment for real-time dataflow programming language
CN110096338B (en) Intelligent contract execution method, device, equipment and medium
CN106293687B (en) A kind of control method and device being packaged process
CN107291438B (en) Automatic script generation method and device and electronic equipment
EP2368189B1 (en) Debugging pipeline
US20130263090A1 (en) System and method for automated testing
US9052979B2 (en) Program code library searching and selection in a networked computing environment
CN106557413A (en) Based on the method and apparatus that code coverage obtains test case
US20130125092A1 (en) Generating deployable code from simulation models
Bouraqadi et al. Test-driven development for generated portable Javascript apps
CN109408101A (en) A kind of code development maintaining method and electronic equipment for programming
US8516457B2 (en) Method, system and program storage device that provide for automatic programming language grammar partitioning
Ray An overview of webassembly for iot: Background, tools, state-of-the-art, challenges, and future directions
EP2972880B1 (en) Kernel functionality checker
KR20160098794A (en) Apparatus and method for skeleton code generation based on device program structure modeling
Tang et al. When virtualization encounter AFL
US20130111432A1 (en) Validation of a system model including an activity diagram
US9710360B2 (en) Optimizing error parsing in an integrated development environment
CN108885574B (en) System for monitoring and reporting performance and correctness issues at design, compilation, and runtime
Padaryan et al. Methods and software tools to support combined binary code analysis
CN116212398B (en) Game management method, device, equipment and medium based on data center
CN113986346A (en) Analysis method and device for Dubbo interface implementation class
Olsson et al. Investigation of High-Level Language Support in a Resource-Constrained Embedded Environment
Ramachandran Stack Space Analysis for ARM Executables
JP2006228205A (en) Random code generation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221201

Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518000

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TR01 Transfer of patent right