CN111401825A - Instantiation method and device - Google Patents
Instantiation method and device Download PDFInfo
- Publication number
- CN111401825A CN111401825A CN202010088806.6A CN202010088806A CN111401825A CN 111401825 A CN111401825 A CN 111401825A CN 202010088806 A CN202010088806 A CN 202010088806A CN 111401825 A CN111401825 A CN 111401825A
- Authority
- CN
- China
- Prior art keywords
- parameters
- instantiation
- template
- job
- execution flow
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 230000006870 function Effects 0.000 claims description 75
- 238000013515 script Methods 0.000 claims description 36
- 238000004590 computer program Methods 0.000 claims description 9
- 238000011161 development Methods 0.000 abstract description 30
- 238000010586 diagram Methods 0.000 description 20
- 238000012545 processing Methods 0.000 description 19
- 230000008569 process Effects 0.000 description 12
- 238000004519 manufacturing process Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 6
- 238000005192 partition Methods 0.000 description 6
- 230000009286 beneficial effect Effects 0.000 description 5
- 238000012423 maintenance Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000009795 derivation Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 238000010606 normalization Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000003908 quality control method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/02—Banking, e.g. interest calculation or account maintenance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/03—Credit; Loans; Processing thereof
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- General Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Economics (AREA)
- Software Systems (AREA)
- Entrepreneurship & Innovation (AREA)
- Technology Law (AREA)
- Development Economics (AREA)
- Data Mining & Analysis (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- General Engineering & Computer Science (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses an instantiation method and device, and relates to the technical field of computers. One embodiment of the method comprises: generating a template through an assembly model and configuration parameters submitted by a user; analyzing the template to obtain the configuration parameters; and performing instantiation operation on the template based on the configuration parameters to obtain an instantiation result. The implementation mode can solve the technical problem of low development efficiency.
Description
Technical Field
The invention relates to the technical field of computers, in particular to an instantiation method and device.
Background
The business system needs to process business data by adopting a background batch operation instance on a computer, so that some business functions such as batch collection and payment service, settlement processing, automatic credit card repayment, regular automatic transfer, general ledger updating, report generation, data integration and the like are realized in batches. In order to support various batch functions, a large number of application programs or scripts and a plurality of job instances need to be developed, and the key technical problems are that:
1. the data volume is huge, the data can not be stored in only a single database partition, and simultaneously, a large amount of business data processing can not be completed within a set time only by running a single program or script, and the processing of the banking business data can be realized by simultaneously processing the data in different database partitions by supporting running a plurality of programs or scripts with the same function.
2. The batch service function is complex, the data amount to be processed is huge, the batch service function can not be completed only by running one job instance, and the batch service function is completed by orderly running the related job instances according to the dependency relationship among the job instances.
3. From test to production, the business system needs to repeatedly run the job instance set according to a certain frequency to perform batch processing on daily business data. Therefore, a job execution flow needs to be created to set the dependency relationship between the job instances, so that the scheduling tool can repeatedly interpret the dependency relationship to schedule the job instances in sequence.
4. From test to production, a plurality of different system environments are needed to process the test and production of each stage, the same program or script cannot be directly operated in each environment with different system configuration parameters, and in different system environments, the system configuration parameters of the scheduling tool are different, and the same job execution flow instance cannot be directly read by the scheduling tool in each environment with different system configuration parameters of the scheduling tool.
5. Different system environments may have different definitions for the same database, and the same job execution flow instance cannot simultaneously support data processing for databases having different definitions.
6. Batch business data processing supporting multiple legal persons inside and outside is needed, and due to the difference of business scope, differentiated programs or scripts and job execution flow instances need to be run.
The job execution flow configuration interface provided by the scheduling tool does not support parameterized flexible configuration of job execution flow instances, only supporting a piece-by-piece configuration of job instances to be run. Technical personnel need to respectively complete the input of scheduling tool system configuration information, legal person information, running frequency information, front-back dependency relationship information, job instance information and the like to complete the configuration of one job instance in the job execution flow instance.
Since the job execution flow configuration interface provided by the scheduling tool only supports the job execution flow instance information, when some kind of information in the job execution flow changes, the job execution flow instance needs to be reconfigured and adjusted. For example, when the configuration information of the scheduling tool system is changed or the configuration information of the scheduling tool system is different in a plurality of sets of system environments, a technician needs to perform the configuration of the job execution flow instance again to adjust the configuration information of the scheduling tool system therein; when a new overseas farmer is added, the job execution flow instance needs to be reconfigured for the new farmer information.
The job execution flow instance corresponding to the database definition information is not linked with the actual database definition of the system, so that the configuration in the job execution flow instance is completely required by manually referring to the existing actual database definition.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
with the expansion of business, the existing semi-automatic semi-manual template development operation and operation instance making method mainly has the following defects: only partial rule instantiation is supported on the template operation partially configured with instantiation parameters. Technicians need to complete the development of system configuration parameters, database definition parameters, job customization parameters, programs or scripts respectively to start job instantiation. The system environment information parameters, database definition information parameters and job self-defining parameters used by job instantiation are completely realized by writing configuration scripts by technicians, and no standard parameter maintenance interface support exists, so that a large amount of quality control work of the configuration parameter scripts is required besides the development of the configuration parameter scripts. The database definition information is not linked with the actual database definition of the system, so that the configuration and the check are completely carried out by manually referring to the existing actual database definition, and the parameters need to be subjected to larger configuration and check workload. Technicians need to directly develop the template operation according to batch functions, so that the technicians need to develop a large amount of templates, and the efficiency is low.
Technicians need to directly develop the job execution flow examples according to batch functions, so that the technicians need to develop a large amount of jobs, and the efficiency is low; the existing configuration mode of the job execution flow instance does not support parameterized flexible configuration of the job execution flow instance, even if the same basic configuration information exists in different job execution flow instances, the same basic configuration information cannot be reused, and the job execution flow instance needs to be reconfigured when certain type of configuration information is changed, so that technicians need to perform a large amount of repeated configuration due to the configuration mode, and the efficiency is low; the existing job execution flow instance configuration mode does not link the content of the corresponding relationship between the job execution flow instance and the actual definition of the database, so that technicians are required to compare the actual definition of the database to perform the configuration of the job execution flow instances one by one, and the job execution flow instances are required to be subjected to larger configuration and checking workload.
Disclosure of Invention
In view of this, embodiments of the present invention provide an instantiation method and apparatus to solve the technical problem of low development efficiency.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided an instantiation method including:
generating a template through an assembly model and configuration parameters submitted by a user;
analyzing the template to obtain the configuration parameters;
and performing instantiation operation on the template based on the configuration parameters to obtain an instantiation result.
Optionally, generating a template by assembling the model and the configuration parameters submitted by the user includes:
generating template operation through a template operation assembly model and configuration parameters submitted by a user; or,
and generating a job execution flow template through the job execution flow template assembly model and the configuration parameters submitted by the user.
Optionally, the template job assembly model defines a program or script for implementing job functions, and instantiation parameters; the job execution flow template assembly model defines job instance information and instantiation parameters for realizing batch functions;
the program or the script is used for realizing a service batch function, the job instance information comprises job instance self information, context dependency relationship information and running frequency information, and the instantiation parameters comprise public parameters and private parameters.
Optionally, the public parameters include system environment information parameters, legal information parameters, and database definition information parameters;
the private parameters comprise job self-defining parameters and instantiation rule parameters, or the private parameters comprise job execution flow self-defining parameters and instantiation rule parameters.
Optionally, the configuration parameters submitted by the user include system environment information parameters, legal information parameters, database definition information parameters, job customization parameters, and instantiation rule parameters; or the configuration parameters submitted by the user comprise system environment information parameters, legal information parameters, database definition information parameters, job execution flow self-defining parameters and instantiation rule parameters.
Optionally, performing an instantiation operation on the template based on the configuration parameter to obtain an instantiation result, including:
instantiating the template operation based on the configuration parameters to obtain an operation example; or, based on the configuration parameters, performing instantiation operation on the job execution flow template to obtain a job execution flow instance.
Optionally, instantiating the template job based on the configuration parameter to obtain a job instance, where the instantiating operation includes:
determining instantiation operation required to be carried out on the template operation based on instantiation rule parameters in the configuration parameters;
instantiating the template operation according to instantiation operation required to be performed on the template operation and other configuration parameters in the configuration parameters to obtain an operation example; or,
based on the configuration parameters, performing instantiation operation on the job execution flow template to obtain a job execution flow instance, including:
determining instantiation operation required to be performed on the job execution flow template based on instantiation rule parameters in the configuration parameters;
and according to instantiation operation required to be performed on the job execution flow template and other configuration parameters in the configuration parameters, performing instantiation operation on the job execution flow template to obtain a job execution flow example.
Optionally, performing an instantiation operation on the template based on the configuration parameter to obtain an instantiation result, including:
judging whether the configuration parameters meet preset rules or not;
if so, performing instantiation operation on the template based on the configuration parameters to obtain an instantiation result;
if not, prompting the user to adjust the configuration parameters.
In addition, according to another aspect of the embodiments of the present invention, there is provided an instantiation apparatus including:
the generating module is used for generating a template through the assembly model and the configuration parameters submitted by the user;
the analysis module is used for analyzing the template to obtain the configuration parameters;
and the instantiation module is used for carrying out instantiation operation on the template based on the configuration parameters to obtain an instantiation result.
Optionally, the generating module is further configured to:
generating template operation through a template operation assembly model and configuration parameters submitted by a user; or,
and generating a job execution flow template through the job execution flow template assembly model and the configuration parameters submitted by the user.
Optionally, the template job assembly model defines a program or script for implementing job functions, and instantiation parameters; the job execution flow template assembly model defines job instance information and instantiation parameters for realizing batch functions;
the program or the script is used for realizing a service batch function, the job instance information comprises job instance self information, context dependency relationship information and running frequency information, and the instantiation parameters comprise public parameters and private parameters.
Optionally, the public parameters include system environment information parameters, legal information parameters, and database definition information parameters;
the private parameters comprise job self-defining parameters and instantiation rule parameters, or the private parameters comprise job execution flow self-defining parameters and instantiation rule parameters.
Optionally, the configuration parameters submitted by the user include system environment information parameters, legal information parameters, database definition information parameters, job customization parameters, and instantiation rule parameters; or the configuration parameters submitted by the user comprise system environment information parameters, legal information parameters, database definition information parameters, job execution flow self-defining parameters and instantiation rule parameters.
Optionally, the instantiation module is further configured to:
instantiating the template operation based on the configuration parameters to obtain an operation example; or, based on the configuration parameters, performing instantiation operation on the job execution flow template to obtain a job execution flow instance.
Optionally, the instantiation module is further configured to:
determining instantiation operation required to be carried out on the template operation based on instantiation rule parameters in the configuration parameters;
instantiating the template operation according to instantiation operation required to be performed on the template operation and other configuration parameters in the configuration parameters to obtain an operation example; or,
determining instantiation operation required to be performed on the job execution flow template based on instantiation rule parameters in the configuration parameters;
and according to instantiation operation required to be performed on the job execution flow template and other configuration parameters in the configuration parameters, performing instantiation operation on the job execution flow template to obtain a job execution flow example.
Optionally, the instantiation module is further configured to:
judging whether the configuration parameters meet preset rules or not;
if so, performing instantiation operation on the template based on the configuration parameters to obtain an instantiation result;
if not, prompting the user to adjust the configuration parameters.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any of the embodiments described above.
According to another aspect of the embodiments of the present invention, there is also provided a computer readable medium, on which a computer program is stored, which when executed by a processor implements the method of any of the above embodiments.
One embodiment of the above invention has the following advantages or benefits: because the template is generated by the assembly model and the configuration parameters submitted by the user, the template is analyzed to obtain the configuration parameters, and the template is instantiated based on the configuration parameters to obtain an instantiation result, the technical problem of low development efficiency in the prior art is solved. The embodiment of the invention has the following beneficial effects:
rapidly developing new batch business functions based on the template operation assembly model; flexible assembly, can reuse the existing system environment information parameters, legal information parameters and database definition information parameters; the instantiation rule parameters meet the requirement of carrying out multiple selections according to different scene requirements when the template operation is instantiated; the development of a template operation assembly model can meet the requirements of different system environments, different batch service function ranges of legal persons, differentiated database definitions and the like; a standard parameter maintenance interface; the data processing effectiveness is improved by dividing a data table with huge data volume and complex service scene according to a database and splitting a multi-process parallel processing job instance by using the reference of the database information parameters and the custom information parameters to support the instantiation of the same template job.
Rapidly developing new batch business functions based on the operation execution flow template assembly model; flexible assembly, can reuse the existing system environment information parameters, legal information parameters and database definition information parameters; the instantiation rule parameters meet the requirement of instantiating the operation execution flow template, and can be selected in various ways according to different scene requirements; the development of the one-time operation execution flow template assembly model can meet the requirements of different system environments, different batch service function ranges of legal persons, differentiated database definitions and the like.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main flow of an instantiation method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a main flow of an instantiation method according to one referenceable embodiment of the present invention;
FIG. 3 is a schematic diagram of an instantiation method in accordance with one referenceable embodiment of the present invention;
FIG. 4 is a schematic illustration of the main flow of an instantiation method in accordance with yet another referenceable embodiment of the present invention;
FIG. 5 is a schematic diagram of a main flow of an instantiation method in accordance with another referenceable embodiment of the present invention;
FIG. 6 is a schematic diagram of an instantiation method in accordance with one referenceable embodiment of the present invention;
FIG. 7 is a schematic diagram of a main flow of an instantiation method according to still another referential embodiment of the present invention;
FIG. 8 is a schematic diagram of the main modules of an instantiation device, in accordance with an embodiment of the present invention;
FIG. 9 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 10 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a main flow of a method of generating a job instance according to an embodiment of the present invention. As an embodiment of the present invention, as shown in fig. 1, the method for generating a job instance may include:
step 101, generating a template through the assembly model and the configuration parameters submitted by the user.
In an embodiment of the present invention, the assembly model may be a stencil job assembly model or a job execution flow stencil assembly model. Optionally, the step 101 may include generating a template job through a template job assembly model and configuration parameters submitted by a user; or generating the job execution flow template through the job execution flow template assembly model and the configuration parameters submitted by the user.
In the embodiment of the invention, the template job assembly model defines a program or script for realizing job functions and instantiation parameters; the job execution flow template assembly model defines job instance information and instantiation parameters that implement batch functions. The program or the script is used for realizing a service batch function, the job instance information comprises job instance self information, context dependency relationship information and running frequency information, and the instantiation parameters comprise public parameters and private parameters. Optionally, the public parameters include system environment information parameters, legal information parameters, and database definition information parameters; the private parameters comprise job self-defining parameters and instantiation rule parameters, or the private parameters comprise job execution flow self-defining parameters and instantiation rule parameters.
Correspondingly, the configuration parameters submitted by the user comprise a system environment information parameter, a legal information parameter, a database definition information parameter, a job self-defining parameter and an instantiation rule parameter; or the configuration parameters submitted by the user comprise system environment information parameters, legal information parameters, database definition information parameters, job execution flow self-defining parameters and instantiation rule parameters.
And 102, analyzing the template to obtain the configuration parameters.
In this step, the template generated in step 101 is analyzed to obtain the configuration parameters submitted by the user.
Step 103, performing instantiation operation on the template based on the configuration parameters to obtain an instantiation result.
In this step, an instantiation operation is performed on the template based on the configuration parameters, so as to obtain an instantiation result corresponding to the template. For example, the template job is instantiated based on the configuration parameters to obtain a job instance; or, based on the configuration parameters, performing instantiation operation on the job execution flow template to obtain a job execution flow instance.
The embodiment of the invention adopts the technical means that the template is generated by assembling the model and the configuration parameters submitted by the user, the template is analyzed to obtain the configuration parameters, and the template is instantiated based on the configuration parameters to obtain the instantiation result, so the technical problem of low development efficiency in the prior art is solved.
In order to solve the technical problems existing in the prior art, the technical capability needs to be designed and realized in batch operation: a uniform batch template operation assembly model is established to improve the development efficiency and quality; providing abundant system environment information, legal person information and database definition information for a template operation assembly model to use; the standard instantiation of various scenes can be carried out on the template operation manufactured by the template operation assembly model.
The embodiment of the invention introduces a template operation assembly model for technicians to complete the development of the template operation, the existing configuration parameters are maximally reused in an assembly mode, the technicians can manufacture the template operation only by carrying out necessary operation self-defining parameters, instantiation rule parameter configuration and program or script development, and then the instantiation operation required by the instantiation rule is carried out on the template operation by analyzing the instantiation rule parameters through an instance operation generation tool so as to generate the operation instance which is suitable for different system environments, different database definitions and different legal person batch service function ranges.
Fig. 2 is a schematic diagram of a main flow of a method of generating a job instance according to an embodiment of the present invention. As an embodiment of the present invention, as shown in fig. 2, the method for generating a job instance may include:
step 201, generating a template operation through a template operation assembly model and configuration parameters submitted by a user.
A job instance is any program or running script that can be executed on a particular system, containing the program and parameter information needed for the program to run. A job instance is the basic unit of execution and scheduling, representing an independently executable function instance.
The template operation is an un-instantiated operation and comprises program or script information to be instantiated and various types of configuration parameter information required by instantiation. Template jobs cannot be executed directly on a system, and require instantiation to generate job instances that can be executed directly on a particular system.
The configuration parameters are a set of configuration information needed to complete instantiation of the template job.
Optionally, the template job assembly model defines a program or script that implements job functions, and instantiation parameters. The program or the script is used for realizing a service batch function, and the instantiation parameters comprise public parameters and private parameters. The public parameters comprise system environment information parameters, legal information parameters and database definition information parameters, and the private parameters comprise job self-defining parameters and instantiation rule parameters.
Optionally, the configuration parameters submitted by the user include a system environment information parameter, a legal information parameter, a database definition information parameter, a job customization parameter, and an instantiation rule parameter. Technicians (namely users) configure various configuration parameters required to be used through the template operation assembly model: program or script information to be used, custom information parameters to be used when instantiating a job, rule parameters for implementing the instantiation of the job, system environment information parameters, legal information parameters and database definition information parameters to be used when implementing the instantiation of the job. Program or script information and legal information parameters are necessary options in the template operation assembly model, and the rest information is configured according to requirements.
In the embodiment of the invention, the template job assembly model comprises a program or script for realizing job functions and instantiation parameters, and covers the expansion capability of supporting different system environments, different database definitions, different internal and external business batch functions on the basis of supporting the basic functions of an organization program or script. Wherein, the program or script is used for realizing the specific service batch function; the common parameters are used for supporting instantiation of job instances suitable for different system environments, different database definitions and different legal person batch service function ranges. Through the template operation assembly model, technicians can efficiently assemble and manufacture the template operation meeting certain business functions. When the existing batch business function needs to be adjusted, technicians can quickly generate the template operation which can meet the adjusted batch business function by adjusting part of configuration parameters in the template operation assembly model corresponding to the existing template operation.
As shown in fig. 3, the instantiation parameter is one of the components for building the template job assembly model, and includes a system environment information parameter, a legal information parameter, a database definition information parameter, a job customization parameter, and an instantiation rule parameter.
The environment information parameter corresponds to system environment information of the operation instance to be operated, and when the system environment is changed, the operation can be supported to be operated in a new environment by adjusting the environment information parameter.
The legal person information parameter corresponds to legal person information of the operation example to be operated, and when a legal person is newly added, the batch service of the newly added legal person can be supported by operation processing through adjusting the legal person information parameter.
The database definition information parameter corresponds to definition information of a database which needs to be processed by the job instance, and when the database definition is adjusted, the adjustment of the database definition information parameter can support the job to process data in the database according to the adjusted database definition information.
The job self-defining parameters correspond to special instantiation requirements of the template job, and technicians can realize the job self-defining parameters by introducing the job self-defining parameters if certain fields of the job need to be replaced according to different service scenes.
The instantiation rule parameters correspond to instantiation scenes required by the template operation, such as which aspects need to be instantiated according to which system environment information of which set of system environment, and which aspects need to be instantiated according to which database definition information of which database.
The system environment information parameter, the legal information parameter and the database definition information parameter are public parameters, and the job self-defining parameter and the instantiation rule parameter are private parameters. Common parameters are uniformly and fundamentally set in the template operation assembly model, and technicians only need to specifically configure operation self-defining parameters and instantiation rule parameters according to the specific functional scene requirements of the operation. By distinguishing public parameters and private parameters, the work of carrying out stencil operation development by technicians is reduced to the maximum extent, the assembly efficiency is improved, and the setting error of public information is avoided.
Optionally, the template job assembly model is composed of a series of parameter classes, specific programs or scripts, and if the existing model cannot meet the new batch service requirement, the new template job assembly model can be formed by adjusting the parameter classes, the specific programs or scripts so as to meet the new batch service requirement. The method ensures that the new template operation assembly model inherits the part which can be used together from the existing template operation assembly model, and is focused on the different programs or scripts, the operation self-defined parameters and the instantiation rule parameters which need to be used specifically, thereby effectively reducing the development range and improving the development efficiency and the operation normalization.
Step 202, analyzing the template operation to obtain the configuration parameters.
In this step, configuration parameters in the template job may be resolved by the configurable job derivation means.
Step 203, performing instantiation operation on the template operation based on the configuration parameters to obtain an operation example.
Optionally, step 203 may comprise: determining instantiation operation required to be carried out on the template operation based on instantiation rule parameters in the configuration parameters; and instantiating the template operation according to instantiation operation required to be performed on the template operation and other configuration parameters in the configuration parameters to obtain an operation example. In the embodiment of the invention, the instantiation operation of the template operation is determined based on the analyzed instantiation rule parameters, and the template operation instantiation is finally completed by combining the contents corresponding to other configuration parameters specified in the template operation, so that the operation examples suitable for different system environments, different database definitions and different legal person batch service function ranges are manufactured.
In the embodiment of the invention, the instantiation rule parameters in the template operation are analyzed to determine which instantiation operations need to be performed on the template operation, for example, whether different instantiation needs to be performed on the system parameters to be used in the operation according to different system environments; whether a plurality of jobs with the same function need to be instantiated according to the definition of the database table partitions to process data in different database table partitions; which legal persons need to instantiate which functions of the job, etc. And then acquiring other instantiation configuration parameters, according to instantiation operation specified by the instantiation rule, and finally completing template job instantiation by combining contents corresponding to the other configuration parameters specified in the template job, so as to manufacture job instances suitable for different system environments, different database definitions and different legal batch service function ranges.
According to the various embodiments, it can be seen that the technical means of the present invention, which uses the template job assembly model and the configuration parameters submitted by the user to generate the template job, analyzes the template job to obtain the configuration parameters, and thus instantiates the template job based on the configuration parameters to obtain the job instance, solves the technical problem of low job instance development efficiency in the prior art. Compared with the existing semi-automatic semi-manual method, the embodiment of the invention has the following beneficial effects that the batch template operation is more complicated, the repeated development mechanism and the limited instantiation operation scene are realized: rapidly developing new batch business functions based on the template operation assembly model; flexible assembly, can reuse the existing system environment information parameters, legal information parameters and database definition information parameters; the instantiation rule parameters meet the requirement of carrying out multiple selections according to different scene requirements when the template operation is instantiated; the development of a template operation assembly model can meet the requirements of different system environments, different batch service function ranges of legal persons, differentiated database definitions and the like; a standard parameter maintenance interface; the data processing effectiveness is improved by dividing a data table with huge data volume and complex service scene according to a database and splitting a multi-process parallel processing job instance by using the reference of the database information parameters and the custom information parameters to support the instantiation of the same template job.
Fig. 4 is a schematic diagram of a main flow of a method of generating a job instance according to one referential embodiment of the present invention. As another embodiment of the present invention, as shown in FIG. 3, the method for generating a job instance may include:
Step 402, analyzing the template operation to obtain the configuration parameters.
Step 403, judging whether the configuration parameters conform to preset rules; if yes, go to step 404; if not, go to step 405.
And checking whether the configuration information (including program or script information, self-defined information parameters to be used in the instantiation of the operation, rule parameters, system environment information parameters, legal information parameters and database definition information parameters) is perfect and conforms to the rules.
Step 404, performing instantiation operation on the template operation based on the configuration parameters to obtain an operation example.
Step 405, prompting the user to adjust the configuration parameters.
If the configuration information is imperfect and does not conform to the rules, the technician is prompted to correct the problems of the template operation, and at the moment, the technician needs to adjust the configuration information of the template operation by adjusting the configuration in the template operation assembly model.
In addition, in one embodiment of the present invention, the detailed implementation of the method for generating the job instance is described in detail above, so that the repeated description is not repeated here.
In order to solve the technical problems in the prior art, the technical capability needs to be designed and realized in the batch job execution flow: establishing a uniform batch job execution flow template assembly model to improve the development efficiency and quality of the job execution flow template; providing abundant environment information, legal person information and database definition information of a scheduling tool system for an operation execution flow template assembly model to use; the standard instantiation of various scenes can be carried out on the job execution flow template manufactured by the job execution flow template assembly model.
The embodiment of the invention introduces the operation execution flow template assembly model to enable technicians to complete the development of the operation execution flow template, the existing configuration parameters are maximally reused in an assembly mode, the technicians can manufacture the operation execution flow template only by configuring necessary operation execution flow self-defining parameters, instantiation rule parameters, operation instance information and the like, and then the instantiation rule parameters are analyzed by the operation execution flow derivation device to perform instantiation operation required by instantiation on the operation execution flow template, so that the operation execution flow instance suitable for different system environments, different database definitions and different legal person batch service function ranges is generated.
Fig. 5 is a schematic diagram of the main flow of an instantiation method according to an embodiment of the present invention. As an embodiment of the present invention, as shown in fig. 5, the instantiation method may include:
step 501, generating a job execution flow template through a job execution flow template assembly model and configuration parameters submitted by a user.
A job instance is any program or running script that can be executed on a particular system, containing the program and parameter information needed for the program to run. A job instance is the basic unit of execution and scheduling, representing an independently executable function instance.
A job execution flow is a collection of one or more interdependent job instances having a function. The business function can only be correctly realized by running the job instances in sequence on the system according to the interdependencies configured in the job execution flow.
The job execution flow template is an un-instantiated job execution flow and comprises job execution flow information to be instantiated and various types of configuration parameter information required by instantiation. The job execution flow template can not be used as a direct basis for running the job instance in the system, the job execution flow instance needs to be generated through instantiation, and the generated job execution flow instance can be interpreted by a scheduling tool to schedule each job instance in sequence.
The configuration parameters are a set of configuration information needed to complete instantiation of a job execution flow template.
Optionally, the job execution flow template assembly model defines job instance information and instantiation parameters that implement batch functions. The information of the job instance comprises information of the job instance, information of a front-back dependency relationship and information of running frequency; the instantiation parameters comprise public parameters and private parameters. Optionally, the public parameters include a system environment information parameter, a legal information parameter, and a database definition information parameter, and the private parameters include a job execution flow customization parameter and an instantiation rule parameter.
Optionally, the configuration parameters submitted by the user include a system environment information parameter, a legal information parameter, a database definition information parameter, a job execution flow customization parameter, and an instantiation rule parameter. Technicians (i.e. users) configure various configuration parameters to be used through the job execution flow template assembly model: the system comprises a plurality of pieces of job instance information composing a job execution flow, custom information parameters used for instantiating the job execution flow, rule parameters used for realizing instantiation of the job execution flow, system environment information parameters used for instantiating the execution flow, legal information parameters, database definition information parameters and the like. The information of each operation instance and the information parameters of the legal person are necessary options in the operation execution flow template assembly model, and the rest information is configured according to the requirement.
In the embodiment of the invention, the job execution flow template assembly model comprises job instance information and instantiation parameters for realizing batch functions, and covers the expansion capability of supporting different system environments, different database definitions and different internal and external business batch functions on the basis of supporting the basic function of organizing the job instance information. The operation instance information is used for defining a specific operation instance operation scene and comprises operation instance self information, front-back dependency relationship information, operation frequency information and the like; the common parameters are used for supporting instantiation of the job execution flow applicable to different system environments, different database definitions and different legal batch business function ranges.
Optionally, the job execution flow template assembly model is an Excel-based job execution flow template assembly model, and a technician can efficiently assemble a job execution flow template satisfying a service function through an Excel document. When the existing batch service function needs to be adjusted, a technician can quickly generate the job execution flow template which can meet the adjusted batch service function by adjusting part of configuration parameters in the job execution flow template assembly model corresponding to the existing job execution flow template. The Excel-based operation execution flow template model assembly method enables technicians to carry out configuration intuitively, simply and effectively, and improves accuracy.
As shown in fig. 6, the instantiation parameter is one of the components of building a job execution flow template assembly model, and includes a system environment information parameter, a legal person information parameter, a database definition information parameter, a job execution flow custom parameter, and an instantiation rule parameter.
The environment information parameter corresponds to the environment information of the scheduling tool system for running the job execution flow instance, and when the environment of the scheduling tool system is changed, the operation of the job execution flow instance in a new environment can be supported by adjusting the environment information parameter.
The legal information parameter corresponds to legal information of the operation execution flow instance to be operated, and when a legal person is newly added, the operation execution flow instance can be supported to process the batch business of the newly added legal person by adjusting the legal information parameter.
The database definition information parameter corresponds to definition information of a database which needs to be processed by the job instance in the job flow instance, and when the database definition is adjusted, the adjustment of the database definition information parameter can support the job execution flow instance to schedule the job instance to process data in the database according to the adjusted database definition information.
The job execution flow self-defining parameter corresponds to a special instantiation requirement of the job execution flow template, for example, when some abnormal conditions occur in the scheduling process of the job execution flow, which special processing needs to be performed, a technician can realize the self-defining parameter by introducing the job execution flow.
The instantiation rule parameters correspond to instantiation scenarios required by the job execution flow template, such as which aspects need to be instantiated according to which scheduling tool system environment information of the scheduling tool of which system environment, and which aspects need to be instantiated according to which database definition information of which database.
The system environment information parameter, the legal information parameter and the database definition information parameter are public parameters, and the job execution flow self-defining parameter and the instantiation rule parameter are private parameters. The common parameters are uniformly and fundamentally set in the job execution flow template assembly model, and technicians only need to specifically configure the custom parameters and the instantiation rule parameters of the job execution flow according to the specific functional scene requirements of the job execution flow. By distinguishing public parameters and private parameters, the work of carrying out operation execution flow template development by technicians is reduced to the maximum extent, the assembly efficiency is improved, and the setting error of public information is avoided.
Optionally, the job execution flow template assembly model is composed of a series of parameter classes and specific job instance information, and if the existing model cannot meet the new batch service requirement, a new job execution flow template assembly model can be formed by adjusting the parameter classes and the specific job instance information to meet the new batch service requirement. The method ensures that the new job execution flow template assembly model inherits the part which can be commonly used from the existing job execution flow template assembly model, and focuses on the different job instance information, the job execution flow custom parameters and the instantiation rule parameters which need to be specifically used, thereby effectively reducing the development range and improving the development efficiency and the normalization of the job execution flow.
Step 502, analyzing the job execution flow template to obtain the configuration parameters.
In this step, the configuration parameters in the job execution flow template may be parsed by the configurable job execution flow derivation device.
Step 503, based on the configuration parameters, instantiating the job execution flow template to obtain a job execution flow instance.
Optionally, step 503 may include: determining instantiation operation required to be performed on the job execution flow template based on instantiation rule parameters in the configuration parameters; and according to instantiation operation required to be performed on the job execution flow template and other configuration parameters in the configuration parameters, performing instantiation operation on the job execution flow template to obtain a job execution flow example. In the embodiment of the present invention, which instantiation operations are specifically performed on the job execution flow template is determined based on the parsed instantiation rule parameters, and the instantiation of the job execution flow template is finally completed by combining other configuration parameters (such as job execution flow self-defining parameters, system environment information parameters, legal information parameters, database definition information parameters, and the like) specified in the job execution flow template, so as to manufacture job execution flow instances suitable for different system environments, different database definitions, and different legal batch business function ranges.
In the embodiment of the invention, the instantiation rule parameters in the job execution flow template are analyzed to determine which instantiation operations need to be specifically performed on the job execution flow template, for example, whether different instantiation needs to be performed on the system parameters to be used in the job execution flow according to different system environments; whether a plurality of job execution flows with the same function need to be instantiated according to the definition of the database table partitions to process data in different database table partitions; which job execution streams need to be instantiated to which legal persons. And then acquiring other configuration parameters, according to instantiation operation specified by the instantiation rule parameters, and finally completing instantiation of the job execution flow template by combining the contents corresponding to the other configuration parameters specified in the job execution flow template, so as to manufacture job execution flow examples suitable for different system environments, different database definitions and different legal person batch service function ranges.
According to the various embodiments, the technical means that the operation execution flow template is generated by the operation execution flow template assembly model and the configuration parameters submitted by the user, the operation execution flow template is analyzed to obtain the configuration parameters, and the operation execution flow template is instantiated based on the configuration parameters to obtain the operation execution flow instance is adopted, so that the technical problem that the operation execution flow instance development efficiency is low in the prior art is solved. Compared with the configuration mechanism of the existing operation execution flow instance, which is relatively complicated and repeated in configuration mode, the embodiment of the invention has the following beneficial effects: rapidly developing new batch business functions based on the operation execution flow template assembly model; flexible assembly, can reuse the existing system environment information parameters, legal information parameters and database definition information parameters; the instantiation rule parameters meet the requirement of instantiating the operation execution flow template, and can be selected in various ways according to different scene requirements; the development of the one-time operation execution flow template assembly model can meet the requirements of different system environments, different batch service function ranges of legal persons, differentiated database definitions and the like.
Fig. 7 is a schematic diagram of a main flow of an instantiation method according to one referenceable embodiment of the present invention. As still another embodiment of the present invention, as shown in fig. 3, the instantiation method may include:
step 701, generating a job execution flow template through the job execution flow template assembly model and configuration parameters submitted by a user.
And 702, analyzing the operation execution flow template to obtain the configuration parameters.
Step 703, determining whether the configuration parameters meet preset rules; if yes, go to step 704; if not, go to step 705.
And checking whether configuration information (such as job instance information, custom information parameters used for instantiating a job execution flow, rule parameters, system environment information parameters, legal information parameters, database definition information parameters and the like) is perfect and meets the rules.
Step 704, based on the configuration parameters, instantiating the job execution flow template to obtain a job execution flow instance.
Step 705, prompting the user to adjust the configuration parameters.
If the configuration parameters are not perfect and do not accord with the rules, the technical staff is prompted to correct the problems of the operation execution flow template, and at the moment, the technical staff needs to adjust the configuration parameters of the operation execution flow template by adjusting the configuration in the operation execution flow template assembly model.
In addition, in one embodiment of the present invention, the detailed implementation of the instantiation method is described in detail above, and therefore, the repeated content will not be described.
Fig. 8 is a schematic diagram of main modules of an instantiation apparatus according to an embodiment of the present invention, and as shown in fig. 8, the instantiation apparatus 800 includes a generation module 801, a parsing module 802 and an instantiation module 803. The generation module 801 is configured to generate a template according to the assembly model and configuration parameters submitted by a user; the analysis module 802 is configured to analyze the template to obtain the configuration parameter; the instantiation module 803 is configured to perform instantiation operation on the template based on the configuration parameter, so as to obtain an instantiation result.
Optionally, the generating module 801 is further configured to:
generating template operation through a template operation assembly model and configuration parameters submitted by a user; or,
and generating a job execution flow template through the job execution flow template assembly model and the configuration parameters submitted by the user.
Optionally, the template job assembly model defines a program or script for implementing job functions, and instantiation parameters; the job execution flow template assembly model defines job instance information and instantiation parameters for realizing batch functions;
the program or the script is used for realizing a service batch function, the job instance information comprises job instance self information, context dependency relationship information and running frequency information, and the instantiation parameters comprise public parameters and private parameters.
Optionally, the public parameters include system environment information parameters, legal information parameters, and database definition information parameters;
the private parameters comprise job self-defining parameters and instantiation rule parameters, or the private parameters comprise job execution flow self-defining parameters and instantiation rule parameters.
Optionally, the configuration parameters submitted by the user include system environment information parameters, legal information parameters, database definition information parameters, job customization parameters, and instantiation rule parameters; or the configuration parameters submitted by the user comprise system environment information parameters, legal information parameters, database definition information parameters, job execution flow self-defining parameters and instantiation rule parameters.
Optionally, the instantiating module 803 is further configured to:
instantiating the template operation based on the configuration parameters to obtain an operation example; or, based on the configuration parameters, performing instantiation operation on the job execution flow template to obtain a job execution flow instance.
Optionally, the instantiating module 803 is further configured to:
determining instantiation operation required to be carried out on the template operation based on instantiation rule parameters in the configuration parameters;
instantiating the template operation according to instantiation operation required to be performed on the template operation and other configuration parameters in the configuration parameters to obtain an operation example; or,
determining instantiation operation required to be performed on the job execution flow template based on instantiation rule parameters in the configuration parameters;
and according to instantiation operation required to be performed on the job execution flow template and other configuration parameters in the configuration parameters, performing instantiation operation on the job execution flow template to obtain a job execution flow example.
Optionally, the instantiating module 803 is further configured to:
judging whether the configuration parameters meet preset rules or not;
if so, performing instantiation operation on the template based on the configuration parameters to obtain an instantiation result;
if not, prompting the user to adjust the configuration parameters.
According to the various embodiments, the technical means that the operation execution flow template is generated by the operation execution flow template assembly model and the configuration parameters submitted by the user, the operation execution flow template is analyzed to obtain the configuration parameters, and the operation execution flow template is instantiated based on the configuration parameters to obtain the operation execution flow instance is adopted, so that the technical problem that the operation execution flow instance development efficiency is low in the prior art is solved. Compared with the configuration mechanism of the existing operation execution flow instance, which is relatively complicated and repeated in configuration mode, the embodiment of the invention has the following beneficial effects: rapidly developing new batch business functions based on the operation execution flow template assembly model; flexible assembly, can reuse the existing system environment information parameters, legal information parameters and database definition information parameters; the instantiation rule parameters meet the requirement of instantiating the operation execution flow template, and can be selected in various ways according to different scene requirements; the development of the one-time operation execution flow template assembly model can meet the requirements of different system environments, different batch service function ranges of legal persons, differentiated database definitions and the like.
It should be noted that, in the embodiment of the instantiation device of the present invention, the details of the instantiation method are already described in detail above, and therefore, the repeated contents are not described again.
Fig. 9 illustrates an exemplary system architecture 900 to which an instantiation method or instantiation apparatus of an embodiment of the invention may be applied.
As shown in fig. 9, the system architecture 900 may include terminal devices 901, 902, 903, a network 904, and a server 909. Network 904 is the medium used to provide communication links between terminal devices 901, 902, 903 and server 909. Network 904 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal devices 901, 902, 903 to interact with a server 909 over a network 904 to receive or send messages and the like. The terminal devices 901, 902, 903 may have installed thereon various messenger client applications such as, for example only, a shopping-like application, a web browser application, a search-like application, an instant messaging tool, a mailbox client, social platform software, etc.
The terminal devices 901, 902, 903 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 909 may be a server that provides various services, such as a background management server (for example only) that supports shopping websites browsed by users using the terminal devices 901, 902, 903. The background management server may analyze and otherwise process the received data such as the item information query request, and feed back a processing result (for example, target push information, item information — just an example) to the terminal device.
It should be noted that the instantiation method provided by the embodiment of the present invention is generally executed by the server 909, and accordingly, the instantiation apparatus is generally disposed in the server 909. The instantiation method provided by the embodiment of the present invention can also be executed by the terminal devices 901, 902, 903, and accordingly, the instantiation apparatus can be set in the terminal devices 901, 902, 903.
It should be understood that the number of terminal devices, networks, and servers in fig. 9 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 10, a block diagram of a computer system 1000 suitable for use with a terminal device implementing an embodiment of the invention is shown. The terminal device shown in fig. 10 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 10, the computer system 1000 includes a Central Processing Unit (CPU)1001 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)1002 or a program loaded from a storage section 1008 into a Random Access Memory (RAM) 1003. In the RAM1003, various programs and data necessary for the operation of the system 1000 are also stored. The CPU 1001, ROM 1002, and RAM1003 are connected to each other via a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
To the I/O interface 1005, AN input section 1006 including a keyboard, a mouse, and the like, AN output section 1007 including a terminal such as a Cathode Ray Tube (CRT), a liquid crystal display (L CD), and the like, a speaker, and the like, a storage section 1008 including a hard disk, and the like, and a communication section 1009 including a network interface card such as a L AN card, a modem, and the like, the communication section 1009 performs communication processing via a network such as the internet, a drive 1010 is also connected to the I/O interface 1005 as necessary, a removable medium 1011 such as a magnetic disk, AN optical disk, a magneto-optical disk, a semiconductor memory, and the like is mounted on the drive 1010 as necessary, so that a computer program read out therefrom is mounted into the storage section 1008 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication part 1009 and/or installed from the removable medium 1011. The computer program executes the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 1001.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer programs according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a generation module, a parsing module, and an instantiation module, wherein the names of the modules do not in some cases constitute a definition of the module itself.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: generating a template through an assembly model and configuration parameters submitted by a user; analyzing the template to obtain the configuration parameters; and performing instantiation operation on the template based on the configuration parameters to obtain an instantiation result.
According to the technical scheme of the embodiment of the invention, because the template is generated by adopting the assembly model and the configuration parameters submitted by the user, the template is analyzed to obtain the configuration parameters, and the template is instantiated based on the configuration parameters to obtain an instantiation result, the technical problem of low development efficiency in the prior art is solved. The embodiment of the invention has the following beneficial effects:
rapidly developing new batch business functions based on the template operation assembly model; flexible assembly, can reuse the existing system environment information parameters, legal information parameters and database definition information parameters; the instantiation rule parameters meet the requirement of carrying out multiple selections according to different scene requirements when the template operation is instantiated; the development of a template operation assembly model can meet the requirements of different system environments, different batch service function ranges of legal persons, differentiated database definitions and the like; a standard parameter maintenance interface; the data processing effectiveness is improved by dividing a data table with huge data volume and complex service scene according to a database and splitting a multi-process parallel processing job instance by using the reference of the database information parameters and the custom information parameters to support the instantiation of the same template job.
Rapidly developing new batch business functions based on the operation execution flow template assembly model; flexible assembly, can reuse the existing system environment information parameters, legal information parameters and database definition information parameters; the instantiation rule parameters meet the requirement of instantiating the operation execution flow template, and can be selected in various ways according to different scene requirements; the development of the one-time operation execution flow template assembly model can meet the requirements of different system environments, different batch service function ranges of legal persons, differentiated database definitions and the like.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (18)
1. An instantiation method, comprising:
generating a template through an assembly model and configuration parameters submitted by a user;
analyzing the template to obtain the configuration parameters;
and performing instantiation operation on the template based on the configuration parameters to obtain an instantiation result.
2. The method of claim 1, wherein generating the template from the assembly model and the user-submitted configuration parameters comprises:
generating template operation through a template operation assembly model and configuration parameters submitted by a user; or,
and generating a job execution flow template through the job execution flow template assembly model and the configuration parameters submitted by the user.
3. The method of claim 2, wherein the template job assembly model defines a program or script that implements job functionality, and instantiation parameters; the job execution flow template assembly model defines job instance information and instantiation parameters for realizing batch functions;
the program or the script is used for realizing a service batch function, the job instance information comprises job instance self information, context dependency relationship information and running frequency information, and the instantiation parameters comprise public parameters and private parameters.
4. The method of claim 3, wherein the common parameters include a system environment information parameter, a corporate information parameter, and a database definition information parameter;
the private parameters comprise job self-defining parameters and instantiation rule parameters, or the private parameters comprise job execution flow self-defining parameters and instantiation rule parameters.
5. The method of claim 2, wherein the user-submitted configuration parameters include system environment information parameters, corporate information parameters, database definition information parameters, job customization parameters, and instantiation rule parameters; or the configuration parameters submitted by the user comprise system environment information parameters, legal information parameters, database definition information parameters, job execution flow self-defining parameters and instantiation rule parameters.
6. The method of claim 2, wherein instantiating the template based on the configuration parameters to obtain an instantiation result comprises:
instantiating the template operation based on the configuration parameters to obtain an operation example; or, based on the configuration parameters, performing instantiation operation on the job execution flow template to obtain a job execution flow instance.
7. The method of claim 6, wherein instantiating the template job based on the configuration parameters to obtain a job instance comprises:
determining instantiation operation required to be carried out on the template operation based on instantiation rule parameters in the configuration parameters;
instantiating the template operation according to instantiation operation required to be performed on the template operation and other configuration parameters in the configuration parameters to obtain an operation example; or,
based on the configuration parameters, performing instantiation operation on the job execution flow template to obtain a job execution flow instance, including:
determining instantiation operation required to be performed on the job execution flow template based on instantiation rule parameters in the configuration parameters;
and according to instantiation operation required to be performed on the job execution flow template and other configuration parameters in the configuration parameters, performing instantiation operation on the job execution flow template to obtain a job execution flow example.
8. The method of claim 1, wherein instantiating the template based on the configuration parameters to obtain an instantiation result comprises:
judging whether the configuration parameters meet preset rules or not;
if so, performing instantiation operation on the template based on the configuration parameters to obtain an instantiation result;
if not, prompting the user to adjust the configuration parameters.
9. An instantiation apparatus, comprising:
the generating module is used for generating a template through the assembly model and the configuration parameters submitted by the user;
the analysis module is used for analyzing the template to obtain the configuration parameters;
and the instantiation module is used for carrying out instantiation operation on the template based on the configuration parameters to obtain an instantiation result.
10. The apparatus of claim 9, wherein the generating module is further configured to:
generating template operation through a template operation assembly model and configuration parameters submitted by a user; or,
and generating a job execution flow template through the job execution flow template assembly model and the configuration parameters submitted by the user.
11. The apparatus of claim 10, wherein the template job assembly model defines a program or script that implements job functionality, and instantiation parameters; the job execution flow template assembly model defines job instance information and instantiation parameters for realizing batch functions;
the program or the script is used for realizing a service batch function, the job instance information comprises job instance self information, context dependency relationship information and running frequency information, and the instantiation parameters comprise public parameters and private parameters.
12. The apparatus of claim 11, wherein the common parameters comprise a system environment information parameter, a corporate information parameter, and a database definition information parameter;
the private parameters comprise job self-defining parameters and instantiation rule parameters, or the private parameters comprise job execution flow self-defining parameters and instantiation rule parameters.
13. The apparatus of claim 10, wherein the user-submitted configuration parameters include system environment information parameters, corporate information parameters, database definition information parameters, job customization parameters, and instantiation rule parameters; or the configuration parameters submitted by the user comprise system environment information parameters, legal information parameters, database definition information parameters, job execution flow self-defining parameters and instantiation rule parameters.
14. The apparatus of claim 10, wherein the instantiation module is further configured to:
instantiating the template operation based on the configuration parameters to obtain an operation example; or, based on the configuration parameters, performing instantiation operation on the job execution flow template to obtain a job execution flow instance.
15. The apparatus of claim 14, wherein the instantiation module is further configured to:
determining instantiation operation required to be carried out on the template operation based on instantiation rule parameters in the configuration parameters;
instantiating the template operation according to instantiation operation required to be performed on the template operation and other configuration parameters in the configuration parameters to obtain an operation example; or,
determining instantiation operation required to be performed on the job execution flow template based on instantiation rule parameters in the configuration parameters;
and according to instantiation operation required to be performed on the job execution flow template and other configuration parameters in the configuration parameters, performing instantiation operation on the job execution flow template to obtain a job execution flow example.
16. The apparatus of claim 9, wherein the instantiation module is further configured to:
judging whether the configuration parameters meet preset rules or not;
if so, performing instantiation operation on the template based on the configuration parameters to obtain an instantiation result;
if not, prompting the user to adjust the configuration parameters.
17. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
18. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010088806.6A CN111401825B (en) | 2020-02-12 | 2020-02-12 | Instantiation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010088806.6A CN111401825B (en) | 2020-02-12 | 2020-02-12 | Instantiation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111401825A true CN111401825A (en) | 2020-07-10 |
CN111401825B CN111401825B (en) | 2023-07-07 |
Family
ID=71413196
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010088806.6A Active CN111401825B (en) | 2020-02-12 | 2020-02-12 | Instantiation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111401825B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653509A (en) * | 2015-12-24 | 2016-06-08 | 北京经纬恒润科技有限公司 | Document processing method and device |
CN107679140A (en) * | 2017-09-25 | 2018-02-09 | 中国银行股份有限公司 | Document handling method and system |
CN109740934A (en) * | 2018-12-29 | 2019-05-10 | 深圳前海微众银行股份有限公司 | O&M job control method, device, equipment and computer readable storage medium |
CN110046384A (en) * | 2019-03-12 | 2019-07-23 | 北京字节跳动网络技术有限公司 | Model instantiation method, apparatus, electronic equipment and computer readable storage medium |
-
2020
- 2020-02-12 CN CN202010088806.6A patent/CN111401825B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653509A (en) * | 2015-12-24 | 2016-06-08 | 北京经纬恒润科技有限公司 | Document processing method and device |
CN107679140A (en) * | 2017-09-25 | 2018-02-09 | 中国银行股份有限公司 | Document handling method and system |
CN109740934A (en) * | 2018-12-29 | 2019-05-10 | 深圳前海微众银行股份有限公司 | O&M job control method, device, equipment and computer readable storage medium |
CN110046384A (en) * | 2019-03-12 | 2019-07-23 | 北京字节跳动网络技术有限公司 | Model instantiation method, apparatus, electronic equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111401825B (en) | 2023-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109670297B (en) | Method and device for opening service permission, storage medium and electronic equipment | |
CN108984712A (en) | Counting method, equipment and readable storage medium storing program for executing are made based on business scenario | |
CN112633691A (en) | Method and device for generating custom approval process | |
CN114981775B (en) | Cloud-based API metadata management method and system for integrated API management | |
CN113435846A (en) | Business process arranging method and device, computer equipment and storage medium | |
TW201439792A (en) | System and method for accessing database | |
CN111125064B (en) | Method and device for generating database schema definition statement | |
CN112199373A (en) | Form development method and system | |
US20230092752A1 (en) | System and method for development of gateway policies in an application programming interface environment | |
CN109815107A (en) | The method and apparatus of automatic test | |
CN113361838A (en) | Business wind control method and device, electronic equipment and storage medium | |
CN112947919A (en) | Method and device for constructing service model and processing service request | |
CN111414154A (en) | Method and device for front-end development, electronic equipment and storage medium | |
CN111258618A (en) | File configuration method and device, computer equipment and storage medium | |
CN115801873A (en) | Service distribution method, system, electronic device and storage medium | |
CN111401825B (en) | Instantiation method and device | |
CN115145652A (en) | Method, device, equipment and medium for creating data processing task | |
CN115422202A (en) | Service model generation method, service data query method, device and equipment | |
CN113760240B (en) | Method and device for generating data model | |
CN113312900A (en) | Data verification method and device | |
CN116521686B (en) | Dynamic data table processing method, device, computer equipment and storage medium | |
CN111177183B (en) | Method and device for generating database access statement | |
CN111882294B (en) | Method and device for flow approval | |
CN115657901B (en) | Service changing method and device based on unified parameters | |
CN114237574A (en) | Financial transaction production management system, method, apparatus, medium, and program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20220923 Address after: 25 Financial Street, Xicheng District, Beijing 100033 Applicant after: CHINA CONSTRUCTION BANK Corp. Address before: 25 Financial Street, Xicheng District, Beijing 100033 Applicant before: CHINA CONSTRUCTION BANK Corp. Applicant before: Jianxin Financial Science and Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |