Rule visualization construction method of industrial rule platform
By adopting the visual drag design method on the industrial rules platform, the visual construction and testing of logical rules are realized, which solves the complex problems of traditional design operations and improves the ease of use and efficiency of rule design.
Patent Information
- Application Number
- CN202410975463.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-22
AI Technical Summary
The traditional industrial rules platform design is mainly aimed at IT developers, and the lack of industry knowledge integration makes business personnel unable to use it independently and it is difficult to design and operate.
The front-end operation design method of visual dragging is adopted. Through logical rule design, rule element drag and drop, testing and storage management, the difficulty of rule design is reduced, the rule visual construction method is provided, the logical judgment and data processing process is supported, and the result data is automatically saved.
It reduces the difficulty of rule design, enables technicians to design and operate rules more easily, solves the problem of using rules for technicians and improves the availability of rule platforms.
Smart Images

Figure CN119002889A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of industrial time series data analysis, and in particular relates to a rule visualization construction method for an industrial rule platform. Background Art
[0002] The rule engine is an intermediate technical component that is used to separate business decisions from application code, supporting the rapid and flexible adjustment of business decisions without rewriting code and deploying applications. The rule engine is widely used in various fields such as financial risk control and marketing strategy management.
[0003] At present, general rule engines are aimed at IT developers, mainly focusing on the underlying logic of rule design, designing rule platforms from an IT perspective, and focusing on the universal application of IT technology. However, they lack integration with industry knowledge, making it impossible for business personnel in traditional industrial fields to use rule platforms independently, and they need to rely on IT developers. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a rule visualization construction method for an industrial rule platform. The present invention will mainly focus on the design process of technical personnel, and through the front-end operation design of visual drag and drop, it reduces the difficulty of rule design and solves the problem of difficulty in using rule design operations for technical personnel.
[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is: A rule visualization construction method for an industrial rule platform, comprising the following steps: Step 1: Design the rule data structure: Use logical rule design to define the input data structure and output data structure used by the rule, integrate the input data and the equipment measurement point model, and select standardized measurement points from the equipment measurement point model as data input; Step 2: Design rules: Implement relevant logical judgment and data processing by visually dragging rule elements; Step 3: Conduct rule testing: This is used to verify the correctness of the rule design. After manually specifying an input value for the input data, execute the rule to check whether the output result meets expectations. Alternatively, specify a specific physical measurement point for the defined logical measurement point, and perform simulation testing based on real data with the timing data of the measurement point. Step 4: Perform rule result storage management: map the rule output data structure with the designed rule result storage table fields, and save the result data generated by automatic rule scheduling into the database. Preferably, in step 2, the visual drag-and-drop rule elements include one or more of rule blocks, rule conditions, logical operators, basic four arithmetic operators, functions and assignment operations; the designed rules are stored in the rule library in the form of an XML file structure, and the underlying rule execution engine parses the rules to form an executable rule service.
[0006] Preferably, the rules are divided into logic rules and rule instances, wherein the logic rules are abstract business rules and the rule instances are the application of the logic rules to designated devices.
[0007] Preferably, the rule instance has specified the actual measurement point and can be directly connected to the time series database for calling.
[0008] Preferably, in step 3, a rule instance is created by using the standard name of the measuring point in the logic rule to describe the rule logic, and when the logic rule is applied to a specific device, a list of measuring points with the standard name on the device is automatically provided for the user to choose.
[0009] Preferably, in step 3, after the rule test is completed, the rule is published: after the rule is verified to be correct through testing, it is published and provided to the outside world as a service.
[0010] A rule visualization construction system adopts the rule visualization construction method of an industrial rule platform.
[0011] The present invention can achieve the following beneficial effects: The present invention will mainly focus on the design process of technical personnel, and through the visual drag-and-drop front-end operation design, it reduces the difficulty of rule design and solves the problem of difficult use of rule design operations for technical personnel. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The present invention will be further described below in conjunction with the accompanying drawings and embodiments: Figure 1 It is a flow chart of the present invention; Figure 2 A layout diagram of the rule design area of the present invention; Figure 3 This is a flow chart of rule execution of the present invention. DETAILED DESCRIPTION
[0013] A rule visualization construction method for an industrial rule platform, comprising the following steps: Step 1: Design the rule data structure: Use logical rule design to define the input data structure and output data structure used by the rule, integrate the input data and the equipment measurement point model, and select standardized measurement points from the equipment measurement point model as data input; Step 2: Design rules: Implement relevant logical judgment and data processing by visually dragging rule elements; Step 3: Conduct rule testing: This is used to verify the correctness of the rule design. After manually specifying an input value for the input data, execute the rule to check whether the output result meets expectations. Alternatively, specify a specific physical measurement point for the defined logical measurement point, and perform simulation testing based on real data with the timing data of the measurement point. Step 4: Perform rule result storage management: map the rule output data structure with the designed rule result storage table fields, and save the result data generated by automatic rule scheduling into the database. Furthermore, in step 2, the visual drag-and-drop rule elements include one or more of rule blocks, rule conditions, logical operators, basic arithmetic operators, functions and assignment operations; the designed rules are stored in the rule library in the form of an XML file structure, and the underlying rule execution engine parses the rules to form executable rule services.
[0014] Furthermore, the rules are divided into logic rules and rule instances, wherein the logic rules are abstract business rules and the rule instances are the application of logic rules to designated devices.
[0015] Furthermore, the rule instance has specified the actual measurement point and can be directly connected to the time series database for calling.
[0016] Furthermore, in step 3, a rule instance is created: the standard name of the measuring point is used in the logic rule to describe the rule logic, and when the logic rule is applied to a specific device, a list of measuring points with the standard name on the device is automatically provided for the user to choose.
[0017] Furthermore, in step 3, after the rule test is completed, the rule is published: after the rule is tested and verified to be correct, it is published and provided to the outside world.
[0018] A rule visualization construction system adopts the rule visualization construction method of an industrial rule platform.
[0019] Embodiment 1: Rule visualization construction is used to provide a visualized industrial rule construction method. Rules are divided into logical rules and rule instances. Among them, logical rules refer to abstract business rules, such as the main transformer winding temperature over-limit value warning. This rule determines the over-limit of the main transformer winding temperature measurement point, but at this time it has not yet been confirmed which device the measurement point is. The rule instance is to apply the logical rule to the specified device. For example, the main transformer winding temperature over-limit value warning rule can be applied to the 1# main transformer, then "device + logical rule" constitutes a rule instance. The rule instance has specified the actual measurement point, so it can be directly connected to the time series database for calling.
[0020] The process provided by the rule visualization construction of the present invention is as follows Figure 1 Specifically including: Rule data structure design: In the process of logical rule design, we first define the input and output data structure used by the rule. The input data can be integrated with the equipment measurement point model, and standardized measurement points can be selected from the equipment measurement point model as data input. As shown in Table 1: Table 1
[0021] Rule design: Implement related logical judgment and data processing processes by visually dragging rule elements. Available rule elements include rule blocks, rule conditions, logical operators, basic arithmetic operators, functions and methods, assignment operations, etc. Figure 2 shown.
[0022] The designed rules are stored in the rule base in the form of XML file structure, and the underlying rule execution engine parses the rules to form executable rule services. Figure 3 shown.
[0023] Rule testing: Verify the correctness of rule design. For the input data defined above, manually specify certain input values, execute the rules, and check whether the output results meet expectations.
[0024] You can also specify a specific physical measurement point for the defined logical measurement point, and connect the measurement point timing data to perform simulation tests based on real data.
[0025] Rule result storage management: supports mapping the output data structure of rules with the designed rule result storage table fields, so that the result data generated by automatic rule scheduling can be saved in the database.
[0026] Rule release: After the rules are tested and verified to be correct, they are released and provided to the outside world.
[0027] Rule service: After the logic rules are published, they can directly provide REST interface services and be called by other applications. They can also be bound to device measurement points to form rule instances.
[0028] Rule instance: Apply logical rules to specific devices to create rule instances.
[0029] The standard name of the measuring point is used in the logic rule to describe the rule logic. When the logic rule is applied to a specific device, a list of measuring points with the standard name on the device is automatically provided for the user to choose.
[0030] Take the air cooler inlet water temperature as an example, as shown in Table 2 below: Table 2
[0031] The above embodiments are only preferred technical solutions of the present invention and should not be regarded as limiting the present invention. The protection scope of the present invention shall be the technical solutions recorded in the claims, including equivalent replacement solutions of the technical features in the technical solutions recorded in the claims. That is, equivalent replacement improvements within this scope are also within the protection scope of the present invention.
Claims
1. A rule visualization construction method for an industrial rule platform, characterized in that The following steps are involved: Step 1: Design the rule data structure: Use logical rule design to define the input data structure and output data structure used by the rule, integrate the input data and the equipment measurement point model, and select standardized measurement points from the equipment measurement point model as data input; Step 2: Design rules: Implement relevant logical judgment and data processing by visually dragging rule elements; Step 3: Conduct rule testing: This is used to verify the correctness of the rule design. After manually specifying an input value for the input data, execute the rule to check whether the output result meets expectations. Alternatively, specify a specific physical measurement point for the defined logical measurement point, and perform simulation testing based on real data with the timing data of the measurement point. Step 4: Perform rule result storage management: map the rule output data structure with the designed rule result storage table fields, and save the result data generated by automatic rule scheduling into the database.
2. The rule visualization construction method of an industrial rule platform according to claim 1 is characterized by: In step 2, the visual drag-and-drop rule elements include one or more of rule blocks, rule conditions, logical operators, basic arithmetic operators, functions and assignment operations; the designed rules are stored in the rule library in the form of an XML file structure, and the underlying rule execution engine parses the rules to form executable rule services.
3. The rule visualization construction method of an industrial rule platform according to claim 1 is characterized by: The rules are divided into logical rules and rule instances, wherein the logical rules are abstract business rules and the rule instances are the application of logical rules to designated devices.
4. The rule visualization construction method of an industrial rule platform according to claim 3 is characterized by: The rule instance has specified the actual measurement point and can be directly connected to the time series database for calling.
5. The rule visualization construction method of an industrial rule platform according to claim 3 is characterized by: In step 3, a rule instance is created: the standard name of the measuring point is used in the logic rule to describe the rule logic, and when the logic rule is applied to a specific device, a list of measuring points with the standard name on the device is automatically provided for the user to choose.
6. The rule visualization construction method of an industrial rule platform according to claim 1 is characterized by: In step 3, after completing the rule test, the rule is published: after the rule is verified to be correct through testing, it is published and provided to the outside world.
7. A rule visualization construction system, characterized by: A rule visualization construction method for an industrial rule platform according to any one of claims 1-6 is adopted.
