CN111401825B - Instantiation method and device - Google Patents

Instantiation method and device Download PDF

Info

Publication number
CN111401825B
CN111401825B CN202010088806.6A CN202010088806A CN111401825B CN 111401825 B CN111401825 B CN 111401825B CN 202010088806 A CN202010088806 A CN 202010088806A CN 111401825 B CN111401825 B CN 111401825B
Authority
CN
China
Prior art keywords
parameters
instantiation
template
execution flow
job
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010088806.6A
Other languages
Chinese (zh)
Other versions
CN111401825A (en
Inventor
王耀强
黄君
陈军
张�浩
吴辰康
李志鹏
李炜宇
黄显霞
王伟杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202010088806.6A priority Critical patent/CN111401825B/en
Publication of CN111401825A publication Critical patent/CN111401825A/en
Application granted granted Critical
Publication of CN111401825B publication Critical patent/CN111401825B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; 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 the following steps: generating templates through the assembly model and configuration parameters submitted by a user; analyzing the template to obtain the configuration parameters; and carrying out 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

Instantiation method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an instantiation method and apparatus.
Background
The business system needs to process business data by adopting a background batch operation example on a computer, so that some business functions, such as batch collection and payment business, settlement processing, automatic credit card repayment, periodic 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 a single database partition, and meanwhile, a large amount of business data processing is difficult to complete in a set time by only running a single program or script, and a plurality of programs or scripts with the same function are required to be supported to process the data in different database partitions simultaneously so as to jointly realize the processing of banking data.
2. The batch service functions are complex, the data volume to be processed is huge, the batch service functions cannot be completed by running one job instance, and related job instances need to be run in order according to the dependency relationship among the job instances to complete the batch service functions.
3. From testing to production, the business system needs to repeatedly run the operation instance set according to a certain frequency to process daily business data in batches. Therefore, it is necessary to make job execution flow to set the dependency relationship between each job instance for the scheduling tool to repeatedly interpret to schedule each job instance in sequence.
4. From test to production, a plurality of different system environments are needed to process test and production at each stage, the same set of programs or scripts cannot directly run in the different environment of the system configuration parameters, the system configuration parameters of the dispatching tool are different in different system environments, and the same set of operation execution flow instances cannot be directly read by the dispatching tool in the different environment of the dispatching tool system configuration parameters.
5. Different system environments may define different databases, and the same set of job execution flow instances cannot support data processing on databases with different definitions.
6. Batch business data processing is required to support a plurality of legal persons both inside and outside the environment, and different programs or scripts and job execution flow instances need to be run due to business scope differences.
The job execution flow configuration interface provided by the scheduling tool does not support parameterized flexible configuration job execution flow instances, only support per-strip configuration of job instances to be run. The technician needs to complete the input of the configuration information, legal information, operation frequency information, front-back dependency information, job instance information and the like of the dispatching tool system respectively 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 job execution flow instance information, when some type 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 dispatching tool system is changed or the configuration information of the dispatching tool systems on multiple sets of system environments is different, a technician needs to reconfigure the job execution flow instance again to adjust the configuration information of the dispatching tool system; when newly adding overseas legal persons, the job execution flow instance needs to be reconfigured for the new legal person information.
In the case of a job execution flow instance having a correspondence with database definition information, linkage with the database actual definition of the system is not achieved, so that the configuration in the job execution flow instance is completely required to manually refer to the existing database actual definition.
In the process of implementing the present invention, the inventor finds that at least the following problems exist in the prior art:
with the expansion of business, the existing semi-automatic and semi-manual template operation development and operation instance manufacturing methods mainly have the following defects: only partial rule instantiation of a template job partially configured with instantiation parameters is supported. The technician needs to complete the development of the system configuration parameters, the database definition parameters, the job customization parameters, the programs or the scripts respectively to begin the job instantiation. The system environment information parameters, the database definition information parameters and the operation custom parameters used for operation instantiation are realized by completely compiling configuration scripts by technicians, and standard parameter maintenance interface support is not needed, so that a large amount of configuration parameter script quality control work is needed in addition to 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 check are completely needed by manually referring to the actual database definition, and larger configuration and check workload is needed for the parameters. The 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.
The technicians need to directly develop the operation execution flow examples according to batch functions, so that the technicians need to develop a large amount of operation execution flow examples, and the efficiency is low; the existing job execution flow instance configuration mode does not support parameterized flexible configuration job execution flow instances, even if the same basic configuration information exists in different job execution flow instances, the job execution flow instances can not be reused, when certain configuration information is changed, the job execution flow instances need to be reconfigured, and the configuration mode leads technicians to need to perform a large number of repeated configuration, so that the efficiency is low; the existing job execution flow instance configuration mode does not link the content with the corresponding relation between the job execution flow instance and the database actual definition, so that technicians are required to configure the job execution flow instance piece by piece compared with the database actual definition, and larger configuration and check workload are required to be input for the job execution flow instance.
Disclosure of Invention
In view of the above, the 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 templates through the assembly model and configuration parameters submitted by a user;
analyzing the template to obtain the configuration parameters;
and carrying out instantiation operation on the template based on the configuration parameters to obtain an instantiation result.
Optionally, generating templates by assembling the model and configuration parameters submitted by the user includes:
generating a template job through a template job assembly model and configuration parameters submitted by a user; or alternatively, the process may be performed,
generating a job execution flow template through the job execution flow template assembly model and configuration parameters submitted by a user.
Optionally, the template job assembly model defines a program or script for implementing a job function, and instantiation parameters; the job execution flow template assembly model defines job instance information and instantiation parameters for realizing batch functions;
the program or script is used for realizing the business batch function, the job instance information comprises the information of the job instance itself, the front-back dependency relationship information and the operation frequency information, and 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;
The private parameters include job customization parameters and instantiation rule parameters, or the private parameters include job execution flow customization parameters and instantiation rule parameters.
Optionally, the configuration parameters submitted by the user comprise system environment information parameters, legal information parameters, database definition information parameters, job custom 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 custom parameters and instantiation rule parameters.
Optionally, based on the configuration parameters, performing an instantiation operation on the template to obtain an instantiation result, including:
performing instantiation operation on the template operation based on the configuration parameters to obtain an operation instance; or, based on the configuration parameters, carrying out instantiation operation on the job execution flow template to obtain a job execution flow instance.
Optionally, based on the configuration parameter, performing an instantiation operation on the template job to obtain a job instance, including:
determining an instantiation operation required to be performed on the template job based on an instantiation rule parameter in the configuration parameters;
Performing instantiation operation on the template operation according to the requirement and other configuration parameters in the configuration parameters to obtain an operation instance; or alternatively, the process may be performed,
based on the configuration parameters, carrying out instantiation operation on the job execution flow template to obtain a job execution flow instance, including:
based on the instantiation rule parameters in the configuration parameters, determining an instantiation operation to be performed on the job execution flow template;
and carrying out the instantiation operation on the job execution flow template according to the instantiation operation on the job execution flow template and other configuration parameters in the configuration parameters to obtain a job execution flow instance.
Optionally, based on the configuration parameters, performing an instantiation operation on the template to obtain an instantiation result, including:
judging whether the configuration parameters accord with preset rules or not;
if yes, carrying out 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 an embodiment of the present invention, there is provided an instantiation apparatus including:
The generating module is used for generating templates through the assembly model and configuration parameters submitted by a 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 a template job through a template job assembly model and configuration parameters submitted by a user; or alternatively, the process may be performed,
generating a job execution flow template through the job execution flow template assembly model and configuration parameters submitted by a user.
Optionally, the template job assembly model defines a program or script for implementing a job function, and instantiation parameters; the job execution flow template assembly model defines job instance information and instantiation parameters for realizing batch functions;
the program or script is used for realizing the business batch function, the job instance information comprises the information of the job instance itself, the front-back dependency relationship information and the operation frequency information, and 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;
The private parameters include job customization parameters and instantiation rule parameters, or the private parameters include job execution flow customization parameters and instantiation rule parameters.
Optionally, the configuration parameters submitted by the user comprise system environment information parameters, legal information parameters, database definition information parameters, job custom 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 custom parameters and instantiation rule parameters.
Optionally, the instantiation module is further configured to:
performing instantiation operation on the template operation based on the configuration parameters to obtain an operation instance; or, based on the configuration parameters, carrying out instantiation operation on the job execution flow template to obtain a job execution flow instance.
Optionally, the instantiation module is further configured to:
determining an instantiation operation required to be performed on the template job based on an instantiation rule parameter in the configuration parameters;
performing instantiation operation on the template operation according to the requirement and other configuration parameters in the configuration parameters to obtain an operation instance; or alternatively, the process may be performed,
Based on the instantiation rule parameters in the configuration parameters, determining an instantiation operation to be performed on the job execution flow template;
and carrying out the instantiation operation on the job execution flow template according to the instantiation operation on the job execution flow template and other configuration parameters in the configuration parameters to obtain a job execution flow instance.
Optionally, the instantiation module is further configured to:
judging whether the configuration parameters accord with preset rules or not;
if yes, carrying out 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 an embodiment of the present invention, there is also provided an electronic device including:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the methods of any of the embodiments described above.
According to another aspect of an embodiment of the present invention, there is also provided a computer readable medium having stored thereon a computer program which, when executed by a processor, implements the method according to any of the embodiments described above.
One embodiment of the above invention has the following advantages or benefits: because the template is generated by adopting the configuration parameters submitted by the assembly model and the user, the template is analyzed to obtain the configuration parameters, and therefore, the template is subjected to the instantiation operation based on the configuration parameters to obtain the technical means of the instantiation result, and the technical problem of lower development efficiency in the prior art is solved. The embodiment of the invention has the following beneficial effects:
performing rapid development of new batch service functions based on a template operation assembly model; the system is flexibly assembled, and the existing system environment information parameters, legal information parameters and database definition information parameters can be reused; when the instantiation rule parameters meet the requirement of instantiating the template operation, various choices can be made according to different scene requirements; the development of the primary template operation assembly model can meet the requirements of different system environments, different batch service function ranges of different legal persons, different database definitions and the like; a standard parameter maintenance interface; the quotation of the database information parameters and the custom information parameters can support the instantiation of the same set of template operation, the data quantity is huge, and the effectiveness of data processing is improved according to the database partition and the split multi-process parallel processing operation examples of the data table with complex service scene.
Performing rapid development of new batch service functions based on the operation execution flow template assembly model; the system is flexibly assembled, and the existing system environment information parameters, legal information parameters and database definition information parameters can be reused; the instantiation rule parameters meet the requirement that when the job execution flow template is instantiated, multiple choices can be made 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 different legal persons, different database definitions and the like.
Further effects of the above-described non-conventional alternatives are 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 the main flow of an instantiation method according to one referenceable embodiment of the invention;
FIG. 3 is a schematic diagram of an exemplary method according to one referenceable embodiment of the invention;
FIG. 4 is a schematic diagram of the main flow of an instantiation method according to yet another referenceable embodiment of the invention;
FIG. 5 is a schematic diagram of the main flow of an instantiation method according to another referenceable embodiment of the invention;
FIG. 6 is a schematic diagram of an exemplary method according to one referenceable embodiment of the invention;
FIG. 7 is a schematic diagram of the main flow of an instantiation method according to yet another referenceable embodiment of the invention;
FIG. 8 is a schematic diagram of the major modules of an instantiation device in accordance with an embodiment of the invention;
FIG. 9 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
fig. 10 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered 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 the 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 templates through the assembly model and configuration parameters submitted by a 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. Alternatively, 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 configuration parameters submitted by the user.
In the embodiment of the invention, the template operation assembly model defines a program or script for realizing operation 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 script is used for realizing the business batch function, the job instance information comprises the information of the job instance itself, the front-back dependency relationship information and the operation frequency information, and 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; the private parameters include job customization parameters and instantiation rule parameters, or the private parameters include job execution flow customization parameters and instantiation rule parameters.
Correspondingly, the configuration parameters submitted by the user comprise system environment information parameters, legal information parameters, database definition information parameters, job custom 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 custom 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 parsed to obtain the configuration parameters submitted by the user.
And step 103, carrying out instantiation operation on the template based on the configuration parameters to obtain an instantiation result.
In the step, based on the configuration parameters, the template is subjected to instantiation operation, so that an instantiation result corresponding to the template is obtained. For example, based on the configuration parameters, carrying out instantiation operation on the template operation to obtain an operation instance; or, based on the configuration parameters, carrying out instantiation operation on the job execution flow template to obtain a job execution flow instance.
According to the embodiment of the invention, the template is generated by adopting the assembly model and the configuration parameters submitted by the user, and the template is analyzed to obtain the configuration parameters, so that the template is subjected to the instantiation operation based on the configuration parameters to obtain the technical means of the instantiation result, and the technical problem of lower development efficiency in the prior art is solved.
In order to solve the technical problems existing in the prior art, it is necessary to design and implement such technical capabilities in batch operations: establishing a unified batch template operation assembly model to improve development efficiency and quality; providing rich system environment information, legal person information and database definition information for a template operation assembly model; standard instantiation of various scenarios can be performed for a stencil job made by a stencil job assembly model.
According to the embodiment of the invention, a template operation assembly model is introduced to enable a technician to finish development of template operation, existing configuration parameters are maximized and reused in an assembly mode, the technician can manufacture template operation only by carrying out necessary operation custom parameters, instantiation rule parameter configuration and program or script development, and then an instantiation operation required by an instantiation rule for the template operation is analyzed by an instantiation operation generating tool to generate operation examples suitable for different system environments, different database definitions and different legal person batch service function ranges.
Fig. 2 is a schematic diagram of the 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 job through a template job assembly model and configuration parameters submitted by a user.
A job instance is any program or execution script that can be executed on a particular system, including the program and parameter information required for the program to execute. Job instances are the basic units of execution and scheduling, representing an independently operable instance of a function.
The template operation is an un-instantiated operation and comprises program or script information to be instantiated and various configuration parameter information required by the instantiation. The template job cannot be directly executed on the system, a job instance needs to be generated by instantiation, and the generated job instance can be directly executed on a specific system.
The configuration parameters are the set of configuration information needed to complete the instantiation of the stencil job.
Optionally, the template job assembly model defines a program or script that implements the job functions, as well as instantiation parameters. The program or script is used for realizing the business 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 custom 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. A technician (i.e. a user) configures various configuration parameters needed to be used through a template operation assembly model: program or script information to be used, custom information parameters to be used when the job is instantiated, rule parameters for realizing job instantiation, system environment information parameters to be used when the job instantiation is realized, legal information parameters and database definition information parameters. The 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 the requirement.
In the embodiment of the invention, the template operation assembly model comprises programs or scripts for realizing operation functions and instantiation parameters, and the expansion capability for supporting different system environments, different database definitions and different in-service and overseas service batch functions is covered on the basis of supporting the basic functions of organizing the programs or scripts. The program or script is used for realizing a specific business batch function; the common parameters are used to support instantiation of job instances that are applicable to different system environments, different database definitions, and different corporate batch business functional contexts. Through the template operation assembly model, technicians can efficiently assemble and manufacture template operations meeting certain business functions. When the existing batch service function needs to be adjusted, a technician can quickly generate the template operation which can meet the adjusted batch service function by adjusting the partial allocation 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 of the template construction operation assembly model, and includes a system environment information parameter, a legal information parameter, a database definition information parameter, an operation custom parameter and an instantiation rule parameter.
The environment information parameter corresponds to system environment information of an instance of the job to be run, and when the system environment is changed, the job can be supported to run in a new environment by adjusting the environment information parameter.
The legal information parameter corresponds to legal information of an operation instance to be operated, and when the legal is newly added, the legal information parameter is adjusted to support the operation to process batch business of the newly added legal.
The database definition information parameters correspond to the definition information of the database to be processed by the job instance, and when the database definition is adjusted, the database definition information parameters are adjusted so as to support the job to process the data in the database according to the adjusted database definition information.
The job customization parameters correspond to special instantiation requirements of the template job itself, for example, certain fields of the job need to be replaced according to different business scenes, and a technician can realize the job customization parameters by introducing the job customization parameters.
The instantiation rule parameters correspond to the instantiation scenario in which the template job needs to be performed, such as which aspects need to be instantiated according to which system environment information of which set of system environments, 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 operation custom parameter and the instantiation rule parameter are private parameters. And uniformly performing basic setting on the public parameters in the template operation assembly model, wherein a technician only needs to specifically configure operation custom 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 template operation development by technicians is reduced to the greatest 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 accept new batch service requirements, a new template job assembly model can be formed by adjusting the parameter classes, specific programs or scripts to meet the new batch service requirements. The method ensures that the new template operation assembly model inherits the commonly used parts from the existing template operation assembly model, focuses on different programs or scripts, operation custom parameters and instantiation rule parameters which need specific use, effectively reduces development range and improves development efficiency and operation standardization.
And 202, analyzing the template operation to obtain the configuration parameters.
In this step, the configuration parameters in the template job may be parsed by the configurable job derivation means.
And 203, carrying out instantiation operation on the template operation based on the configuration parameters to obtain an operation instance.
Optionally, step 203 may include: determining an instantiation operation required to be performed on the template job based on an instantiation rule parameter in the configuration parameters; and carrying out the instantiation operation on the template operation according to the needed instantiation operation on the template operation and other configuration parameters in the configuration parameters to obtain an operation instance. In the embodiment of the invention, which instantiation operations are specifically needed to be performed on the template operation are definitely based on the analyzed instantiation rule parameters, and the template operation instantiation is finally completed by combining the contents corresponding to other configuration parameters appointed in the template operation, so that the operation examples suitable for different system environments, different database definitions and different legal 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 are needed to be specifically performed on the template operation, for example, whether different instantiations are needed 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 partition to process the data in different database table partitions; which legal persons need to instantiate which functions of the job, etc. And then other instantiation configuration parameters are obtained, instantiation operation specified according to an instantiation rule is carried out, and the instantiation of the template operation is finally completed by combining contents corresponding to other configuration parameters specified in the template operation, so that operation examples suitable for different system environments, different database definitions and different legal batch service function ranges are manufactured.
According to the various embodiments described above, it can be seen that the present invention adopts the technical means of generating a template job by using a template job assembly model and configuration parameters submitted by a user, analyzing the template job to obtain the configuration parameters, and performing an instantiation operation on the template job based on the configuration parameters to obtain a job instance, thereby solving the technical problem of lower development efficiency of the job instance in the prior art. Compared with a complex and repeated development mechanism and a limited instantiation operation scene of batch template operation in the existing semi-automatic and semi-manual method, the embodiment of the invention has the following beneficial effects: performing rapid development of new batch service functions based on a template operation assembly model; the system is flexibly assembled, and the existing system environment information parameters, legal information parameters and database definition information parameters can be reused; when the instantiation rule parameters meet the requirement of instantiating the template operation, various choices can be made according to different scene requirements; the development of the primary template operation assembly model can meet the requirements of different system environments, different batch service function ranges of different legal persons, different database definitions and the like; a standard parameter maintenance interface; the quotation of the database information parameters and the custom information parameters can support the instantiation of the same set of template operation, the data quantity is huge, and the effectiveness of data processing is improved according to the database partition and the split multi-process parallel processing operation examples of the data table with complex service scene.
Fig. 4 is a schematic diagram of the main flow of a method of generating a job instance according to one referenceable embodiment of the present invention. As yet another embodiment of the present invention, as shown in fig. 3, the method for generating a job instance may include:
step 401, generating a template job through a template job assembly model and configuration parameters submitted by a user.
And step 402, analyzing the template operation to obtain the configuration parameters.
Step 403, judging whether the configuration parameters accord with preset rules; if yes, go to step 404; if not, go to step 405.
Checking whether configuration information (including program or script information, custom information parameters, rule parameters, system environment information parameters, legal information parameters and database definition information parameters to be used in the process of instantiating the operation) is perfect and accords with the rule.
Step 404, performing an instantiation operation on the template job based on the configuration parameters to obtain a job instance.
Step 405, prompting the user to adjust the configuration parameters.
If the configuration information is imperfect and does not accord with the rule, prompting a technician to correct the problem of the template operation, wherein 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 the embodiment of the present invention, the method for generating a job instance is described in detail in the above-described method for generating a job instance, and thus, the description thereof will not be repeated here.
In order to solve the technical problems existing in the prior art, it is necessary to design and implement such technical capabilities in a batch job execution flow: establishing a unified batch operation execution flow template assembly model to improve the development efficiency and quality of the operation execution flow template; providing abundant scheduling tool system environment information, legal person information and database definition information for a job execution flow template assembly model; the job execution flow templates manufactured by the job execution flow template assembly model can be subjected to standard instantiation of various scenes.
According to the embodiment of the invention, a job execution flow template assembly model is introduced to enable a technician to finish development of the job execution flow template, the existing configuration parameters are maximized and reused in an assembly mode, the technician can manufacture the job execution flow template only by configuring necessary job execution flow custom parameters, instantiation rule parameters, job instance information and the like, then the job execution flow exporting device analyzes the instantiation rule parameters to perform instantiation operation required by instantiation on the job execution flow template, and thus job execution flow instances suitable for different system environments, different database definitions and different legal batch service function ranges are generated.
Fig. 5 is a schematic diagram of the main flow of an instantiation method according to an embodiment of the 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 execution script that can be executed on a particular system, including the program and parameter information required for the program to execute. Job instances are the basic units of execution and scheduling, representing an independently operable instance of a function.
A job execution flow is a collection of one or more inter-dependent job instances with a function. The business function can be correctly realized only by sequentially operating the job instances according to the interdependence relationship configured in the job execution flow on the system.
The job execution flow template is an un-instantiated job execution flow and comprises job execution flow information to be instantiated and various configuration parameter information required by instantiation. The job execution flow template cannot be used as a direct basis for running job instances in a system, the job execution flow instances need to be generated through instantiation, and the generated job execution flow instances can be interpreted by a dispatching tool to dispatch each job instance in sequence.
The configuration parameters are the set of configuration information needed to complete the instantiation of the job execution flow template.
Optionally, the job execution flow template assembly model defines job instance information and instantiation parameters that implement batch functions. The job instance information comprises job instance self information, front-back dependency relationship information and operation frequency information; the instantiation parameters include 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 custom 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 custom parameter and an instantiation rule parameter. A technician (i.e. a user) configures various configuration parameters needed by executing a stream template assembly model through a job: each job instance information constituting the job execution flow, a custom information parameter to be used for instantiating the job execution flow, a rule parameter for realizing the job execution flow instantiation, a system environment information parameter to be used when executing the flow instantiation, a legal information parameter, a database definition information parameter, and the like. The operation instance information and the legal information parameters are necessary options in an operation execution flow template assembly model, and the rest information is configured according to requirements.
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 the expansion capability for supporting different system environments, different database definitions and different in-and-out service batch functions is covered on the basis of supporting the basic function of organizing the job instance information. The job instance information is used for defining a specific job instance operation scene and comprises job instance self information, front-back dependency relationship information, operation frequency information and the like; the common parameters are used to support instantiation of job execution flow instances for different system environments, different database definitions, and different legal batch business functional scope.
Optionally, the job execution flow template assembly model is an Excel-based job execution flow template assembly model, and a technician can efficiently assemble the job execution flow template meeting the service function through an Excel document. When the existing batch service functions need to be adjusted, technicians can quickly generate the job execution flow templates which can meet the adjusted batch service functions by adjusting the partial allocation parameters of the job execution flow template assembly model corresponding to the existing job execution flow templates. The assembling mode of the operation execution flow template model based on Excel enables technicians to intuitively, simply and effectively configure the operation execution flow template model, and improves accuracy.
As shown in fig. 6, the instantiation parameter is one of the components of the template assembly model for building the job execution flow, and includes a system environment information parameter, a legal 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 dispatching tool system for executing the job execution flow instance, and when the environment of the dispatching tool system is changed, the job execution flow instance can be supported to run in a new environment by adjusting the environment information parameter.
The legal information parameter corresponds to legal information of an operation execution flow instance to be operated, and when a legal is newly added, the legal information parameter is adjusted to support the operation execution flow instance to process batch business of the newly added legal.
The database definition information parameter corresponds to the 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 job execution flow instance can be supported to schedule the job instance to process the data in the database according to the adjusted database definition information by adjusting the database definition information parameter.
The job execution flow custom parameters correspond to specific instantiation requirements of the job execution flow template itself, such as which specific processes the job execution flow needs to perform when certain abnormal conditions occur in the scheduling process, and a technician can implement by introducing the job execution flow custom parameters.
The instantiation rule parameters correspond to the instantiation scenario that the job execution flow template needs to perform, such as which aspects need to be instantiated according to which scheduling tool system environment information of which scheduling tool of which set of system environment needs to perform 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 custom parameter and the instantiation rule parameter are private parameters. And uniformly performing basic setting on the public parameters in the job execution flow template assembly model, wherein technicians only need to specifically configure the job execution flow custom parameters and the instantiation rule parameters according to specific functional scene requirements of the job execution flow. By distinguishing public parameters and private parameters, the work of performing 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 accept new batch service requirements, a new job execution flow template assembly model can be formed by adjusting the parameter classes and the specific job instance information so as to meet the new batch service requirements. The method ensures that the new job execution flow template assembly model inherits the commonly used parts from the existing job execution flow template assembly model, focuses on different job instance information, job execution flow custom parameters and instantiation rule parameters which need specific use, effectively reduces development range, and improves development efficiency and standardization of the job execution flow.
Step 502, analyzing the operation 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 means.
Step 503, performing an instantiation operation on the job execution flow template based on the configuration parameters, to obtain a job execution flow instance.
Optionally, step 503 may include: based on the instantiation rule parameters in the configuration parameters, determining an instantiation operation to be performed on the job execution flow template; and carrying out the instantiation operation on the job execution flow template according to the instantiation operation on the job execution flow template and other configuration parameters in the configuration parameters to obtain a job execution flow instance. In the embodiment of the invention, which instantiation operations are specifically performed on the job execution flow template is definitely performed based on the parsed instantiation rule parameters, and the job execution flow template instantiation is finally completed by combining other configuration parameters (such as a job execution flow custom parameter, a system environment information parameter, a legal information parameter, a database definition information parameter and the like) appointed in the job execution flow template, so that job execution flow instances suitable for different system environments, different database definitions and different legal batch service function ranges are manufactured.
In the embodiment of the invention, the instantiation rule parameters in the job execution flow template are analyzed to determine which instantiation operations are needed to be specifically performed on the job execution flow template, for example, whether different instantiations are needed to be performed on 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 functions need to be instantiated according to the definition of the database table partitions to process the data in different database table partitions; which legal persons need to instantiate which job execution flows. And then other configuration parameters are obtained, the instantiation operation specified by the instantiation rule parameters is carried out, and the instantiation of the job execution flow template is finally completed by combining the contents corresponding to the other configuration parameters specified in the job execution flow template, so that job execution flow examples suitable for different system environments, different database definitions and different legal batch service function ranges are manufactured.
According to the various embodiments described above, it can be seen that the present invention adopts the technical means of generating the job execution flow template by the job execution flow template assembly model and the configuration parameters submitted by the user, analyzing the job execution flow template to obtain the configuration parameters, and thus, instantiating the job execution flow template based on the configuration parameters to obtain the job execution flow instance, thereby solving the technical problem of lower development efficiency of the job execution flow instance in the prior art. Compared with the complex and repeated configuration mechanism of the conventional operation execution flow instance configuration mode, the embodiment of the invention has the following beneficial effects: performing rapid development of new batch service functions based on the operation execution flow template assembly model; the system is flexibly assembled, and the existing system environment information parameters, legal information parameters and database definition information parameters can be reused; the instantiation rule parameters meet the requirement that when the job execution flow template is instantiated, multiple choices can be made 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 different legal persons, different database definitions and the like.
Fig. 7 is a schematic diagram of the main flow of an exemplary method according to one referenceable embodiment of the invention. As yet 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 a job execution flow template assembly model and configuration parameters submitted by a user.
Step 702, analyzing the job execution flow template to obtain the configuration parameters.
Step 703, judging whether the configuration parameters conform to a preset rule; if yes, go to step 704; if not, step 705 is performed.
Checking whether configuration information (such as job instance information, custom information parameters, rule parameters, system environment information parameters, legal information parameters, database definition information parameters and the like used for instantiating a job execution flow) is perfect or not, and conforming to the rule.
Step 704, performing an instantiation operation on the job execution flow template based on the configuration parameters to obtain a job execution flow instance.
Step 705, prompting the user to adjust the configuration parameters.
If the configuration parameters are imperfect and do not accord with the rules, prompting a technician to correct the problems of the job execution flow template, wherein the technician needs to adjust the configuration parameters of the job execution flow template by adjusting the configuration in the job execution flow template assembly model.
In addition, the specific implementation of the exemplary method according to the present invention is described in detail in the above exemplary method, and thus, the description thereof will not be repeated here.
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 generating module 801 is used for generating templates through the assembly model and configuration parameters submitted by a user; the parsing module 802 is configured to parse the template to obtain the configuration parameters; the instantiation module 803 is configured to perform an instantiation operation on the template based on the configuration parameter, to obtain an instantiation result.
Optionally, the generating module 801 is further configured to:
generating a template job through a template job assembly model and configuration parameters submitted by a user; or alternatively, the process may be performed,
generating a job execution flow template through the job execution flow template assembly model and configuration parameters submitted by a user.
Optionally, the template job assembly model defines a program or script for implementing a job function, and instantiation parameters; the job execution flow template assembly model defines job instance information and instantiation parameters for realizing batch functions;
The program or script is used for realizing the business batch function, the job instance information comprises the information of the job instance itself, the front-back dependency relationship information and the operation frequency information, and 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;
the private parameters include job customization parameters and instantiation rule parameters, or the private parameters include job execution flow customization parameters and instantiation rule parameters.
Optionally, the configuration parameters submitted by the user comprise system environment information parameters, legal information parameters, database definition information parameters, job custom 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 custom parameters and instantiation rule parameters.
Optionally, the instantiation module 803 is further configured to:
performing instantiation operation on the template operation based on the configuration parameters to obtain an operation instance; or, based on the configuration parameters, carrying out instantiation operation on the job execution flow template to obtain a job execution flow instance.
Optionally, the instantiation module 803 is further configured to:
determining an instantiation operation required to be performed on the template job based on an instantiation rule parameter in the configuration parameters;
performing instantiation operation on the template operation according to the requirement and other configuration parameters in the configuration parameters to obtain an operation instance; or alternatively, the process may be performed,
based on the instantiation rule parameters in the configuration parameters, determining an instantiation operation to be performed on the job execution flow template;
and carrying out the instantiation operation on the job execution flow template according to the instantiation operation on the job execution flow template and other configuration parameters in the configuration parameters to obtain a job execution flow instance.
Optionally, the instantiation module 803 is further configured to:
judging whether the configuration parameters accord with preset rules or not;
if yes, carrying out 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 described above, it can be seen that the present invention adopts the technical means of generating the job execution flow template by the job execution flow template assembly model and the configuration parameters submitted by the user, analyzing the job execution flow template to obtain the configuration parameters, and thus, instantiating the job execution flow template based on the configuration parameters to obtain the job execution flow instance, thereby solving the technical problem of lower development efficiency of the job execution flow instance in the prior art. Compared with the complex and repeated configuration mechanism of the conventional operation execution flow instance configuration mode, the embodiment of the invention has the following beneficial effects: performing rapid development of new batch service functions based on the operation execution flow template assembly model; the system is flexibly assembled, and the existing system environment information parameters, legal information parameters and database definition information parameters can be reused; the instantiation rule parameters meet the requirement that when the job execution flow template is instantiated, multiple choices can be made 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 different legal persons, different database definitions and the like.
The specific implementation of the exemplary apparatus according to the present invention is described in detail in the above-described exemplary method, and thus, the description thereof will not be repeated here.
Fig. 9 illustrates an exemplary system architecture 900 in which an instantiation method or instantiation apparatus of an embodiment of the invention may be employed.
As shown in fig. 9, system architecture 900 may include terminal devices 901, 902, 903, a network 904, and a server 909. The network 904 is used as a medium to provide communications links between the terminal devices 901, 902, 903 and the server 909. The network 904 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with a server 909 through a network 904 using terminal devices 901, 902, 903 to receive or send messages, etc. Various communication client applications may be installed on the terminal devices 901, 902, 903, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, and the like (by way of example only).
Terminal devices 901, 902, 903 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 909 may be a server providing various services, such as a background management server (by way of example only) providing support for shopping-type websites browsed by users using the terminal devices 901, 902, 903. The background management server may analyze and process the received data such as the article information query request, and feedback the processing result (e.g., the target push information, the article information—only 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 device is generally disposed in the server 909. The instantiation method provided by the embodiment of the invention can also be performed by the terminal devices 901, 902, 903, and accordingly, the instantiation apparatus can be arranged 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, there is illustrated a schematic diagram of a computer system 1000 suitable for use in implementing an embodiment of the present invention. The terminal device shown in fig. 10 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 10, the computer system 1000 includes a Central Processing Unit (CPU) 1001, which can execute 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 required for the operation of the system 1000 are also stored. The CPU 1001, ROM 1002, and RAM1003 are connected to each other by a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
The following components are connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output portion 1007 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc.; a storage portion 1008 including a hard disk or the like; and a communication section 1009 including a network interface card such as a LAN card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The drive 1010 is also connected to the I/O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is installed as needed in the drive 1010, so that a computer program read out therefrom is installed as needed in the storage section 1008.
In particular, according to embodiments of the present disclosure, the processes described above with reference to 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 shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 1009, and/or installed from the removable medium 1011. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 1001.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 context of this document, 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, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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 flowcharts 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 involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor includes a generation module, an parsing module, and an instantiation module, where the names of the modules do not constitute a limitation on the module itself in some cases.
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 present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include: generating templates through the assembly model and configuration parameters submitted by a user; analyzing the template to obtain the configuration parameters; and carrying out instantiation operation on the template based on the configuration parameters to obtain an instantiation result.
According to the technical scheme provided by the embodiment of the invention, the template is generated by adopting the configuration parameters submitted by the assembly model and the user, and the template is analyzed to obtain the configuration parameters, so that the template is subjected to the instantiation operation based on the configuration parameters to obtain the technical means of the instantiation result, and the technical problem of lower development efficiency in the prior art is solved. The embodiment of the invention has the following beneficial effects:
performing rapid development of new batch service functions based on a template operation assembly model; the system is flexibly assembled, and the existing system environment information parameters, legal information parameters and database definition information parameters can be reused; when the instantiation rule parameters meet the requirement of instantiating the template operation, various choices can be made according to different scene requirements; the development of the primary template operation assembly model can meet the requirements of different system environments, different batch service function ranges of different legal persons, different database definitions and the like; a standard parameter maintenance interface; the quotation of the database information parameters and the custom information parameters can support the instantiation of the same set of template operation, the data quantity is huge, and the effectiveness of data processing is improved according to the database partition and the split multi-process parallel processing operation examples of the data table with complex service scene.
Performing rapid development of new batch service functions based on the operation execution flow template assembly model; the system is flexibly assembled, and the existing system environment information parameters, legal information parameters and database definition information parameters can be reused; the instantiation rule parameters meet the requirement that when the job execution flow template is instantiated, multiple choices can be made 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 different legal persons, different database definitions and the like.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (6)

1. An instantiation method, comprising:
generating templates through the assembly model and configuration parameters submitted by a user;
analyzing the template to obtain the configuration parameters;
based on the configuration parameters, carrying out instantiation operation on the template to obtain an instantiation result;
Generating templates by assembling the model and configuration parameters submitted by a user, comprising:
generating a template job through a template job assembly model and configuration parameters submitted by a user; or generating a job execution flow template through the job execution flow template assembly model and configuration parameters submitted by a user; the template operation assembly model defines a program or script for realizing operation functions and instantiation parameters; the job execution flow template assembly model defines job instance information and instantiation parameters for realizing batch functions;
based on the configuration parameters, carrying out instantiation operation on the template to obtain an instantiation result, wherein the instantiation result comprises the following steps:
performing instantiation operation on the template operation based on the configuration parameters to obtain an operation instance; or, based on the configuration parameters, carrying out instantiation operation on the job execution flow template to obtain a job execution flow instance;
based on the configuration parameters, carrying out instantiation operation on the template operation to obtain an operation instance, wherein the operation instance comprises the following steps:
determining an instantiation operation required to be performed on the template job based on an instantiation rule parameter in the configuration parameters;
performing instantiation operation on the template operation according to the requirement and other configuration parameters in the configuration parameters to obtain an operation instance; or alternatively, the process may be performed,
Based on the configuration parameters, carrying out instantiation operation on the job execution flow template to obtain a job execution flow instance, including:
based on the instantiation rule parameters in the configuration parameters, determining an instantiation operation to be performed on the job execution flow template;
carrying out instantiation operation on the job execution flow template according to the requirement and carrying out instantiation operation on the job execution flow template according to other configuration parameters in the configuration parameters to obtain a job execution flow instance;
the program or script is used for realizing the business batch function, the operation instance information comprises operation instance self information, front-back dependency relationship information and operation frequency information, 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; the private parameters comprise job custom parameters and instantiation rule parameters, or the private parameters comprise job execution flow custom parameters and instantiation rule parameters; the configuration parameters submitted by the user comprise system environment information parameters, legal information parameters, database definition information parameters, job custom 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 custom parameters and instantiation rule parameters.
2. The method of claim 1, wherein instantiating the template based on the configuration parameters results in an instantiation result comprising:
judging whether the configuration parameters accord with preset rules or not;
if yes, carrying out 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.
3. An instantiation apparatus comprising:
the generating module is used for generating templates through the assembly model and configuration parameters submitted by a user;
the analysis module is used for analyzing the template to obtain the configuration parameters;
the instantiation module is used for carrying out instantiation operation on the template based on the configuration parameters to obtain an instantiation result;
the generating module is further configured to:
generating a template job through a template job assembly model and configuration parameters submitted by a user; or generating a job execution flow template through the job execution flow template assembly model and configuration parameters submitted by a user; the template operation assembly model defines a program or script for realizing operation functions and instantiation parameters; the job execution flow template assembly model defines job instance information and instantiation parameters for realizing batch functions;
The instantiation module is further to:
performing instantiation operation on the template operation based on the configuration parameters to obtain an operation instance; or, based on the configuration parameters, carrying out instantiation operation on the job execution flow template to obtain a job execution flow instance;
the instantiation module is further to:
determining an instantiation operation required to be performed on the template job based on an instantiation rule parameter in the configuration parameters;
performing instantiation operation on the template operation according to the requirement and other configuration parameters in the configuration parameters to obtain an operation instance; or alternatively, the process may be performed,
based on the instantiation rule parameters in the configuration parameters, determining an instantiation operation to be performed on the job execution flow template;
carrying out instantiation operation on the job execution flow template according to the requirement and carrying out instantiation operation on the job execution flow template according to other configuration parameters in the configuration parameters to obtain a job execution flow instance;
the program or script is used for realizing the business batch function, the operation instance information comprises operation instance self information, front-back dependency relationship information and operation frequency information, 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; the private parameters comprise job custom parameters and instantiation rule parameters, or the private parameters comprise job execution flow custom parameters and instantiation rule parameters; the configuration parameters submitted by the user comprise system environment information parameters, legal information parameters, database definition information parameters, job custom 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 custom parameters and instantiation rule parameters.
4. The apparatus of claim 3, wherein the instantiation module is further to:
judging whether the configuration parameters accord with preset rules or not;
if yes, carrying out 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.
5. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of claim 1 or 2.
6. A computer readable medium on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to claim 1 or 2.
CN202010088806.6A 2020-02-12 2020-02-12 Instantiation method and device Active CN111401825B (en)

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 CN111401825A (en) 2020-07-10
CN111401825B true 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
CN111401825A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN109710236B (en) Service development and implementation method, device, platform and medium based on shared service
US7647370B1 (en) Screen scraping interface
CN108984712A (en) Counting method, equipment and readable storage medium storing program for executing are made based on business scenario
US11531914B2 (en) Artificial intelligence (AI) based automatic rule generation
CN108614690B (en) Software development method, system and storage medium based on component and cloud oriented
CN110933095A (en) Message parsing method and device
CN111125064B (en) Method and device for generating database schema definition statement
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
CN110895471A (en) Installation package generation method, device, medium and electronic equipment
CN113361838A (en) Business wind control method and device, electronic equipment and storage medium
CN113204495A (en) Automatic testing method and device based on B/S architecture, storage medium and equipment
CN114237853A (en) Task execution method, device, equipment, medium and program product applied to heterogeneous system
CN111078789B (en) Data sharing method and device, storage medium and electronic equipment
CN111401825B (en) Instantiation method and device
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN115145652A (en) Method, device, equipment and medium for creating data processing task
CN113515306B (en) System transplanting method and device
CN113760240B (en) Method and device for generating data model
US20220004407A1 (en) System and method for simple object access protocol (soap) interface creation
CN115422202A (en) Service model generation method, service data query method, device and equipment
CN116126426B (en) Automatic component decoupling method and system based on Web service system
CN112051990A (en) Network management northbound interface model adaptation method and system
CN116521686B (en) Dynamic data table processing method, device, computer equipment and storage medium
CN113495747B (en) Gray scale release method and device

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