CN114995877B - Variable configuration method and device - Google Patents

Variable configuration method and device Download PDF

Info

Publication number
CN114995877B
CN114995877B CN202210924401.0A CN202210924401A CN114995877B CN 114995877 B CN114995877 B CN 114995877B CN 202210924401 A CN202210924401 A CN 202210924401A CN 114995877 B CN114995877 B CN 114995877B
Authority
CN
China
Prior art keywords
configuration file
variable
configuration
mapping
current
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
CN202210924401.0A
Other languages
Chinese (zh)
Other versions
CN114995877A (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.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202210924401.0A priority Critical patent/CN114995877B/en
Publication of CN114995877A publication Critical patent/CN114995877A/en
Application granted granted Critical
Publication of CN114995877B publication Critical patent/CN114995877B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a variable configuration method and a device, wherein the variable configuration method comprises the following steps: loading a plurality of configuration files; the configuration files comprise a public method configuration file, a dictionary table configuration file, a variable center configuration file, a business processing logic configuration file, a minimum execution unit configuration file, a dependence scheduling configuration file, a distribution process configuration file and an available version configuration file; establishing a plurality of matched mapping relations step by step according to a plurality of configuration files; in the process of processing transaction information, acquiring a current running version; inquiring variables to be configured according to the current running version and the plurality of mapping relations; and configuring variables to be configured. Therefore, the implementation of the implementation mode can pre-online before online, ensures the service stability, can visually display the dependency relationship of the variables, and reduces the difficulty in maintaining the variables.

Description

Variable configuration method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a variable configuration method and apparatus.
Background
Variables are important fields in the field of wind control, the variables provide data sources for the wind control, the assembly of the variables depends on the processing of basic fields or various data sources, and external manufacturers and other banks of the same type are configured with layout variables. In the existing variable configuration method, a variable configuration file is generally determined first, and then an application is directly deployed on line. However, in practice, it is found that the existing method directly accesses the variable configuration file, so that the service stability is easily reduced, and meanwhile, the dependency relationship of the variables cannot be visually displayed, so that the difficulty in maintaining the variables is increased.
Disclosure of Invention
An object of the embodiments of the present application is to provide a variable configuration method and apparatus, which can perform pre-online before online, ensure service stability, and simultaneously can visually display dependency of variables, thereby reducing difficulty in maintaining variables.
A first aspect of an embodiment of the present application provides a variable configuration method, including:
loading a plurality of configuration files; the configuration files comprise a public method configuration file, a dictionary table configuration file, a variable center configuration file, a business processing logic configuration file, a minimum execution unit configuration file, a dependence scheduling configuration file, a distribution process configuration file and an available version configuration file;
establishing a plurality of matched mapping relations step by step according to the plurality of configuration files;
in the process of processing transaction information, acquiring a current running version;
inquiring variables to be configured according to the current operation version and a plurality of mapping relations;
and configuring the variables to be configured.
In the implementation process, the method can preferentially load a plurality of configuration files; the configuration files comprise a public method configuration file, a dictionary table configuration file, a variable center configuration file, a business processing logic configuration file, a minimum execution unit configuration file, a dependence scheduling configuration file, a distribution process configuration file and an available version configuration file; then establishing a plurality of matched mapping relations step by step according to the plurality of configuration files; then, in the process of processing the transaction information, acquiring a current running version; then inquiring variables to be configured according to the current running version and the plurality of mapping relations; and finally, configuring the variable to be configured. Therefore, the implementation of the implementation mode can pre-online before online, ensures the service stability, can visually display the dependency relationship of the variables, and reduces the difficulty in maintaining the variables.
Further, the step of establishing a plurality of mapping relationships matched step by step according to the plurality of configuration files includes:
establishing a first mapping relation between a variable center and a dictionary table according to the dictionary table configuration file and the variable center configuration file;
establishing a second mapping relation between the business processing logic and the variable center according to the variable center configuration file and the business processing logic configuration file;
establishing a third mapping relation between a minimum execution unit and the service processing logic according to the service processing logic configuration file and the minimum execution unit configuration file;
establishing a fourth mapping relation between the dependence schedule and the minimum execution unit according to the minimum execution unit configuration file and the dependence schedule configuration file;
establishing a fifth mapping relation between the distribution process and the dependency schedule according to the dependency schedule configuration file and the distribution process configuration file;
and establishing a sixth mapping relation between the available version and the distribution process according to the distribution process configuration file and the available version configuration file.
Further, the step of querying the variable to be configured according to the current running version and the plurality of mapping relationships includes:
determining a current distribution process according to the current operation version and the sixth mapping relation;
determining a current dependent schedule according to the current distribution process and the fifth mapping relation;
determining a plurality of minimum execution units according to the current dependency schedule and the fourth mapping relation;
matching current business processing logic corresponding to the transaction information;
determining a current minimum execution unit according to the minimum execution units, the current service processing logic and the third mapping relation;
determining a current variable center according to the current service processing logic and the current minimum execution unit according to the second mapping relation;
determining a current dictionary table according to the current variable center and the first mapping relation;
and querying variables to be configured according to the common methods in the current dictionary table and the common method configuration file.
Further, after the step of configuring the variable to be configured, the method further includes:
when a modification instruction for indicating modification of a configuration variable is received, acquiring a to-be-modified quantity and a dynamic adjustment scheme;
according to the to-be-modified quantity and the dynamic adjustment scheme, version parallel release is carried out;
and when an updating instruction for indicating version updating is received and the parallel version release is completed, updating the current running version.
Further, after the step of loading the plurality of configuration files, the method further comprises:
and generating and displaying a scheduling logic diagram according to the dependent scheduling configuration file.
Further, after the step of configuring the variable to be configured, the method further includes:
receiving an inquiry serial number for inquiring transaction information;
and matching and outputting a transaction dynamic execution graph and execution time details corresponding to the query serial number.
Further, after the step of configuring the variable to be configured, the method further includes:
dynamically analyzing the utilization rate of the variable to be configured to obtain a dynamic analysis result;
and calculating the accuracy according to the dynamic analysis result to obtain and output the variable configuration accuracy.
A second aspect of the embodiments of the present application provides a variable configuration apparatus, including:
the loading unit is used for loading a plurality of configuration files; the configuration files comprise a public method configuration file, a dictionary table configuration file, a variable center configuration file, a business processing logic configuration file, a minimum execution unit configuration file, a dependence scheduling configuration file, a distribution process configuration file and an available version configuration file;
the mapping unit is used for establishing a plurality of matched mapping relations step by step according to the plurality of configuration files;
the acquisition unit is used for acquiring the current running version in the process of processing the transaction information;
the query unit is used for querying the variables to be configured according to the current running version and the plurality of mapping relations;
and the configuration unit is used for configuring the variables to be configured.
In the implementation process, the variable configuration device can load a plurality of configuration files through the loading unit; the configuration files comprise a public method configuration file, a dictionary table configuration file, a variable center configuration file, a business processing logic configuration file, a minimum execution unit configuration file, a dependence scheduling configuration file, a distribution process configuration file and an available version configuration file; establishing a plurality of matched mapping relations step by step according to the plurality of configuration files through a mapping unit; acquiring a current running version by an acquisition unit in the process of processing transaction information; inquiring variables to be configured according to the current running version and the plurality of mapping relations through an inquiring unit; and configuring the variables to be configured through a configuration unit. Therefore, the implementation of the implementation mode can pre-online before online, ensures the service stability, can visually display the dependency relationship of the variables, and reduces the difficulty in maintaining the variables.
Further, the mapping unit includes:
the first mapping subunit is used for establishing a first mapping relation between the variable center and the dictionary table according to the dictionary table configuration file and the variable center configuration file;
the second mapping subunit is configured to establish a second mapping relationship between the service processing logic and the variable center according to the variable center configuration file and the service processing logic configuration file;
a third mapping subunit, configured to establish a third mapping relationship between the minimum execution unit and the service processing logic according to the service processing logic configuration file and the minimum execution unit configuration file;
a fourth mapping subunit, configured to establish a fourth mapping relationship between the dependency schedule and the minimum execution unit according to the minimum execution unit configuration file and the dependency schedule configuration file;
a fifth mapping subunit, configured to establish a fifth mapping relationship between the distribution process and the dependency schedule according to the dependency schedule configuration file and the distribution process configuration file;
a sixth mapping subunit, configured to establish a sixth mapping relationship between the available version and the distribution process according to the distribution process configuration file and the available version configuration file.
Further, the query unit includes:
a determining subunit, configured to determine a current distribution process according to the current running version and the sixth mapping relationship;
the determining subunit is further configured to determine a current dependent schedule according to the current distribution process and the fifth mapping relationship;
the determining subunit is further configured to determine a plurality of minimum execution units according to the current dependency schedule and the fourth mapping relationship;
the matching subunit is used for matching the current business processing logic corresponding to the transaction information;
the determining subunit is further configured to determine a current minimum execution unit according to the minimum execution units, the current service processing logic, and the third mapping relationship;
the determining subunit is further configured to determine a current variable center according to the current service processing logic and the current minimum execution unit according to the second mapping relationship;
the determining subunit is further configured to determine a current dictionary table according to the current variable center and the first mapping relationship;
and the query subunit is used for querying the variables to be configured according to the common methods in the current dictionary table and the common method configuration file.
Further, the variable configuration apparatus further includes:
the device comprises an acquisition unit, a configuration variable generation unit and a configuration parameter adjustment unit, wherein the acquisition unit is used for acquiring a to-be-modified quantity and a dynamic adjustment scheme when receiving a modification instruction for indicating modification of the configuration variable;
the release unit is used for performing version parallel release according to the to-be-modified quantity and the dynamic adjustment scheme;
and the updating unit is used for updating the current running version when an updating instruction for indicating version updating is received and the parallel version issuing is completed.
Further, the variable configuration apparatus further includes:
and the display unit is used for generating and displaying the scheduling logic diagram according to the dependency scheduling configuration file.
Further, the variable configuration apparatus further includes:
the receiving unit is used for receiving an inquiry serial number used for inquiring the transaction information;
and the output unit is used for matching and outputting the transaction dynamic execution graph and the execution time details corresponding to the inquiry serial number.
Further, the variable configuration apparatus further includes:
the analysis unit is used for carrying out dynamic analysis on the utilization rate of the variable to be configured to obtain a dynamic analysis result;
and the calculating unit is used for calculating the accuracy according to the dynamic analysis result to obtain and output the variable configuration accuracy.
A third aspect of embodiments of the present application provides an electronic device, including a memory and a processor, where the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the variable configuration method described in any one of the first aspect of embodiments of the present application.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, which stores computer program instructions, and when the computer program instructions are read and executed by a processor, the computer program instructions perform the variable configuration method according to any one of the first aspect of the embodiments of the present application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a variable configuration method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another variable configuration method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a variable configuration apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another variable configuration device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example 1
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a variable configuration method according to an embodiment of the present application. The variable configuration method comprises the following steps:
s101, loading a plurality of configuration files; the plurality of configuration files include a common method configuration file, a dictionary table configuration file, a variable center configuration file, a business processing logic configuration file, a minimum execution unit configuration file, a dependency schedule configuration file, a distribution process configuration file, and an available version configuration file.
In this embodiment, the plurality of configuration files are as follows:
method public Method profiles (methods for dynamic invocation at execution time);
table dictionary Table configuration files (defining basic information of variable sources);
vc variable center configuration file (url defining variables and data sources);
service, service processing logic configuration file (constituting Service implementation with unified variable inquired in batch);
avatar minimum execution Unit configuration File (intermediate results that define a class of variables obtained by the minimum Unit batch);
metavide is a dependency schedule configuration file (defining the dependency relationship of the dependency schedule);
dispather, distributing process configuration files (defining channels and service lines to execute different scheduling logics);
edition: available version configuration file (defining the currently available configuration version).
In this embodiment, the process of loading a plurality of configuration files by the method is a service initialization process. The simplified stage flow chart is as follows:
method –> table –> vc –> service –> avatar –> metaverse –> dispather –> edition。
as an optional implementation manner, after the step of loading the plurality of configuration files, the method further includes:
and generating and displaying a scheduling logic diagram according to the dependent scheduling configuration file.
In this embodiment, the method may dynamically display the scheduling logic diagram on the front-end page after the dependency scheduling logic is configured.
S102, establishing a plurality of matched mapping relations step by step according to the plurality of configuration files.
In this embodiment, the method establishes the mapping relationship according to the plurality of configuration files, so that corresponding contents can be sequentially searched in the implementation process in the subsequent steps, thereby completing the query and configuration of the variables.
In this embodiment, the method makes the following explanation for each configuration file in the terminal in the above steps:
(1) loading a public method;
(2) loading a dictionary table configuration file;
(3) loading a variable center file, acquiring dictionary information associated with each variable center id, and acquiring a client of an acquired data source;
(4) loading a service processing logic file and acquiring a variable center id;
(5) loading a minimum execution unit file and acquiring a service processing logic Id;
(6) loading a dependent scheduling file, acquiring a minimum execution unit id, and forming a scheduling logic;
(7) loading a distribution process configuration file and acquiring an execution process depending on scheduling;
(8) and loading the version file and acquiring the distribution flow configuration Id.
S103, acquiring the current running version in the process of processing the transaction information.
And S104, inquiring variables to be configured according to the current running version and the plurality of mapping relations.
In this embodiment, the method follows the following procedure in the service phase:
edition –> dispather –> metaverse –> avatar –> service –> vc –> table –> method。
in this embodiment, the method makes the following explanation for the service workflow in this step:
(1) processing the transaction information to obtain a current running version;
(2) analyzing the transaction information to acquire which distribution process is required to be executed currently;
(3) executing corresponding dependent scheduling logic;
(4) executing minimum execution units based on the dependence respectively;
(5) executing service processing logic, and storing corresponding intermediate results obtained according to the obtained data source client into an available data source;
(6) executing the service processing logic needs to acquire information of a variable center, such as an id of the variable center, and acquire client information of a data source;
(7) when the information id of the variable center is obtained, the information of the dictionary table can be obtained to inquire the information required by the variable;
(8) meanwhile, a public method is obtained, and the query variable is obtained by a configuration method.
And S105, configuring variables to be configured.
As an optional implementation manner, after the step of configuring the variables to be configured, the method further includes:
when a modification instruction for indicating modification of a configuration variable is received, acquiring a to-be-modified quantity and a dynamic adjustment scheme;
according to the amount to be modified and the dynamic adjustment scheme, version parallel release is carried out;
and when an updating instruction for indicating version updating is received and the parallel version issuing is completed, updating the current running version.
In the embodiment, the method can dynamically adjust variable configuration, release by one key, enable by one key to exist, and have a multi-version parallel function in the service.
As an optional implementation manner, after the step of configuring the variables to be configured, the method further includes:
receiving an inquiry serial number for inquiring transaction information;
and matching and outputting a transaction dynamic execution graph and execution time details corresponding to the query serial number.
In this embodiment, the method may query the dynamic execution graph of each transaction and the time of each minimum unit according to the serial number.
In this embodiment, the method may adjust the dependent scheduling logic based on the dynamic scheduled execution time graph, thereby achieving better performance improvement.
As an optional implementation manner, after the step of configuring the variables to be configured, the method further includes:
dynamically analyzing the utilization rate of the variables to be configured to obtain a dynamic analysis result;
and calculating the accuracy according to the dynamic analysis result to obtain and output the variable configuration accuracy.
In this embodiment, the method can dynamically analyze the utilization rate of the variables and dynamically calculate the accuracy rate of the variables based on the algorithm.
In this embodiment, the method may pre-line the variables and then calculate the accuracy of the variables based on the playback.
In this embodiment, the following disadvantages exist in the conventional wind control variables:
(1) the generation of variables is realized by developing codes, and the operation and development cost is high;
(2) the dependency relationship of the variables cannot be intuitively displayed, and unknown influence may be caused by transformation related to old variables;
(3) the variable cannot be dynamically loaded and unloaded, and sometimes the variable which cannot be timely loaded and unloaded may cause great loss;
(4) the processing sequence and the execution time of the data source with variable dependence are fixed, and the processing parallel execution of the same data source has lower performance because the time for loading is inconsistent, so that the execution of the next step needs to wait for the execution of all the parallel tasks of the step to be finished before executing the next step.
Therefore, the method provides a new variable configuration method aiming at the technical problems, so that the corresponding technical effect is realized.
In this embodiment, the execution subject of the method may be a computing device such as a computer and a server, and is not limited in this embodiment.
In this embodiment, an execution subject of the method may also be an intelligent device such as a smart phone and a tablet computer, which is not limited in this embodiment.
It can be seen that, by implementing the variable configuration method described in this embodiment, a simple variable can be configured by only one person, and a developer is added for configuring a complex variable together, so as to implement effective and reliable variable configuration and reduce operation and development costs.
Example 2
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a variable configuration method according to an embodiment of the present disclosure. The variable configuration method comprises the following steps:
s201, loading a plurality of configuration files; the plurality of configuration files include a common method configuration file, a dictionary table configuration file, a variable center configuration file, a business processing logic configuration file, a minimum execution unit configuration file, a dependency schedule configuration file, a distribution process configuration file, and an available version configuration file.
S202, establishing a first mapping relation between the variable center and the dictionary table according to the dictionary table configuration file and the variable center configuration file.
S203, establishing a second mapping relation between the business processing logic and the variable center according to the variable center configuration file and the business processing logic configuration file.
S204, establishing a third mapping relation between the minimum execution unit and the service processing logic according to the service processing logic configuration file and the minimum execution unit configuration file.
S205, according to the minimum execution unit configuration file and the dependency schedule configuration file, a fourth mapping relation between the dependency schedule and the minimum execution unit is established.
S206, establishing a fifth mapping relation between the distribution process and the dependent schedule according to the dependent schedule configuration file and the distribution process configuration file.
And S207, establishing a sixth mapping relation between the available version and the distribution process according to the distribution process configuration file and the available version configuration file.
And S208, acquiring the current running version in the process of processing the transaction information.
And S209, determining the current distribution process according to the current running version and the sixth mapping relation.
S210, determining the current dependent schedule according to the current distribution process and the fifth mapping relation.
S211, determining a plurality of minimum execution units according to the current dependency schedule and the fourth mapping relation.
And S212, matching the current business processing logic corresponding to the transaction information.
S213, determining the current minimum execution unit according to the minimum execution units, the current business processing logic and the third mapping relation.
And S214, determining the current variable center according to the current service processing logic and the current minimum execution unit and the second mapping relation.
S215, determining a current dictionary table according to the current variable center and the first mapping relation.
S216, inquiring variables to be configured according to the public methods in the current dictionary table and the public method configuration file.
And S217, configuring the variables to be configured.
In this embodiment, the execution subject of the method may be a computing device such as a computer and a server, and is not limited in this embodiment.
In this embodiment, the main body of the method may also be an intelligent device such as a smart phone and a tablet computer, which is not limited in this embodiment.
It can be seen that, by implementing the variable configuration method described in this embodiment, a simple variable can be configured by only one person, and a developer is added for a complex variable to configure together, so that effective and reliable variable configuration is realized, and meanwhile, the operation development cost is reduced. Meanwhile, the dependency relationship of the variables can be clearly displayed through the method, so that the influence of the variables on the user can be prompted in the modification process, and the user can be ensured to modify the variables under the condition of no influence. In addition, the method also allows variables to be dynamically brought up and down, thereby ensuring that the impact points are minimized.
It can be seen that, by implementing the variable configuration method described in this embodiment, the scheduled execution of various data source processing logics can be executed in parallel after the variables are configured, so that the execution unit can execute immediately after the execution of the execution unit that depends on the execution unit is completed, thereby improving performance. Meanwhile, the method can clearly display the blood relationship among the variables. In addition, the usefulness of the variable can be checked by pre-online the variable, and the variable and the rule are produced based on the algorithm, so that the validity of the variable configuration is guaranteed.
Example 3
Referring to fig. 3, fig. 3 is a schematic structural diagram of a variable configuration apparatus according to an embodiment of the present application. As shown in fig. 3, the variable configuration apparatus includes:
a loading unit 310 for loading a plurality of configuration files; the configuration files comprise a public method configuration file, a dictionary table configuration file, a variable center configuration file, a business processing logic configuration file, a minimum execution unit configuration file, a dependence scheduling configuration file, a distribution process configuration file and an available version configuration file;
the mapping unit 320 is configured to establish a plurality of mapping relationships matching step by step according to a plurality of configuration files;
an obtaining unit 330, configured to obtain a current running version in a process of processing transaction information;
the query unit 340 is configured to query the variables to be configured according to the current running version and the multiple mapping relationships;
the configuration unit 350 is configured to configure the variables to be configured.
In the embodiment of the present application, for the explanation of the variable configuration apparatus, reference may be made to the description in embodiment 1 or embodiment 2, and details are not repeated in this embodiment.
It can be seen that, by implementing the variable configuration device described in this embodiment, a simple variable can be configured by only one person, and a developer is added for a complex variable to configure together, so that effective and reliable variable configuration is achieved, and meanwhile, the operation and development cost is reduced.
Example 4
Referring to fig. 4, fig. 4 is a schematic structural diagram of a variable configuration device according to an embodiment of the present application. As shown in fig. 4, the variable configuration apparatus includes:
a loading unit 310 for loading a plurality of configuration files; the configuration files comprise a public method configuration file, a dictionary table configuration file, a variable center configuration file, a business processing logic configuration file, a minimum execution unit configuration file, a dependence scheduling configuration file, a distribution process configuration file and an available version configuration file;
the mapping unit 320 is configured to establish a plurality of mapping relationships matching step by step according to a plurality of configuration files;
an obtaining unit 330, configured to obtain a current running version in a process of processing transaction information;
the query unit 340 is configured to query the variables to be configured according to the current running version and the multiple mapping relationships;
the configuration unit 350 is configured to configure the variables to be configured.
As an optional implementation, the mapping unit 320 includes:
the first mapping subunit 321 is configured to establish a first mapping relationship between the variable center and the dictionary table according to the dictionary table configuration file and the variable center configuration file;
a second mapping subunit 322, configured to establish a second mapping relationship between the service processing logic and the variable center according to the variable center configuration file and the service processing logic configuration file;
a third mapping subunit 323, configured to establish a third mapping relationship between the minimum execution unit and the service processing logic according to the service processing logic configuration file and the minimum execution unit configuration file;
a fourth mapping subunit 324, configured to establish a fourth mapping relationship between the dependency schedule and the minimum execution unit according to the minimum execution unit configuration file and the dependency schedule configuration file;
a fifth mapping subunit 325, configured to establish a fifth mapping relationship between the distribution process and the dependency schedule according to the dependency schedule configuration file and the distribution process configuration file;
a sixth mapping subunit 326, configured to establish a sixth mapping relationship between the available version and the distribution process according to the distribution process configuration file and the available version configuration file.
As an alternative embodiment, the query unit 340 includes:
a determining subunit 341, configured to determine the current distribution process according to the current running version and the sixth mapping relationship;
the determining subunit 341 is further configured to determine the current dependent schedule according to the current distribution flow and the fifth mapping relationship;
a determining subunit 341, configured to determine, according to the current dependency schedule and the fourth mapping relationship, a plurality of minimum execution units;
a matching subunit 342 for matching the current business processing logic corresponding to the transaction information;
a determining subunit 341, configured to determine a current minimum execution unit according to the multiple minimum execution units, the current service processing logic, and the third mapping relationship;
the determining subunit 341 is further configured to determine a current variable center according to the current service processing logic and the current minimum execution unit according to the second mapping relationship;
the determining subunit 341 is further configured to determine the current dictionary table according to the current variable center and the first mapping relationship;
the querying subunit 343 is configured to query the variables to be configured according to the common method in the current dictionary table and the common method configuration file.
As an optional implementation manner, the variable configuration apparatus further includes:
an obtaining unit 360, configured to obtain, when a modification instruction for instructing to modify a configuration variable is received, an amount to be modified and a dynamic adjustment scheme;
the issuing unit 370 is configured to perform version parallel issuing according to the amount to be modified and the dynamic adjustment scheme;
and the updating unit 380 is used for updating the current running version when an updating instruction for indicating version updating is received and the parallel version issuing is completed.
As an optional implementation manner, the variable configuration apparatus further includes:
the display unit 390 is configured to generate and display a scheduling logic diagram according to the dependency scheduling configuration file.
As an optional implementation manner, the variable configuration apparatus further includes:
a receiving unit 400, configured to receive an inquiry serial number for inquiring transaction information;
and the output unit 410 is used for matching and outputting the transaction dynamic execution graph and the execution time details corresponding to the query serial number.
As an optional implementation manner, the variable configuration apparatus further includes:
the analysis unit 420 is configured to perform dynamic analysis on the utilization rate of the variables to be configured to obtain a dynamic analysis result;
and the calculating unit 430 is configured to perform accuracy calculation according to the dynamic analysis result, and obtain and output a variable configuration accuracy.
In this embodiment, the description in embodiment 1 or embodiment 2 may be referred to for explanation of the variable configuration apparatus, and details are not repeated in this embodiment.
It can be seen that, by implementing the variable configuration device described in this embodiment, a simple variable can be configured by only one person, and a developer is added for configuring a complex variable together, so as to implement effective and reliable variable configuration and reduce operation and development costs. Meanwhile, the dependency relationship of the variables can be clearly displayed through the device, so that the influence of the variables on the user can be prompted in the modification process, and the user can be ensured to modify under the condition of no influence. In addition, the device also allows variables to be dynamically up and down-lined, thereby ensuring that the point of influence is minimized.
It can be seen that, with the variable configuration apparatus described in this embodiment, after the variable configuration is performed, the scheduling execution of various data source processing logics can be executed in parallel, so that the execution unit that depends on the variable configuration apparatus can execute immediately after the execution is completed, thereby improving performance. Meanwhile, the device can clearly display the blood relationship among variables. In addition, the usefulness of the variable can be checked by pre-online the variable, and the variable and the rule are produced based on the algorithm, so that the validity of the variable configuration is guaranteed.
An embodiment of the present application provides an electronic device, which includes a memory and a processor, where the memory is used to store a computer program, and the processor runs the computer program to make the electronic device execute the variable configuration method in embodiment 1 or embodiment 2 of the present application.
An embodiment of the present application provides a computer-readable storage medium, which stores computer program instructions, where the computer program instructions, when read and executed by a processor, perform a variable configuration method in embodiment 1 or embodiment 2 of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative and, for example, the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. 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 and/or flowchart illustration, and combinations of blocks in the block diagrams and/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.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.

Claims (9)

1. A method for configuring variables, comprising:
loading a plurality of configuration files; the configuration files comprise a public method configuration file, a dictionary table configuration file, a variable center configuration file, a business processing logic configuration file, a minimum execution unit configuration file, a dependency scheduling configuration file, a distribution process configuration file and an available version configuration file;
establishing a plurality of matched mapping relations step by step according to the plurality of configuration files;
in the process of processing transaction information, acquiring a current running version;
inquiring variables to be configured according to the current operation version and a plurality of mapping relations;
configuring the variables to be configured;
the step of establishing a plurality of matching mapping relations step by step according to the plurality of configuration files comprises the following steps:
establishing a first mapping relation between a variable center and a dictionary table according to the dictionary table configuration file and the variable center configuration file;
establishing a second mapping relation between the business processing logic and the variable center according to the variable center configuration file and the business processing logic configuration file;
establishing a third mapping relation between a minimum execution unit and the service processing logic according to the service processing logic configuration file and the minimum execution unit configuration file;
establishing a fourth mapping relation between the dependence schedule and the minimum execution unit according to the minimum execution unit configuration file and the dependence schedule configuration file;
establishing a fifth mapping relation between the distribution process and the dependency schedule according to the dependency schedule configuration file and the distribution process configuration file;
and establishing a sixth mapping relation between the available version and the distribution process according to the distribution process configuration file and the available version configuration file.
2. The variable configuration method according to claim 1, wherein the step of querying the variable to be configured according to the current running version and the plurality of mapping relationships comprises:
determining a current distribution process according to the current operation version and the sixth mapping relation;
determining a current dependent schedule according to the current distribution process and the fifth mapping relation;
determining a plurality of minimum execution units according to the current dependency schedule and the fourth mapping relation;
matching current business processing logic corresponding to the transaction information;
determining a current minimum execution unit according to the minimum execution units, the current service processing logic and the third mapping relation;
determining a current variable center according to the current service processing logic and the second mapping relation between the current minimum execution unit and the current minimum execution unit;
determining a current dictionary table according to the current variable center and the first mapping relation;
and querying variables to be configured according to the current dictionary table and the public methods in the public method configuration file.
3. The variable configuration method according to claim 1, wherein after the step of configuring the variable to be configured, the method further comprises:
when a modification instruction for indicating modification of a configuration variable is received, acquiring a to-be-modified quantity and a dynamic adjustment scheme;
according to the amount to be modified and the dynamic adjustment scheme, version parallel release is carried out;
and when an updating instruction for indicating version updating is received and the parallel version release is completed, updating the current running version.
4. The variable configuration method of claim 1, wherein after the step of loading the plurality of configuration files, the method further comprises:
and generating and displaying a scheduling logic diagram according to the dependent scheduling configuration file.
5. The variable configuration method according to claim 1, wherein after the step of configuring the variable to be configured, the method further comprises:
receiving an inquiry serial number for inquiring transaction information;
and matching and outputting a transaction dynamic execution graph and execution time details corresponding to the query serial number.
6. The variable configuration method according to claim 1, wherein after the step of configuring the variable to be configured, the method further comprises:
dynamically analyzing the utilization rate of the variable to be configured to obtain a dynamic analysis result;
and calculating the accuracy according to the dynamic analysis result to obtain and output the variable configuration accuracy.
7. A variable configuration apparatus, characterized in that the variable configuration apparatus comprises:
the loading unit is used for loading a plurality of configuration files; the configuration files comprise a public method configuration file, a dictionary table configuration file, a variable center configuration file, a business processing logic configuration file, a minimum execution unit configuration file, a dependence scheduling configuration file, a distribution process configuration file and an available version configuration file;
the mapping unit is used for establishing a plurality of matched mapping relations step by step according to the plurality of configuration files;
the acquisition unit is used for acquiring the current running version in the process of processing the transaction information;
the query unit is used for querying the variables to be configured according to the current running version and the plurality of mapping relations;
the configuration unit is used for configuring the variables to be configured;
wherein the mapping unit includes:
the first mapping subunit is used for establishing a first mapping relation between the variable center and the dictionary table according to the dictionary table configuration file and the variable center configuration file;
the second mapping subunit is configured to establish a second mapping relationship between the service processing logic and the variable center according to the variable center configuration file and the service processing logic configuration file;
a third mapping subunit, configured to establish a third mapping relationship between the minimum execution unit and the service processing logic according to the service processing logic configuration file and the minimum execution unit configuration file;
a fourth mapping subunit, configured to establish a fourth mapping relationship between the dependency schedule and the minimum execution unit according to the minimum execution unit configuration file and the dependency schedule configuration file;
a fifth mapping subunit, configured to establish a fifth mapping relationship between the distribution process and the dependency schedule according to the dependency schedule configuration file and the distribution process configuration file;
a sixth mapping subunit, configured to establish a sixth mapping relationship between the available version and the distribution process according to the distribution process configuration file and the available version configuration file.
8. An electronic device, comprising a memory for storing a computer program and a processor for executing the computer program to cause the electronic device to perform the variable configuration method of any one of claims 1 to 6.
9. A readable storage medium having stored therein computer program instructions which, when read and executed by a processor, perform the variable configuration method of any of claims 1 to 6.
CN202210924401.0A 2022-08-03 2022-08-03 Variable configuration method and device Active CN114995877B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210924401.0A CN114995877B (en) 2022-08-03 2022-08-03 Variable configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210924401.0A CN114995877B (en) 2022-08-03 2022-08-03 Variable configuration method and device

Publications (2)

Publication Number Publication Date
CN114995877A CN114995877A (en) 2022-09-02
CN114995877B true CN114995877B (en) 2022-10-28

Family

ID=83022801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210924401.0A Active CN114995877B (en) 2022-08-03 2022-08-03 Variable configuration method and device

Country Status (1)

Country Link
CN (1) CN114995877B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115858012B (en) * 2022-12-30 2023-10-20 广州市易鸿智能装备有限公司 Program variable configuration method, device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532737A (en) * 2013-09-18 2014-01-22 瑞斯康达科技发展股份有限公司 Method, device and system for processing various types of alarms
WO2014146429A1 (en) * 2013-03-18 2014-09-25 Hangzhou H3C Technologies Co., Ltd. Startup configuration file deployment
CN105988431A (en) * 2015-01-30 2016-10-05 中芯国际集成电路制造(上海)有限公司 Management information system and product process configuration data updating method and product process configuration data updating device thereof
CN107730077A (en) * 2017-09-13 2018-02-23 平安科技(深圳)有限公司 Node tasks data display method, device, storage medium and computer equipment
CN110427178A (en) * 2019-06-21 2019-11-08 深圳壹账通智能科技有限公司 Configuration method, device, equipment and the readable storage medium storing program for executing of air control engine
CN110704041A (en) * 2019-10-10 2020-01-17 达飞云贷科技(北京)有限公司 Software development method and device
CN111858643A (en) * 2020-06-29 2020-10-30 上海森亿医疗科技有限公司 Database variable production method, system, computer device and storage medium
CN111917755A (en) * 2020-07-24 2020-11-10 群硕软件开发(上海)有限公司 Dynamic data integration method based on configuration
CN114237633A (en) * 2021-12-17 2022-03-25 平安证券股份有限公司 Application configuration method, device, equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102937992A (en) * 2012-11-01 2013-02-20 上海方正数字出版技术有限公司 Object mapping transformation design method based on Java and X extensive makeup language (XML) database
CN103942311B (en) * 2014-04-21 2017-04-12 湖南深拓智能设备股份有限公司 Multiplexing method of monitoring system variables
CN109783144B (en) * 2017-11-13 2022-03-25 深圳市创客工场科技有限公司 Method and device for processing variable in interactive realization of virtual environment and storage medium
CN113139176A (en) * 2020-01-20 2021-07-20 华为技术有限公司 Malicious file detection method, device, equipment and storage medium
CN112583034B (en) * 2020-12-16 2022-06-10 江苏方天电力技术有限公司 Energy storage equipment configuration optimization method considering multiple random variables

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014146429A1 (en) * 2013-03-18 2014-09-25 Hangzhou H3C Technologies Co., Ltd. Startup configuration file deployment
CN103532737A (en) * 2013-09-18 2014-01-22 瑞斯康达科技发展股份有限公司 Method, device and system for processing various types of alarms
CN105988431A (en) * 2015-01-30 2016-10-05 中芯国际集成电路制造(上海)有限公司 Management information system and product process configuration data updating method and product process configuration data updating device thereof
CN107730077A (en) * 2017-09-13 2018-02-23 平安科技(深圳)有限公司 Node tasks data display method, device, storage medium and computer equipment
CN110427178A (en) * 2019-06-21 2019-11-08 深圳壹账通智能科技有限公司 Configuration method, device, equipment and the readable storage medium storing program for executing of air control engine
CN110704041A (en) * 2019-10-10 2020-01-17 达飞云贷科技(北京)有限公司 Software development method and device
CN111858643A (en) * 2020-06-29 2020-10-30 上海森亿医疗科技有限公司 Database variable production method, system, computer device and storage medium
CN111917755A (en) * 2020-07-24 2020-11-10 群硕软件开发(上海)有限公司 Dynamic data integration method based on configuration
CN114237633A (en) * 2021-12-17 2022-03-25 平安证券股份有限公司 Application configuration method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ATML-based standardized description and automatic configuration of the test adapter for ATS platform;Liu Fujun等;《2010 International Conference on Information, Networking and Automation (ICINA)》;20101115;1-4 *
支持多任务协同的复杂产品配置设计系统关键技术研究;李乾仕;《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》;20220515(第05期);C028-115 *

Also Published As

Publication number Publication date
CN114995877A (en) 2022-09-02

Similar Documents

Publication Publication Date Title
CN110134689B (en) Target group screening method and system based on main body object label change and computer equipment
CN111046237A (en) User behavior data processing method and device, electronic equipment and readable medium
CN111078776A (en) Data table standardization method, device, equipment and storage medium
WO2012044214A1 (en) Method and arrangement for processing data
CN110727857A (en) Method and device for identifying key features of potential users aiming at business objects
CN114995877B (en) Variable configuration method and device
CN113835692A (en) Dictionary data processing method and device, electronic equipment and computer storage medium
CN103678591A (en) Device and method for automatically executing multi-service receipt statistical treatment
CN110955712A (en) Development API processing method and device based on multiple data sources
CN111191180A (en) Method and device for constructing micro-service system in invoice field and storage medium
CN115543428A (en) Simulated data generation method and device based on strategy template
CN115511644A (en) Processing method for target policy, electronic device and readable storage medium
CN113468258A (en) Heterogeneous data conversion method and device and storage medium
CN110929207B (en) Data processing method, device and computer readable storage medium
US11238044B2 (en) Candidate data record prioritization for match processing
CN110333844B (en) Calculation formula processing method and device
US10922312B2 (en) Optimization of data processing job execution using hash trees
CN107180017A (en) A kind of sample sequence method and apparatus
CN112308440A (en) Work order processing method and device, computer equipment and computer readable storage medium
CN110765100B (en) Label generation method and device, computer readable storage medium and server
CN115174366B (en) Data processing method and device
CN110765118B (en) Data revision method, revision device and readable storage medium
Shahsavari et al. Semantic Constraint and QoS-Aware Large-Scale Web Service Composition
CN117113149A (en) User selection method, device, equipment and storage medium
CN114356946A (en) Data table updating method, device, equipment and readable storage medium

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
GR01 Patent grant
GR01 Patent grant