CN116432619A - Front-end business rule processing method and device - Google Patents
Front-end business rule processing method and device Download PDFInfo
- Publication number
- CN116432619A CN116432619A CN202310218186.7A CN202310218186A CN116432619A CN 116432619 A CN116432619 A CN 116432619A CN 202310218186 A CN202310218186 A CN 202310218186A CN 116432619 A CN116432619 A CN 116432619A
- Authority
- CN
- China
- Prior art keywords
- row
- column
- information
- attribute
- target table
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 10
- 238000000034 method Methods 0.000 claims description 24
- 238000012545 processing Methods 0.000 claims description 10
- 238000012360 testing method Methods 0.000 claims description 9
- 230000009471 action Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 239000011159 matrix material Substances 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 235000019800 disodium phosphate Nutrition 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011022 operating instruction Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/177—Editing, e.g. inserting or deleting of tables; using ruled lines
- G06F40/18—Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Human Resources & Organizations (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Computational Linguistics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Artificial Intelligence (AREA)
- Data Mining & Analysis (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the disclosure provides a front-end business rule processing method and device, comprising the following steps: responding to triggering operation in a browser, creating a first target table, wherein the first target table comprises row information and column information and is used for formulating business rules; determining row attributes and column attributes of row information in a first target table, and determining row attributes and column attributes of column information in the first target table, wherein the row attributes and the column attributes of the row information correspond to inputtable parameters, and the row attributes and the column attributes of the column information correspond to inputtable parameters; based on the row attribute and the column attribute of the row information and the row attribute and the column attribute of the column information, the first target table is updated to obtain a second target table, and the second target table is used for describing the business rule. Therefore, the business rule can be quickly established through simple operation in the browser, and the fixed and unified business rule can be conveniently formulated, so that the rule running efficiency is ensured, and the enterprise management efficiency is effectively improved.
Description
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a method and a device for processing front-end business rules.
Background
Business rules are instructions that define or constrain business activities of an enterprise, which may specify goals of the enterprise, and provide guidelines for how to execute flows. Many businesses have informal, file record-free business rules.
In these enterprises, operators know what they should do and do so in accordance with their understanding of job functions, and through business rule management, all members of the enterprise know business goals and flows, so that the enterprise can expand its operating scale while providing effective autonomy for the employees. Such as business management according to business rules that are informal or file-free records in the enterprise.
However, with the implementation manner, the operation efficiency of the business rule is low, and enterprise management is affected.
Disclosure of Invention
The embodiment described herein provides a front-end business rule processing method and device.
According to a first aspect of the present disclosure, there is provided a front-end business rule processing method, including:
responding to triggering operation in a browser, and creating a first target table, wherein the first target table comprises row information and column information and is used for formulating business rules;
determining a row attribute and a column attribute of the row information in the first target table, and determining a row attribute and a column attribute of the column information in the first target table, wherein the row attribute and the column attribute of the row information correspond to inputtable parameters, and the row attribute and the column attribute of the column information correspond to inputtable parameters;
and updating the first target table based on the row attribute and the column attribute of the row information and the row attribute and the column attribute of the column information to obtain a second target table, wherein the second target table is used for describing the business rule.
In a second aspect, according to the disclosure, there is provided a front-end business rule processing apparatus, including:
the system comprises a creating module, a first target table, a second target table and a control module, wherein the creating module is used for responding to triggering operation in a browser, the first target table comprises row information and column information, and the first target table is used for formulating business rules;
the determining module is used for determining the row attribute and the column attribute of the row information in the first target table and determining the row attribute and the column attribute of the column information in the first target table, wherein the row attribute and the column attribute of the row information correspond to inputtable parameters, and the row attribute and the column attribute of the column information correspond to inputtable parameters;
and the updating module is used for updating the first target table based on the row attribute and the column attribute of the row information and the row attribute and the column attribute of the column information to obtain a second target table, and the second target table is used for describing the business rule.
According to the front-end business rule processing method provided by the embodiment of the application, the first target table is established by responding to the triggering operation in the browser, the first target table comprises row information and column information, and the first target table is used for making business rules; determining row attributes and column attributes of row information in a first target table, and determining row attributes and column attributes of column information in the first target table, wherein the row attributes and the column attributes of the row information correspond to inputtable parameters, and the row attributes and the column attributes of the column information correspond to inputtable parameters; based on the row attribute and the column attribute of the row information and the row attribute and the column attribute of the column information, the first target table is updated to obtain a second target table, and the second target table is used for describing the business rule. Therefore, the business rules can be quickly established through simple operation in the browser, and fixed and unified business rules can be conveniently formulated, so that the rule running efficiency is ensured, and the enterprise management efficiency is effectively improved.
The foregoing description is only an overview of the technical solutions of the embodiments of the present application, and may be implemented according to the content of the specification, so that the technical means of the embodiments of the present application can be more clearly understood, and the following detailed description of the present application will be presented in order to make the foregoing and other objects, features and advantages of the embodiments of the present application more understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following brief description of the drawings of the embodiments will be given, it being understood that the drawings described below relate only to some embodiments of the present disclosure, not to limitations of the present disclosure, in which:
fig. 1 is a schematic flow chart of a front-end business rule processing method according to an embodiment of the disclosure;
FIG. 2 is a schematic illustration of a business rule provided by an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a front-end service rule processing device according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure.
It is noted that the elements in the drawings are schematic and are not drawn to scale.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings. It will be apparent that the described embodiments are some, but not all, of the embodiments of the present disclosure. All other embodiments, which can be made by those skilled in the art based on the described embodiments of the present disclosure without the need for creative efforts, are also within the scope of the protection of the present disclosure.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the presently disclosed subject matter belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the specification and relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein. As used herein, a statement that two or more parts are "connected" or "coupled" together shall mean that the parts are joined together either directly or joined through one or more intermediate parts.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of the phrase "an embodiment" in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: there are three cases, a, B, a and B simultaneously. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship. Terms such as "first" and "second" are used merely to distinguish one component (or portion of a component) from another component (or another portion of a component).
In the description of the present application, unless otherwise indicated, the meaning of "plurality" means two or more (including two), and similarly, "plural sets" means two or more (including two).
In order to better understand the technical solutions of the present application, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a flow chart of a front-end business rule processing method provided by an embodiment of the present disclosure, and as shown in fig. 1, a specific process of the front-end business rule processing method includes:
s110, responding to triggering operation in the browser, and creating a first target table.
Wherein a form template (i.e., a first target form) may be created by a triggering operation in the browser, e.g., by the browser logging into a target system of the enterprise, the target system may support the form creation operation, thereby creating one or more first target forms in the browser.
The first target table may include row information and column information therein, the row information may be used to describe the table rows and the column information may be used to describe the table columns, that is, the first target table may be an editable table including a plurality of rows and a plurality of columns. The number of rows and the number of columns may be the same or different.
The first target table may be used to formulate business rules. For example, the first target table may be regarded as a 2×2 matrix, and each cell space in the matrix may be divided into a plurality of rows and columns to form a decision matrix.
S120, determining row attributes and column attributes of row information in the first target table, and determining row attributes and column attributes of column information in the first target table.
The row attribute of the row information in the first target table may be used to describe the row to which the row information in the first target table belongs, that is, the number of rows (including the independent cells and/or the merged cells) in the first target table. The column attribute of the row information in the second target table may be used to describe the column to which the row information in the first target table belongs, i.e., the number of columns (including individual cells and/or merged cells) in the first target table.
The row and column attributes of the row information correspond to the inputtable parameters and the row and column attributes of the column information correspond to the inputtable parameters.
In the first target table, the row attribute of each row information may correspond to at least one cell, and each cell may support filling of the inputtable parameter, and correspondingly, the column attribute of each row information may correspond to at least one cell, and each cell may support filling of the inputtable parameter.
In the first target table, the row attribute of each column information may correspond to at least one cell, and each cell may support filling of the inputtable parameter, and correspondingly, the column attribute of each column information may correspond to at least one cell, and each cell may support filling of the inputtable parameter.
The cells corresponding to the row attributes of the row information may be the same cells as the cells corresponding to the column attributes of the row information, and the cells corresponding to the row attributes of the column information may be the same cells as the cells corresponding to the column attributes of the column information.
S130, updating the first target table based on the row attribute and the column attribute of the row information and the row attribute and the column attribute of the column information to obtain a second target table.
The second target table may be used to describe the business rule, that is, after updating based on the first target table, a first target table that may be used to implement the business rule is obtained.
Filling of the inputtable parameters can be carried out in the corresponding cells in the second target table to realize effective management of the business rules, so that a user can easily manage a large number of business rules, the operation efficiency of the business rules is fundamentally ensured, and millisecond-level response during calculation of a large number of complex business rules is realized.
Meanwhile, the embodiment can support a pure browser editing mode, any third-party tool is not required to be installed in the operation process, and the design and test of complex rules can be completed by opening the browser. The multi-condition combination of the rules can be displayed in a graphical mode, visual editing is convenient to achieve, common business personnel without programming experience can achieve rule design as well, and rule design complexity is simplified.
In the method, a first target table is created in response to triggering operation in a browser, wherein the first target table comprises row information and column information and is used for formulating business rules; determining row attributes and column attributes of row information in a first target table, and determining row attributes and column attributes of column information in the first target table, wherein the row attributes and the column attributes of the row information correspond to inputtable parameters, and the row attributes and the column attributes of the column information correspond to inputtable parameters; based on the row attribute and the column attribute of the row information and the row attribute and the column attribute of the column information, the first target table is updated to obtain a second target table, and the second target table is used for describing the business rule. Therefore, the business rules can be quickly established through simple operation in the browser, and fixed and unified business rules can be conveniently formulated, so that the rule running efficiency is ensured, and the enterprise management efficiency is effectively improved.
In some embodiments, the row information may include an initial row identifier, where the initial row identifier corresponds to the first trigger control; determining row attributes and column attributes of row information in a first target table, comprising:
responding to the triggering operation of the first triggering control, and displaying first triggering information corresponding to the first triggering control, wherein the first triggering information comprises row attribute selection and column attribute selection; determining row attributes of row information in a first target table based on a selected operation for selecting the row attributes in the first trigger information; and determining the column attribute of the row information in the first target table based on the selected operation of selecting the column attribute in the first trigger information.
For example, the first trigger information corresponding to the first trigger control may be displayed by performing a trigger operation such as clicking/dropping on the first trigger control.
The first trigger information may include a plurality of options capable of setting row/column attributes, the setting of the row attributes of the row information in the first target table may be achieved through a selection operation such as clicking on the row attributes in the first trigger information, and the setting of the column attributes of the row information in the first target table may be achieved through a selection operation such as clicking on the column attributes in the first trigger information. Therefore, the row attribute of the row information in the first target table and the column attribute of the row information in the first target table are effectively determined.
Correspondingly, the column information can comprise an initial column identifier, and the initial column identifier corresponds to a second trigger control; determining row attributes and column attributes of column information in a first target table, comprising: responding to the triggering operation of the second triggering control, and displaying second triggering information corresponding to the second triggering control, wherein the second triggering information comprises row attribute selection and column attribute selection; determining row attributes of column information in a first target table based on a selected operation for selecting the row attributes in the second trigger information; and determining the column attribute of the column information in the first target table based on the selected operation of selecting the column attribute in the second trigger information.
For example, the second trigger information corresponding to the second trigger control may be displayed by performing a trigger operation such as clicking/dropping on the second trigger control.
The second trigger information may include a plurality of options capable of setting row/column attributes, and the setting of the row attributes of the column information in the first target table may be achieved through a selection operation such as clicking on the row attributes in the second trigger information, and the setting of the column attributes of the column information in the first target table may be achieved through a selection operation such as clicking on the column attributes in the second trigger information. Therefore, the row attribute of the column information in the first target table and the column attribute of the column information in the first target table are effectively determined.
In some embodiments, updating the first target table based on the row and column attributes of the row information and the row and column attributes of the column information to obtain a second target table includes:
determining parameter information corresponding to a row attribute of the row information and parameter information corresponding to a column attribute, and determining parameter information corresponding to a row attribute of the column information and parameter information corresponding to a column attribute, wherein the parameter information comprises: variable, parameter, constant or action library files; in the first target table, parameter information corresponding to a row attribute of the row information is imported into a row attribute of the row information, parameter information corresponding to a column attribute of the row information is imported into a column attribute of the row information, parameter information corresponding to a row attribute of the column information is imported into a row attribute of the column information, and parameter information corresponding to a column attribute of the column information is imported into a column attribute of the column information, so that a second target table is obtained.
The conditions corresponding to the row attribute/column attribute of the row information/column information in the first target table can be set through variables, parameters, constants or action library files.
For example, a variable, parameter, constant or action library file which is used and is defined in the project is imported into the corresponding attribute, for the condition parts of different row attributes and column attributes, the corresponding attribute corresponding to the condition of one horizontal row and one vertical column can be selected when the condition parts are defined, the menu control can be clicked on the cell under the condition, and the specific condition is configured for the condition cell.
In the operation process, if the rows and columns are required to be added, the corresponding condition rows and columns can be added by clicking a menu in the condition cell.
Therefore, by importing the parameter information into the row attribute and the column attribute of the row information in the first target table and performing rule setting in the row attribute and the column attribute of the column information, the second target table with business rule constraint is conveniently manufactured.
In some embodiments, determining the row attribute of the row information in the first target table based on the selecting operation of the row attribute selection in the first trigger information includes: determining an upper row corresponding to row information in a first target table based on a selected operation for selecting the row attribute in the first trigger information; and determining a lower row corresponding to the upper row of the row information based on a selected operation of selecting the row attribute in the upper row corresponding to the row information, so as to determine the row attribute of the row information in the first target table.
Determining column attributes of row information in the first target table based on a selection operation of column attributes in the first trigger information, including: setting row and column attributes of a lower level of row information based on a selected operation for selecting the row attributes in the first trigger information so as to determine the row attributes of the row information in the first target table; and when the number of the lower rows corresponding to the upper rows of the row information is at least two, merging the cells of the upper rows of the row information with the adjacent cells of the upper rows of the row information.
For example, the upper level rows corresponding to the row information may be shown as illustrated by the area 21 in fig. 2, the lower level rows corresponding to the row information may be shown as illustrated by the area 22 in fig. 2, the number of upper level rows is 2, each upper level row corresponds to 2 lower level rows, and the number of lower level rows is 4. The upper row may be used to characterize the field "gender" and the lower row may be used to characterize the field "age".
When adding and deleting a table row/column, the combination of cells needs to be considered, and the four cases (deletion of the same reason) are divided into a row attribute adding row, a row attribute adding column, a column attribute adding row and a column attribute adding column. If a row attribute is clicked and a column attribute is added to it, then the row above the cell is to merge the cell, and the cell and the row below are to insert the cell.
Therefore, the row attribute of the row information in the first target table and the column attribute of the row information in the first target table are effectively determined through setting the row attribute and the column attribute of the row information in the first target table.
In some embodiments, determining the row attribute of the column information in the first target table based on the selecting operation of the row attribute selection in the second trigger information includes: determining an upper column corresponding to column information in the first target table based on a selected operation for selecting the row attribute in the second trigger information; and determining a lower column corresponding to the upper column of the column information based on a selected operation of selecting the row attribute in the upper column corresponding to the column information, so as to determine the row attribute of the column information in the first target table.
Determining column attributes of column information in the first target table based on a selection operation of column attribute selection in the second trigger information, including: setting column attributes of lower columns of the column information based on a selected operation for selecting the column attributes in the second trigger information so as to determine the column attributes of the column information in the first target table; when the number of lower columns corresponding to the upper columns of the column information is at least two, the cells of the upper columns of the column information and the adjacent cells of the upper columns of the column information are combined.
For example, the upper-level columns corresponding to the column information may be shown as illustrated by the region 23 in fig. 2, the lower-level columns corresponding to the column information may be shown as illustrated by the region 24 in fig. 2, and in fig. 2, the number of upper-level columns is 2, each upper-level column corresponds to 2 lower-level columns, and the number of lower-level columns is 4. The upper column may be used to characterize the field "location" and the lower column may be used to characterize the field "surname".
When adding and deleting a table row/column, the combination of cells needs to be considered, and the four cases (deletion of the same reason) are divided into a row attribute adding row, a row attribute adding column, a column attribute adding row and a column attribute adding column. If a row attribute is clicked and a column attribute is added to it, then the row above the cell is to merge the cell, and the cell and the row below are to insert the cell.
Therefore, the row attribute of the column information in the first target table and the column attribute of the column information in the first target table are effectively determined through setting the row attribute and the column attribute of the column information in the first target table.
In an alternative embodiment, the method of this embodiment may further include:
inputting a first parameter value in a corresponding area of row attribute and column attribute of row information, and outputting a test result of a business rule; or, inputting a second parameter value in the corresponding area of the row attribute and the column attribute of the column information, and outputting the test result of the business rule.
For example, a first parameter value may be input in the area 25 shown in fig. 2, or a second parameter value may be input in the area 26 shown in fig. 2, and the operation of the second target table is performed to identify the accuracy of the business rule through the first parameter value/the second parameter value, so as to detect the configuration performance of the business rule.
The area corresponding to the row attribute and the column attribute of the row information may be the same area as the area corresponding to the row attribute and the column attribute of the column information, or may be a different area.
Fig. 3 is a schematic structural diagram of a front-end business rule processing device provided in this embodiment, where the front-end business rule processing device may include: a creation module 310, a determination module 320, and an update module 330.
A creating module 310, configured to create a first target table in response to a triggering operation in the browser, where the first target table includes row information and column information, and the first target table is used to formulate a business rule.
A determining module 320, configured to determine a row attribute and a column attribute of the row information in the first target table, and determine a row attribute and a column attribute of the column information in the first target table, where the row attribute and the column attribute of the row information correspond to inputtable parameters, and the row attribute and the column attribute of the column information correspond to inputtable parameters.
And an updating module 330, configured to update the first target table based on the row attribute and the column attribute of the row information and the row attribute and the column attribute of the column information, so as to obtain a second target table, where the second target table is used to describe the business rule.
In this embodiment, optionally, the line information includes an initial line identifier, where the initial line identifier corresponds to a first trigger control; the determining module 320 is specifically configured to:
responding to the triggering operation of the first triggering control, and displaying first triggering information corresponding to the first triggering control, wherein the first triggering information comprises row attribute selection and column attribute selection; determining a row attribute of the row information in the first target table based on a selected operation of selecting the row attribute in the first trigger information; determining column attributes of the row information in the first target table based on a selected operation of the column attribute selection in the first trigger information.
In this embodiment, optionally, the column information includes an initial column identifier, where the initial column identifier corresponds to a second trigger control; the determining module 320 is specifically configured to:
responding to the triggering operation of the second triggering control, and displaying second triggering information corresponding to the second triggering control, wherein the second triggering information comprises row attribute selection and column attribute selection; determining a row attribute of the column information in the first target table based on a selected operation of selecting the row attribute in the second trigger information; and determining the column attribute of the column information in the first target table based on a selected operation of selecting the column attribute in the second trigger information.
In this embodiment, the optional updating module 330 is specifically configured to:
determining parameter information corresponding to a row attribute and parameter information corresponding to a column attribute of the row information, and determining parameter information corresponding to a row attribute and parameter information corresponding to a column attribute of the column information, wherein the parameter information comprises: variable, parameter, constant or action library files; in the first target table, parameter information corresponding to a row attribute of the row information is imported into the row attribute of the row information, parameter information corresponding to a column attribute of the row information is imported into a column attribute of the row information, parameter information corresponding to the row attribute of the column information is imported into the row attribute of the column information, and parameter information corresponding to the column attribute of the column information is imported into the column attribute of the column information, so that the second target table is obtained.
In this embodiment, optionally, the determining module 320 is specifically configured to:
determining an upper row corresponding to the row information in the first target table based on a selected operation for selecting the row attribute in the first trigger information; and determining a lower row corresponding to the upper row of the row information based on a selected operation of selecting the row attribute in the upper row corresponding to the row information, so as to determine the row attribute of the row information in the first target table.
In this embodiment, optionally, the determining module 320 is specifically configured to:
setting a row attribute of the lower level of the row information based on a selection operation of the column attribute selection in the first trigger information to determine a column attribute of the row information in the first target table; and merging the cells of the upper row of the row information with the adjacent cells of the upper row of the row information when the number of the lower rows corresponding to the upper row of the row information is at least two.
In this embodiment, optionally, the determining module 320 is specifically configured to:
determining an upper column corresponding to the column information in the first target table based on a selected operation for selecting the row attribute in the second trigger information; and determining a lower column corresponding to the upper column of the column information based on a selected operation of selecting the row attribute in the upper column corresponding to the column information, so as to determine the row attribute of the column information in the first target table.
In this embodiment, optionally, the determining module 320 is specifically configured to:
performing column attribute setting on the lower-level column of the column information based on a selection operation of the column attribute selection in the second trigger information to determine a column attribute of the column information in the first target table; and when the number of the lower-level columns corresponding to the upper-level columns of the column information is at least two, merging the cells of the upper-level columns of the column information with the adjacent cells of the upper-level columns of the column information.
In this embodiment, optionally, the method further includes: and a test module.
The test module is used for inputting a first parameter value in a corresponding area of the row attribute and the column attribute of the row information and outputting a test result of the business rule; or, inputting a second parameter value in the corresponding area of the row attribute and the column attribute of the column information, and outputting the test result of the business rule.
The front-end business rule processing device provided in the present disclosure may execute the above method embodiment, and the specific implementation principle and technical effects of the front-end business rule processing device may refer to the above method embodiment, which is not described herein.
The embodiment of the application also provides computer equipment. Referring specifically to fig. 4, fig. 4 is a basic structural block diagram of a computer device according to the present embodiment.
The computer device includes a memory 410 and a processor 420 communicatively coupled to each other via a system bus. It should be noted that only computer devices having components 410-420 are shown in the figures, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead. It will be appreciated by those skilled in the art that a computer device herein is a device capable of automatically performing numerical calculations and/or information processing in accordance with predetermined or stored instructions, the hardware of which includes, but is not limited to, microprocessors, application specific integrated circuits (ApplicationSpecificIntegratedCircuit, ASIC), programmable gate arrays (Field-ProgrammableGateArray, FPGA), digital processors (DigitalSignal Processor, DSPs), embedded devices, etc.
The computer device may be a desktop computer, a notebook computer, a palm computer, a cloud server, or the like. The computer device can perform man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch pad or voice control equipment and the like.
The memory 410 includes at least one type of readable storage medium including non-volatile memory (non-volatile memory) or volatile memory, such as flash memory (flash memory), hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc., and the RAM may include static RAM or dynamic RAM. In some embodiments, the memory 410 may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory 410 may also be an external storage device of a computer device, such as a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, or a flash card (FlashCard), etc. provided on the computer device. Of course, memory 410 may also include both internal storage units of a computer device and external storage devices. In this embodiment, the memory 410 is typically used to store an operating system installed on a computer device and various types of application software, such as program codes of the above-described methods. In addition, the memory 410 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 420 is typically used to perform the overall operations of the computer device. In this embodiment, the memory 410 is used for storing program codes or instructions, the program codes include computer operation instructions, and the processor 420 is used for executing the program codes or instructions stored in the memory 410 or processing data, such as the program codes for executing the above-mentioned method.
Herein, the bus may be an industry standard architecture (IndustryStandardArchitecture, ISA) bus, a peripheral component interconnect standard (PeripheralComponentInterconnect, PCI) bus, or an extended industry standard architecture (ExtendedIndustryStandardArchitecture, EISA) bus, among others. The bus system may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
Another embodiment of the present application also provides a computer-readable medium, which may be a computer-readable signal medium or a computer-readable medium. A processor in a computer reads computer readable program code stored in a computer readable medium, such that the processor is capable of performing the functional actions specified in each step or combination of steps in the above-described method; a means for generating a functional action specified in each block of the block diagram or a combination of blocks.
The computer readable medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared memory or semiconductor system, apparatus or device, or any suitable combination of the foregoing, the memory storing program code or instructions, the program code including computer operating instructions, and the processor executing the program code or instructions of the above-described methods stored by the memory.
The definition of memory and processor may refer to the description of the embodiments of the computer device described above, and will not be repeated here.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The functional units or modules in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all or part of the technical solution contributing to the prior art or in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the methods of 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 (RandomAccessMemory, RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps other than those listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of first, second, third, etc. does not denote any order, and the words are to be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specifically stated.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.
Claims (10)
1. The front-end business rule processing method is characterized by comprising the following steps:
responding to triggering operation in a browser, and creating a first target table, wherein the first target table comprises row information and column information and is used for formulating business rules;
determining a row attribute and a column attribute of the row information in the first target table, and determining a row attribute and a column attribute of the column information in the first target table, wherein the row attribute and the column attribute of the row information correspond to inputtable parameters, and the row attribute and the column attribute of the column information correspond to inputtable parameters;
and updating the first target table based on the row attribute and the column attribute of the row information and the row attribute and the column attribute of the column information to obtain a second target table, wherein the second target table is used for describing the business rule.
2. The method of claim 1, wherein the row information includes an initial row identification, the initial row identification corresponding to a first trigger control;
the determining the row attribute and the column attribute of the row information in the first target table includes:
responding to the triggering operation of the first triggering control, and displaying first triggering information corresponding to the first triggering control, wherein the first triggering information comprises row attribute selection and column attribute selection;
determining a row attribute of the row information in the first target table based on a selected operation of selecting the row attribute in the first trigger information;
determining column attributes of the row information in the first target table based on a selected operation of the column attribute selection in the first trigger information.
3. The method of claim 1, wherein the column information includes an initial column identifier, the initial column identifier corresponding to a second trigger control;
the determining the row attribute and the column attribute of the column information in the first target table includes:
responding to the triggering operation of the second triggering control, and displaying second triggering information corresponding to the second triggering control, wherein the second triggering information comprises row attribute selection and column attribute selection;
determining a row attribute of the column information in the first target table based on a selected operation of selecting the row attribute in the second trigger information;
and determining the column attribute of the column information in the first target table based on a selected operation of selecting the column attribute in the second trigger information.
4. The method of claim 1, wherein updating the first target table based on the row and column attributes of the row information and the row and column attributes of the column information to obtain a second target table comprises:
determining parameter information corresponding to a row attribute and parameter information corresponding to a column attribute of the row information, and determining parameter information corresponding to a row attribute and parameter information corresponding to a column attribute of the column information, wherein the parameter information comprises: variable, parameter, constant or action library files;
in the first target table, parameter information corresponding to a row attribute of the row information is imported into the row attribute of the row information, parameter information corresponding to a column attribute of the row information is imported into a column attribute of the row information, parameter information corresponding to the row attribute of the column information is imported into the row attribute of the column information, and parameter information corresponding to the column attribute of the column information is imported into the column attribute of the column information, so that the second target table is obtained.
5. The method of claim 2, wherein the determining the row attribute of the row information in the first target table based on the selecting operation of the row attribute selection in the first trigger information comprises:
determining an upper row corresponding to the row information in the first target table based on a selected operation for selecting the row attribute in the first trigger information;
and determining a lower row corresponding to the upper row of the row information based on a selected operation of selecting the row attribute in the upper row corresponding to the row information, so as to determine the row attribute of the row information in the first target table.
6. The method of claim 5, wherein the determining the column attribute of the row information in the first destination table based on the selecting of the column attribute in the first trigger information comprises:
setting a row attribute of the lower level of the row information based on a selection operation of the column attribute selection in the first trigger information to determine a column attribute of the row information in the first target table;
and merging the cells of the upper row of the row information with the adjacent cells of the upper row of the row information when the number of the lower rows corresponding to the upper row of the row information is at least two.
7. The method of claim 3, wherein the determining the row attribute of the column information in the first target table based on the selecting operation of the row attribute selection in the second trigger information comprises:
determining an upper column corresponding to the column information in the first target table based on a selected operation for selecting the row attribute in the second trigger information;
and determining a lower column corresponding to the upper column of the column information based on a selected operation of selecting the row attribute in the upper column corresponding to the column information, so as to determine the row attribute of the column information in the first target table.
8. The method of claim 7, wherein the determining the column attribute of the column information in the first destination table based on the selecting of the column attribute in the second trigger information comprises:
performing column attribute setting on the lower-level column of the column information based on a selection operation of the column attribute selection in the second trigger information to determine a column attribute of the column information in the first target table;
and when the number of the lower-level columns corresponding to the upper-level columns of the column information is at least two, merging the cells of the upper-level columns of the column information with the adjacent cells of the upper-level columns of the column information.
9. The method according to claim 1, wherein the method further comprises:
inputting a first parameter value in a corresponding area of row attribute and column attribute of the row information, and outputting a test result of the business rule;
or, inputting a second parameter value in the corresponding area of the row attribute and the column attribute of the column information, and outputting the test result of the business rule.
10. A front-end business rule processing device, comprising:
the system comprises a creating module, a first target table, a second target table and a control module, wherein the creating module is used for responding to triggering operation in a browser, the first target table comprises row information and column information, and the first target table is used for formulating business rules;
the determining module is used for determining the row attribute and the column attribute of the row information in the first target table and determining the row attribute and the column attribute of the column information in the first target table, wherein the row attribute and the column attribute of the row information correspond to inputtable parameters, and the row attribute and the column attribute of the column information correspond to inputtable parameters;
and the updating module is used for updating the first target table based on the row attribute and the column attribute of the row information and the row attribute and the column attribute of the column information to obtain a second target table, and the second target table is used for describing the business rule.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310218186.7A CN116432619A (en) | 2023-03-08 | 2023-03-08 | Front-end business rule processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310218186.7A CN116432619A (en) | 2023-03-08 | 2023-03-08 | Front-end business rule processing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116432619A true CN116432619A (en) | 2023-07-14 |
Family
ID=87091601
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310218186.7A Pending CN116432619A (en) | 2023-03-08 | 2023-03-08 | Front-end business rule processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116432619A (en) |
-
2023
- 2023-03-08 CN CN202310218186.7A patent/CN116432619A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6033235B2 (en) | Formatting data by example | |
EP3218811B1 (en) | Testing insecure computing environments using random data sets generated from characterizations of real data sets | |
CN112597182B (en) | Optimization method, device, terminal and storage medium of data query statement | |
WO2024060452A1 (en) | Method and system for automatically extracting signal path, and device and storage medium | |
US10423416B2 (en) | Automatic creation of macro-services | |
CN112883042A (en) | Data updating and displaying method and device, electronic equipment and storage medium | |
CN106294128B (en) | A kind of automated testing method and device exporting report data | |
US20170004188A1 (en) | Apparatus and Method for Graphically Displaying Transaction Logs | |
CN108763341B (en) | Electronic device, automatic table building method and storage medium | |
CN110990445A (en) | Data processing method, device, equipment and medium | |
CN111367982B (en) | Method, device, computer equipment and storage medium for importing TRRIGA basic data | |
CN113688288A (en) | Data association analysis method and device, computer equipment and storage medium | |
CN114201615B (en) | Scientific research data change review method and server based on data snapshot | |
CN113792138A (en) | Report generation method and device, electronic equipment and storage medium | |
WO2019085354A1 (en) | Excel system interface-based database linkage method, electronic device, and storage medium | |
CN116432619A (en) | Front-end business rule processing method and device | |
CN113138760B (en) | Page generation method and device, electronic equipment and medium | |
CN115310011A (en) | Page display method and system and readable storage medium | |
CN114881521A (en) | Service evaluation method, device, electronic equipment and storage medium | |
CN114911479A (en) | Interface generation method, device, equipment and storage medium based on configuration | |
CN109948251B (en) | CAD-based data processing method, device, equipment and storage medium | |
JP2018109898A (en) | Data migration system | |
CN112699372A (en) | Vulnerability processing method and device and computer readable storage medium | |
US7996366B1 (en) | Method and system for identifying stale directories | |
JP2020101898A (en) | Design drawing creation support method, design drawing creation support device, and design drawing creation support program |
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 |