CN113688134B - Visual variable management method, system and equipment based on multidimensional data - Google Patents

Visual variable management method, system and equipment based on multidimensional data Download PDF

Info

Publication number
CN113688134B
CN113688134B CN202110976285.2A CN202110976285A CN113688134B CN 113688134 B CN113688134 B CN 113688134B CN 202110976285 A CN202110976285 A CN 202110976285A CN 113688134 B CN113688134 B CN 113688134B
Authority
CN
China
Prior art keywords
variable
variables
assigned
multidimensional data
expression
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
CN202110976285.2A
Other languages
Chinese (zh)
Other versions
CN113688134A (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 Merchants Bank Co Ltd
Original Assignee
China Merchants 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 China Merchants Bank Co Ltd filed Critical China Merchants Bank Co Ltd
Priority to CN202110976285.2A priority Critical patent/CN113688134B/en
Publication of CN113688134A publication Critical patent/CN113688134A/en
Application granted granted Critical
Publication of CN113688134B publication Critical patent/CN113688134B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2291User-Defined Types; Storage management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2246Trees, e.g. B+trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data

Abstract

The application discloses a method, a system and equipment for managing visual variables based on multidimensional data, wherein the method for managing visual variables based on the multidimensional data comprises the following steps: obtaining variables with different predefined action thresholds, wherein the variables with different action thresholds comprise variable indexes, variable names, action ranges and variable initial values, selecting variables to be assigned from the defined variables to assign the variables to be assigned, obtaining an assignment expression, performing debugging and inspection on the assignment expression to obtain an inspection result, analyzing the assignment expression if the inspection result is a legal inspection result, obtaining a variable analysis result, and storing the variable analysis result in a target database. The method and the device solve the technical problem of low variable reusability in the platform.

Description

Visual variable management method, system and equipment based on multidimensional data
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, a system, and an apparatus for managing visual variables based on multidimensional data.
Background
Along with the development of computer technology, at present, a variable system of an existing platform is usually realized based on a hard coding mode, namely, the variable and source codes are tightly coupled, the source codes of the platform are required to be known to define and use the variable, in addition, the visualization of the variable system is not realized by the existing low-code platform, a user of the platform cannot use the variable in a self-defined manner in a page, the flexibility of the platform is greatly limited, and the variable reusability in the platform is lower.
Disclosure of Invention
The main purpose of the application is to provide a visual variable management method, system and equipment based on multidimensional data, which aims to solve the technical problem of low variable reusability in a platform in the prior art.
In order to achieve the above object, the present application provides a method for managing a visualized variable based on multidimensional data, the method for managing a visualized variable based on multidimensional data comprising:
acquiring variables with predefined different action thresholds, wherein the variables with the different action thresholds comprise a variable index, a variable name, an action domain and a variable initial value;
selecting variables to be assigned from the defined variables to assign the variables to be assigned, and obtaining an assignment expression;
debugging and checking the assignment expression to obtain a checking result;
and if the test result is a legal test result, analyzing the assignment expression to obtain a variable analysis result, and storing the variable analysis result into a target database.
Optionally, before the step of acquiring variables with predefined different action thresholds, the method for managing visualized variables based on multidimensional data further includes:
inputting a variable index, a variable name, a scope and a variable initial value corresponding to the defined variable;
if the action range corresponding to the action range is a local action range, selecting the page name acted by the defined variable;
if the action range corresponding to the action range is a global action range, selecting an application name of the defined variable action;
based on the defined variable, generating a storage identity corresponding to the defined variable;
and storing the storage identity and the defined variable into a variable information table in a target database.
Optionally, the step of selecting a variable to be assigned from the defined variables to assign the variable to be assigned, and obtaining an assignment expression includes:
selecting the variable to be assigned from the defined variables;
and inputting an expression corresponding to the variable to be assigned based on the variable index corresponding to the variable to be assigned, and obtaining the assignment expression, wherein the assignment expression comprises expression parameters and operators.
Optionally, if the test result is a legal test result, the step of analyzing the assignment expression to obtain a variable analysis result, and storing the variable analysis result in a target database includes:
if the test result is a legal test result, converting the assignment expression into an abstract syntax tree;
based on the abstract syntax tree, performing depth traversal to calculate node values corresponding to all nodes in the abstract syntax tree, and obtaining the variable analysis result;
and storing the variable analysis result into a variable information table in a target database corresponding to the assignment expression.
Optionally, the step of obtaining the variable parsing result based on the abstract syntax tree by performing depth traversal to calculate node values corresponding to each node of the abstract syntax tree includes:
judging whether the assignment expression has a cyclic reference variable or not;
if yes, throwing out illegal information of the cyclic reference;
and if the variable analysis result does not exist, performing recursive calculation according to the node type corresponding to each node of the abstract syntax tree, and obtaining the variable analysis result.
Optionally, after the step of performing debugging and checking on the assignment expression to obtain a checking result, the method for managing a visualized variable based on multidimensional data further includes:
if the test result corresponding to the assignment expression is an illegal test result, returning to the execution step: and selecting variables to be assigned from the defined variables to assign the variables to be assigned, and obtaining an assignment expression.
The application also provides a visual variable management system based on the multidimensional data, which is characterized in that the visual variable management system based on the multidimensional data comprises:
the variable acquisition module is used for acquiring variables with predefined different action thresholds, wherein the variables with the different action thresholds comprise a variable index, a variable name, an action domain and a variable initial value;
the variable assignment module is used for selecting variables to be assigned from the defined variables so as to assign the variables to be assigned to obtain an assignment expression;
the variable debugging module is used for debugging and checking the assignment expression to obtain a checking result;
and the variable analysis module is used for analyzing the assignment expression if the test result is a legal test result, obtaining a variable analysis result and storing the variable analysis result into a target database.
The application also provides a visual variable management device based on the multidimensional data, wherein the visual variable management device based on the multidimensional data is entity equipment, and the visual variable management device based on the multidimensional data comprises: the system comprises a memory, a processor and a visual variable management program based on multidimensional data, wherein the visual variable management program based on the multidimensional data is stored on the memory, and the visual variable management program based on the multidimensional data is executed by the processor to realize the steps of the visual variable management method.
The application also provides a medium, which is a readable storage medium, wherein the readable storage medium stores a visualization variable management program based on multidimensional data, and the visualization variable management program based on multidimensional data is executed by a processor to realize the steps of the visualization variable management method.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of a method for visual variable management as described above.
Compared with the technical means for constructing a variable system based on a hard coding mode adopted in the prior art, the method, the system and the device for managing the visual variable based on the multidimensional data firstly acquire variables with different predefined action thresholds, wherein the variables with different action thresholds comprise variable indexes, variable names, action fields and variable initial values, and then the variables to be assigned are selected from the defined variables so as to assign the variables to be assigned to obtain an assignment expression, further, the assignment expression is subjected to debugging and inspection to obtain an inspection result, further, if the inspection result is a legal inspection result, the assignment expression is subjected to analysis processing to obtain a variable analysis result, and the variable analysis result is stored in a target database, so that the operations of defining the variables with different action fields in a page in a visual mode are realized, the reusability of the variables is improved, and then the defined variables are directly subjected to operations such as assignment and debugging in the page of the platform, namely, the variable to be assigned and used in the page in a visual mode can be customized and used without source code of the platform, the difficulty of users is not reduced, the use of the variables is improved, and the reusability of the variables in the platform is improved, and the defect of the platform is overcome due to the fact that the reusability of the variables is reduced by the source code is not needed, and the prior art is well.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic flow chart of a first embodiment of a method for managing visual variables based on multidimensional data according to the present application;
FIG. 2 is a schematic diagram of the structure of variables with different thresholds of action in the multidimensional data-based visual variable management method of the present application;
FIG. 3 is a flow chart of a second embodiment of a method for managing visual variables based on multidimensional data according to the present application;
fig. 4 is a schematic structural diagram of a visual variable management device based on multidimensional data in a hardware running environment related to a visual variable management method based on multidimensional data in an embodiment of the present application.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In a first embodiment of the method for managing a visualized variable based on multidimensional data according to the present application, referring to fig. 1, the method for managing a visualized variable based on multidimensional data includes:
step S10, obtaining variables with predefined different action thresholds, wherein the variables with the different action thresholds comprise a variable index, a variable name, an action domain and a variable initial value;
in this embodiment, it should be noted that, a visual page entry is provided on a platform system, and then, a user-defined variable may be performed in the visual page entry, where the variable includes a system variable, a global variable and a local variable, referring to fig. 2, fig. 2 is a schematic structural diagram of a variable with different action thresholds in the visual variable management method based on multidimensional data in this application, and one platform system includes a plurality of applications, each application includes a plurality of pages, where the system variable is defined for the platform, a user cannot define the system variable, and may be customized in advance according to different user systems, where the global variable may be customized by the user and acts on the whole application, and the local variable is customized by the user and acts on a specific page.
The method comprises the steps of acquiring variables with predefined different action thresholds, wherein the variables with predefined different action thresholds comprise a variable index, a variable name, an action scope and a variable initial value, and specifically, when entering a certain page of a platform system, all variables with the action scope in the page are automatically displayed, namely, the variables with predefined different action thresholds are acquired.
Wherein, prior to the step of obtaining variables of predefined different thresholds of action, the multidimensional data based visual variable management method further comprises:
step S11, inputting a variable index, a variable name, a scope and a variable initial value corresponding to the defined variable;
in this embodiment, it should be noted that, the defined variables include a system variable, a global variable and a local variable, where the system variable is a variable shared by all applications in the platform, the global variable is a variable shared in an application, and the local variable is a variable shared in a current page, so that reusability of the variable is improved by the variable of different scope, further, the variable index is a unique identifier of the variable, including letters and numbers, the variable name may be composed of chinese, the scope is an scope of action of the identified variable, global (global variable) or local (local variable) may be selected for identification, one variable corresponds to one scope, the initial value of the variable may be a default value of user-defined input, or may be determined according to other defined variable and expression grammars, for example, the variable "price" is obtained by the product of the variable "per_price" and the variable "total".
And inputting a variable index, a variable name, a scope and a variable initial value corresponding to the defined variable, and specifically, inputting variable information corresponding to the variable to be defined in a visual page according to a preset input prompt box, wherein the variable information comprises the variable index, the variable name, the scope and the variable initial value.
Step S12, if the action range corresponding to the action range is a local action range, selecting the page name acted by the defined variable;
in this embodiment, if the scope is a local scope, the page name to which the variable acts is selected, specifically, if the scope is a local scope, the defined variable is proved to be a local variable according to the scope of the scope, and then the page name to which the local variable acts is selected, that is, only the page corresponding to the page name uses the local variable,
and step S13, if the action scope corresponding to the action scope is a global action scope, selecting the application name of the defined variable action.
In this embodiment, if the scope corresponding to the scope is a global scope, an application name to which the variable acts is selected, specifically, if the scope is a global scope, the defined variable is proved to be a global variable, and then the application name to which the global variable acts is selected, so that all pages in the application corresponding to the application name can use the global variable.
Step S14, based on the defined variable, generating a storage identity corresponding to the defined variable;
in this embodiment, based on the defined variable, a storage identity corresponding to the defined variable is generated, specifically, based on the defined variable, the target database will automatically generate a unique storage identity corresponding to the defined variable, so as to facilitate retrieval according to the storage identity.
And step S15, storing the storage identity and the defined variable into a variable information table in a target database.
In this embodiment, it should be noted that, the platform includes at least one application, and each application includes at least one page, and since the variables of different scopes are defined, the platform needs to configure the information table corresponding to the variables for each application.
And storing the storage identity and the defined variable into a variable information table in a target database, specifically, according to the storage identity, performing association storage on the storage identity and the defined variable into a variable information table in a counted target database table, wherein different fields corresponding to different action fields can be preset in order to distinguish the action fields corresponding to the system variable, the global variable and the local variable, for example, system, global and local fields can be used for distinguishing the system variable, the global variable and the local variable.
Step S20, selecting variables to be assigned from the defined variables to assign the variables to be assigned, and obtaining an assignment expression;
in this embodiment, a variable to be assigned is selected from the defined variables to assign the variable to be assigned to obtain an assignment expression, specifically, the variable to be assigned is selected from the variables displayed on a platform page, and then an expression corresponding to the variable to be assigned is filled in to obtain the assignment expression, so that the operation of assigning the variable to be assigned is completed.
The step of selecting a variable to be assigned from the defined variables to assign the variable to be assigned, and obtaining an assignment expression includes:
step S21, selecting the variable to be assigned from the defined variables;
in this embodiment, it should be noted that, when the target user logs in to a certain page, the target user will read the corresponding variable from the target database and display the corresponding variable in the page, that is, display all the variables corresponding to the page.
Selecting the variable to be assigned from the defined variables, specifically selecting the variable to be assigned from the variables displayed in the page, wherein the variables displayed in the page comprise local variables corresponding to the page and global variables corresponding to the page.
Step S23, based on the variable index corresponding to the variable to be assigned, inputting an expression corresponding to the variable to be assigned, and obtaining the assigned expression, wherein the assigned expression comprises expression parameters and operators.
In this embodiment, it should be noted that, the operators include operators such as arithmetic operators, relational operators, logical operators, bit operators, and built-in functions of multidimensional data operations, where the built-in functions include MAX (maximum), MIN (minimum), STRING (converted into character STRING), CONCAT (STRING concatenation) and DAY (time calculation (unit: DAY)), where the STRING function converts an input assignment into a character STRING type, the CONCAT function converts an input assignment into a character STRING form and concatenates the character STRING into a character STRING, and the DAY function accepts an input assignment in a date format and converts the input assignment into a natural DAY.
Based on the variable index corresponding to the variable to be assigned, inputting an expression corresponding to the variable to be assigned to obtain the assigned expression, wherein the assigned expression comprises an expression parameter and an operator, specifically, inputting the expression parameter corresponding to the expression corresponding to the variable to be assigned, wherein a character string can be input as the expression parameter, and all variables except for a self variable in the action domain of the page can be selected as the expression parameter, including a system variable, a global variable and a local variable in the page, and further inputting the operator to complete assignment of the variable to be assigned.
Additionally, the variables in the existing variable system only support simple expressions and calculations, so that the complex business requirements are difficult to fill in and calculate, and business functions supporting multidimensional data operation, such as functions of maximum value, conversion into character strings, character string splicing, nature day calculation and the like, are built in the application, so that the definition and use of the variables can meet the more complex business requirements.
Step S30, debugging and checking the assignment expression to obtain a checking result;
in this embodiment, it should be noted that, when a user enters a certain page of the platform, the user shows that the scope is applied to a variable corresponding to the page and shows that the scope is applied to a variable corresponding to the page, so that the user views the value of the variable in real time, and does not need to manually obtain the value of the variable through breakpoint debugging of the code.
And carrying out debugging and checking on the assignment expression to obtain a checking result, specifically, when the assignment expression corresponding to the variable to be assigned is input, detecting whether the input assignment expression is legal or not, and feeding back checking information to a target user, for example, when the user inputs an illegal expression, prompting an expression grammar error.
After the step of debugging and checking the assignment expression to obtain a checking result, the visualized variable management method based on the multidimensional data further comprises the following steps:
and step B10, if the test result corresponding to the assignment expression is an illegal test result, returning to the execution step: and selecting variables to be assigned from the defined variables to assign the variables to be assigned, and obtaining an assignment expression.
In this embodiment, specifically, if the test result corresponding to the assigned expression is an illegal test result, the illegal assigned expression cannot be resolved and calculated, so that information that the input of the expression is illegal is thrown out, and the execution step is returned: and selecting variables to be assigned from the defined variables to assign the variables to be assigned, and obtaining an assignment expression to carry out assignment again.
Step S40, if the test result is a legal test result, analyzing the assignment expression to obtain a variable analysis result, and storing the variable analysis result into a target database;
in this embodiment, the parsing process is a processing method for calculating a value corresponding to a variable after assignment, and includes a parsing method based on a template engine, a traversing parsing method based on an AST tree (Abstract Syntax Tree, syntax abstract tree), and the like.
If the test result is a legal test result, analyzing the assigned expression to obtain a variable analysis result, and storing the variable analysis result in a target database, specifically, if the test result is a legal test result, firstly, constructing the assigned expression into the grammar abstract tree, further performing recursive computation according to node types corresponding to each node of the abstract grammar tree, where it is required to record expression parameters referenced by a variable to be currently calculated in the assigned expression in each process of recursively computing the variable to determine whether a cyclic reference variable exists in the expression parameters referenced by the variable to be currently calculated, that is, determine whether a self variable exists in the expression parameters corresponding to the variable to be currently calculated, if so, cannot compute the assigned expression, and if not, performing deep recursion computation according to the node types to obtain the variable analysis result, where the node types include data types, operation types, built-in function types, and the like, and the operation types include + - (addition)/(subtraction-! (non) etc., for example, in calculating the valuation expression: a=b+1; when b=a, the value of the variable b needs to be calculated first because the reference variable array corresponding to the expression parameter referenced by the variable a is [ b ], and the reference variable array corresponding to the expression parameter referenced by the variable b is [ a ], the value of the assigned expression cannot be calculated analytically because the variable a references the variable a.
Compared with the technical means for constructing a variable system based on a hard coding mode adopted in the prior art, the embodiment of the application firstly acquires variables with different predefined action thresholds, wherein the variables with different action thresholds comprise variable indexes, variable names, action fields and variable initial values, and then selects variables to be assigned from the defined variables so as to assign the variables to be assigned to obtain an assignment expression, further, debug and test the assignment expression to obtain a test result, further, if the test result is a legal test result, analyze the assignment expression to obtain a variable analysis result, and store the variable analysis result in a target database, thereby realizing the operations of defining the variables with different action fields in a page in a visual mode, improving the reusability of the variables, directly carrying out operations such as assignment and debugging on the defined variables in the page of the platform, namely, carrying out visual custom and use of the variables in the page without source code of the platform, not only reducing the use difficulty of the user, but also overcoming the defect of the source code of the platform, and improving the reusability of the variables in the platform.
Further, referring to fig. 3, based on the first embodiment of the present application, in another embodiment of the present application, the step of analyzing the assignment expression to obtain a variable analysis result if the verification result is a legal verification result, and storing the variable analysis result in a target database includes:
a1, if the test result is a legal test result, converting the assignment expression into an abstract syntax tree;
in this embodiment, it should be noted that the Abstract Syntax Tree (AST) is an abstract representation of the syntax structure of the source code, and represents the syntax structure of the programming language in the form of a tree, and each node on the tree represents a structure in the source code.
If the test result is a legal test result, converting the assignment expression into an abstract syntax tree, specifically, after obtaining the assignment expression corresponding to the variable to be assigned input by the target user, converting the assignment expression into one abstract syntax tree, so as to realize the calculation of the expression through the abstract syntax tree, for example, the abstract syntax tree with the expression of 1× (2+3) can be converted as follows:
and step A20, based on the abstract syntax tree, deeply traversing and calculating node values corresponding to all nodes in the abstract syntax tree to obtain the variable analysis result.
In this embodiment, in the assignment expression process, the built-in functions of the input multidimensional data operation, such as MAX (maximum value), MIN (minimum value), STRING (converted into character STRING), CONCAT (character STRING concatenation), DAY (time calculation (unit: DAY)) and the like, are supported, so that in the parsing process, the calculation of the built-in functions corresponding to the multidimensional data is also supported.
Based on the abstract syntax tree, deeply traversing and calculating node values corresponding to all nodes in the abstract syntax tree to obtain the variable analysis result, specifically, performing recursive calculation according to node types corresponding to all nodes of the abstract syntax tree, returning a value corresponding to a current node if the current node type is a data type, performing recursive calculation according to the value corresponding to the node according to the unitary operator if the current node type is a unitary operator type, and performing calculation according to a function type corresponding to a built-in function if the current node type is a built-in function until the recursive calculation is completed on all nodes of the abstract syntax tree to obtain the variable analysis result.
The step of obtaining the variable analysis result includes:
step A21, judging whether the assignment expression has a cyclic reference variable or not;
in this embodiment, it should be noted that, the cyclic reference variable is that a current variable to be assigned exists in an expression parameter corresponding to the current variable to be assigned, and when the cyclic reference exists in the assignment expression, the value of the calculation assignment expression cannot be resolved, for example, in the calculation assignment expression: a=b+c; b=a; when c=3, calculating the reference variable array of a as [ b, c ], and calculating the values of b and c first, wherein the reference variable array of b is [ a ], the reference variable array of a is updated as [ b, c, a ], and the reference variable array of the variable a has self-variable, and then the existence of the cyclic reference variable is determined.
Judging whether the assignment expression has a cyclic reference variable or not, specifically judging whether the assignment expression corresponding to the current variable has the cyclic reference variable or not.
Step A22, if yes, throwing out illegal information of cyclic reference;
and step A23, if the variable analysis result does not exist, performing recursive calculation according to the node type corresponding to each node of the abstract syntax tree, and obtaining the variable analysis result.
In this embodiment, if the value assignment expression exists, the condition that the value assignment expression exists in the cyclic reference variable is proved, and then the cyclic reference illegal information is thrown out to prompt the target user to assign the value to be assigned again, and further, if the value assignment expression does not exist, recursive calculation is performed according to node types corresponding to all nodes of the abstract syntax tree, and the variable analysis result is obtained.
And step A30, storing the variable analysis result into a variable information table in a target database corresponding to the assignment expression.
In this embodiment, the variable analysis result is stored in a variable information table in a target database corresponding to the assignment expression, and specifically, after calculating an expression value corresponding to the assignment expression, the expression value is stored in the target database corresponding to the variable to be assigned.
The embodiment of the application provides a visual variable management method based on multidimensional data, namely, if the inspection result is a legal inspection result, the assignment expression is converted into an abstract syntax tree, then the node values corresponding to all nodes in the abstract syntax tree are calculated in a depth traversal mode based on the abstract syntax tree to obtain the variable analysis result, and further, the variable analysis result is stored in a variable information table in a target database corresponding to the assignment expression, so that after the defined variable is directly assigned in a page, the assignment expression can be directly analyzed and calculated, more complex service scenes are met, the applicability of a platform is improved, the technical defect that the variable in the platform is low in multiplexing performance because the variable can be defined and used only by knowing the source code of the platform in the prior art is overcome, and the multiplexing performance of the variable in the platform is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a visual variable management device based on multidimensional data of a hardware running environment according to an embodiment of the present application.
As shown in fig. 4, the multidimensional data-based visualized variable management apparatus may include: a processor 1001, such as a CPU, memory 1005, and a communication bus 1002. Wherein a communication bus 1002 is used to enable connected communication between the processor 1001 and a memory 1005. The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the visualization variable management device based on the multidimensional data may further include a rectangular user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. The rectangular user interface may include a Display screen (Display), an input sub-module such as a Keyboard (Keyboard), and the optional rectangular user interface may also include a standard wired interface, a wireless interface. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WIFI interface).
It will be appreciated by those skilled in the art that the multi-dimensional data based visualization variable management device structure shown in fig. 4 does not constitute a limitation of the multi-dimensional data based visualization variable management device, and may include more or less components than illustrated, or may combine certain components, or may be a different arrangement of components.
As shown in fig. 4, an operating system, a network communication module, and a visualization variable management program based on multidimensional data may be included in a memory 1005 as one type of computer storage medium. The operating system is a program that manages and controls the visual variable management device hardware and software resources based on the multidimensional data, supporting the execution of the visual variable management program based on the multidimensional data, as well as other software and/or programs. The network communication module is used to enable communication between components within the memory 1005 and with other hardware and software in the customer distribution system.
In the visualized variable management apparatus based on multidimensional data shown in fig. 4, a processor 1001 is configured to execute a visualized variable management program based on multidimensional data stored in a memory 1005, and to implement the steps of the visualized variable management method described in any one of the above.
The specific implementation manner of the visualization variable management device based on the multidimensional data is basically the same as that of each embodiment of the visualization variable management method, and is not repeated here.
The application also provides a visual variable management system, which comprises:
the variable acquisition module is used for acquiring variables with predefined different action thresholds, wherein the variables with the different action thresholds comprise a variable index, a variable name, an action domain and a variable initial value;
the variable assignment module is used for selecting variables to be assigned from the defined variables so as to assign the variables to be assigned to obtain an assignment expression;
the variable debugging module is used for debugging and checking the assignment expression to obtain a checking result;
and the variable analysis module is used for analyzing the assignment expression if the test result is a legal test result, obtaining a variable analysis result and storing the variable analysis result into a target database.
Optionally, the visual variable management system is further configured to:
inputting a variable index, a variable name, a scope and a variable initial value corresponding to the defined variable;
if the action range corresponding to the action range is a local action range, selecting the page name acted by the defined variable;
if the action range corresponding to the action range is a global action range, selecting an application name of the defined variable action;
based on the defined variable, generating a storage identity corresponding to the defined variable;
and storing the storage identity and the defined variable into a variable information table in a target database.
Optionally, the variable assignment module is further configured to:
selecting the variable to be assigned from the defined variables;
and inputting an expression corresponding to the variable to be assigned based on the variable index corresponding to the variable to be assigned, and obtaining the assignment expression, wherein the assignment expression comprises expression parameters and operators.
Optionally, the variable parsing module is further configured to:
if the test result is a legal test result, converting the assignment expression into an abstract syntax tree;
based on the abstract syntax tree, performing depth traversal to calculate node values corresponding to all nodes in the abstract syntax tree, and obtaining the variable analysis result;
and storing the variable analysis result into a variable information table in a target database corresponding to the assignment expression.
Optionally, the variable parsing module is further configured to:
judging whether the assignment expression has a cyclic reference variable or not;
if yes, throwing out illegal information of the cyclic reference;
and if the variable analysis result does not exist, performing recursive calculation according to the node type corresponding to each node of the abstract syntax tree, and obtaining the variable analysis result.
Optionally, the visual variable management system is further used for
If the test result corresponding to the assignment expression is an illegal test result, returning to the execution step: and selecting variables to be assigned from the defined variables to assign the variables to be assigned, and obtaining an assignment expression.
The specific implementation manner of the visual variable management system is basically the same as the above embodiments of the visual variable management method based on multidimensional data, and will not be repeated here.
Embodiments of the present application provide a medium that is a readable storage medium, and the readable storage medium stores one or more programs that are further executable by one or more processors to implement the steps of the method for managing a visualization variable according to any one of the above.
The specific implementation manner of the readable storage medium is basically the same as that of each embodiment of the visual variable management method, and is not repeated here.
Embodiments of the present application provide a computer program product, and the computer program product includes one or more computer programs, which may be further executed by one or more processors to implement the steps of the method for managing a visual variable as described in any one of the above.
The specific implementation manner of the computer program product of the present application is substantially the same as that of each embodiment of the visual variable management method described above, and will not be described herein again.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims.

Claims (10)

1. The visual variable management method based on the multidimensional data is characterized by comprising the following steps of:
acquiring variables with predefined different action thresholds, wherein the variables with the different action thresholds comprise a variable index, a variable name, an action domain and a variable initial value;
selecting variables to be assigned from the variables with different action thresholds to assign the variables to be assigned, and obtaining an assignment expression;
debugging and checking the assignment expression to obtain a checking result;
and if the test result is a legal test result, analyzing the assignment expression to obtain a variable analysis result, and storing the variable analysis result into a target database.
2. The method for multidimensional data based visual variable management as claimed in claim 1, wherein the step of acquiring variables of predefined different thresholds of action is preceded by the step of:
inputting a variable index, a variable name, a scope and a variable initial value corresponding to the defined variable;
if the action range corresponding to the action range is a local action range, selecting the page name acted by the defined variable;
if the action range corresponding to the action range is a global action range, selecting an application name of the defined variable action;
based on the defined variable, generating a storage identity corresponding to the defined variable;
and storing the storage identity and the defined variable into a variable information table in a target database.
3. The method for managing visual variables based on multidimensional data according to claim 1, wherein the step of selecting variables to be assigned from among the defined variables to assign the variables to be assigned to each other, and obtaining an assignment expression comprises:
selecting the variable to be assigned from the defined variables;
and inputting an expression corresponding to the variable to be assigned based on the variable index corresponding to the variable to be assigned, and obtaining the assignment expression, wherein the assignment expression comprises expression parameters and operators.
4. The method for managing visual variables based on multidimensional data according to claim 1, wherein if the test result is a legal test result, the step of analyzing the assignment expression to obtain a variable analysis result and storing the variable analysis result in a target database comprises:
if the test result is a legal test result, converting the assignment expression into an abstract syntax tree;
based on the abstract syntax tree, performing depth traversal to calculate node values corresponding to all nodes in the abstract syntax tree, and obtaining the variable analysis result;
and storing the variable analysis result into a variable information table in a target database corresponding to the assignment expression.
5. The method for managing visual variables based on multidimensional data according to claim 4, wherein the step of obtaining the variable analysis result by performing depth traversal calculation on node values corresponding to nodes of the abstract syntax tree based on the abstract syntax tree comprises:
judging whether the assignment expression has a cyclic reference variable or not;
if yes, throwing out illegal information of the cyclic reference;
and if the variable analysis result does not exist, performing recursive calculation according to the node type corresponding to each node of the abstract syntax tree, and obtaining the variable analysis result.
6. The method for multidimensional data based visual variable management according to claim 1, wherein after the step of performing a debugging test on the assigned expression to obtain a test result, the method for multidimensional data based visual variable management further comprises:
if the test result corresponding to the assignment expression is an illegal test result, returning to the execution step: and selecting variables to be assigned from the defined variables to assign the variables to be assigned, and obtaining an assignment expression.
7. A visualization variable management system based on multidimensional data, the visualization variable management system based on multidimensional data comprising:
the variable acquisition module is used for acquiring variables with predefined different action thresholds, wherein the variables with the different action thresholds comprise a variable index, a variable name, an action domain and a variable initial value;
the variable assignment module is used for selecting variables to be assigned from the variables with different action thresholds so as to assign the variables to be assigned to obtain an assignment expression;
the variable debugging module is used for debugging and checking the assignment expression to obtain a checking result;
and the variable analysis module is used for analyzing the assignment expression if the test result is a legal test result, obtaining a variable analysis result and storing the variable analysis result into a target database.
8. A multi-dimensional data-based visual variable management apparatus, characterized by comprising: memory, a processor and a multi-dimensional data based visualization variable management program stored on the memory, the multi-dimensional data based visualization variable management program being executed by the processor to implement the steps of the visualization variable management method of any of claims 1-6.
9. A medium, which is a readable storage medium, wherein the readable storage medium has stored thereon a visualization variable management program based on multidimensional data, the visualization variable management program based on multidimensional data being executed by a processor to implement the steps of the visualization variable management method according to any one of claims 1 to 6.
10. A computer readable storage medium, wherein a visualization variable management program based on multidimensional data is stored on the computer readable storage medium, and the visualization variable management program based on multidimensional data, when executed by a processor, implements the steps of the visualization variable management method based on multidimensional data according to any one of claims 1 to 6.
CN202110976285.2A 2021-08-24 2021-08-24 Visual variable management method, system and equipment based on multidimensional data Active CN113688134B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110976285.2A CN113688134B (en) 2021-08-24 2021-08-24 Visual variable management method, system and equipment based on multidimensional data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110976285.2A CN113688134B (en) 2021-08-24 2021-08-24 Visual variable management method, system and equipment based on multidimensional data

Publications (2)

Publication Number Publication Date
CN113688134A CN113688134A (en) 2021-11-23
CN113688134B true CN113688134B (en) 2024-02-09

Family

ID=78582041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110976285.2A Active CN113688134B (en) 2021-08-24 2021-08-24 Visual variable management method, system and equipment based on multidimensional data

Country Status (1)

Country Link
CN (1) CN113688134B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114428823B (en) * 2022-01-28 2022-11-01 北京国电通网络技术有限公司 Data linkage method, device, equipment and medium based on multidimensional variable expression

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111538942A (en) * 2020-04-21 2020-08-14 招商局金融科技有限公司 Expression processing method, electronic device and storage medium
CN112861494A (en) * 2021-02-05 2021-05-28 青岛海信网络科技股份有限公司 Road network data-based visual report generation method, equipment and storage medium
CN113190549A (en) * 2021-03-29 2021-07-30 无锡极数宝大数据科技有限公司 Multidimensional table data calling method, multidimensional table data calling device, server and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016183544A1 (en) * 2015-05-14 2016-11-17 Walleye Software, LLC System performance logging
US20200327131A1 (en) * 2019-04-09 2020-10-15 M-Files Oy Method, an apparatus and a computer program product for content evaluation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111538942A (en) * 2020-04-21 2020-08-14 招商局金融科技有限公司 Expression processing method, electronic device and storage medium
CN112861494A (en) * 2021-02-05 2021-05-28 青岛海信网络科技股份有限公司 Road network data-based visual report generation method, equipment and storage medium
CN113190549A (en) * 2021-03-29 2021-07-30 无锡极数宝大数据科技有限公司 Multidimensional table data calling method, multidimensional table data calling device, server and storage medium

Also Published As

Publication number Publication date
CN113688134A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
US11068382B2 (en) Software testing and verification
CN110287109B (en) Protocol interface testing method and device, computer equipment and storage medium thereof
CN109376069B (en) Method and device for generating test report
US9311345B2 (en) Template based database analyzer
CN111026670B (en) Test case generation method, test case generation device and storage medium
CN113238740B (en) Code generation method, code generation device, storage medium and electronic device
US20040139186A1 (en) Apparatus and method for recommending alternative components based on performance measurement results of components
CN114238381A (en) Data quality checking method, device and computer readable storage medium
CN111190807A (en) Buried point testing method and device
CN113688134B (en) Visual variable management method, system and equipment based on multidimensional data
CN114253995B (en) Data tracing method, device, equipment and computer readable storage medium
CN111427784B (en) Data acquisition method, device, equipment and storage medium
CN111666201A (en) Regression testing method, device, medium and electronic equipment
CN113051262B (en) Data quality inspection method, device, equipment and storage medium
CN111399843B (en) Method, system and electronic equipment for mapping SQL running information to SQL file
CN111151008B (en) Verification method and device for game operation data, configuration background and medium
CN115470095A (en) Test method, test system, electronic equipment and computer storage medium
WO2021104027A1 (en) Code performance testing method, apparatus and device, and storage medium
CN110309062A (en) Case generation method, device, electronic equipment and storage medium
CN113312880B (en) Text form conversion method and device and electronic equipment
CN113377674B (en) Log code adding method and device
CN117539752A (en) Difference generation method, display method, device, equipment and storage medium
CN116974883A (en) Event analysis method, device and system
CN112799638A (en) Non-invasive rapid development method, platform, terminal and storage medium
CN112685307A (en) Front-end page testing method and device based on template engine and computer equipment

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