CN111314342A - Internet of things rule engine operation method - Google Patents

Internet of things rule engine operation method Download PDF

Info

Publication number
CN111314342A
CN111314342A CN202010094228.7A CN202010094228A CN111314342A CN 111314342 A CN111314342 A CN 111314342A CN 202010094228 A CN202010094228 A CN 202010094228A CN 111314342 A CN111314342 A CN 111314342A
Authority
CN
China
Prior art keywords
rule
operation data
data
user
authority
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
Application number
CN202010094228.7A
Other languages
Chinese (zh)
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.)
Orca Data Technology Xian Co Ltd
Original Assignee
Orca Data Technology Xian 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 Orca Data Technology Xian Co Ltd filed Critical Orca Data Technology Xian Co Ltd
Priority to CN202010094228.7A priority Critical patent/CN111314342A/en
Publication of CN111314342A publication Critical patent/CN111314342A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies
    • H04L63/0263Rule management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an Internet of things rule engine running method, which comprises the steps of obtaining operation data of a user input rule, and verifying the authority and the operation data of the user; generating a corresponding rule script file according to the operation data, analyzing the rule script file, and generating rule operation parameters; acquiring rule operation data according to the rule operation parameters; operating the user input rule by combining the rule operation parameter and the rule operation data; the rule script is generated according to the operation data of the rule input by the user, the user authority verification and the operation data verification are added, the system safety performance of the rule engine during operation is improved, meanwhile, the rule operation parameters are only generated for the operation data, and the operation complexity of the system is reduced.

Description

Internet of things rule engine operation method
[ technical field ] A method for producing a semiconductor device
The invention belongs to the technical field of computer information processing, and particularly relates to an operation method of an internet of things rule engine.
[ background of the invention ]
With the technical development of the computer field, the requirement of an enterprise manager on an enterprise IT system is higher and higher, for example, in order to improve the work efficiency, the management process must be automated, and when the market requires that the business rules change, the operation rules of the IT system also change, so that the rule engine can be embedded in the existing IT system.
However, due to the complex and variable enterprise requirements, the rule engines in the IT system are complex and have high coupling with the code, and problems caused by the need to process distributed programs individually in a distributed scenario are solved.
[ summary of the invention ]
The invention aims to provide an Internet of things rule engine operation method to simplify operation procedures of a rule engine.
The invention adopts the following technical scheme: an Internet of things rule engine operation method comprises the following steps:
acquiring operation data of a user input rule, and verifying the authority and the operation data of the user;
generating a corresponding rule script file according to the operation data, analyzing the rule script file, and generating rule operation parameters;
acquiring rule operation data according to the rule operation parameters;
the user input rules are run in conjunction with the rule run parameters and the rule run data.
Further, verifying the authority and the operation data of the user includes:
extracting the authority level value of the user;
and comparing the authority level value of the user with the preset authority level value, and when the authority level of the user is greater than or equal to the preset authority level value, passing the authority verification of the user.
Further, verifying the authority and the operation data of the user further comprises:
and extracting the operation data, judging whether the operation data contains the preset data, and passing the verification of the operation data when the operation data does not contain the preset data.
Further, the rule run parameters include rule metadata.
Further, obtaining the rule operation data according to the rule operation parameters includes:
and searching the rule operation data in the rule operation database according to the rule operation parameters, and calling the rule operation data from the rule operation database.
The invention has the beneficial effects that: the rule script is generated according to the operation data of the rule input by the user, the user authority verification and the operation data verification are added, the system safety performance of the rule engine during operation is improved, meanwhile, the rule operation parameters are only generated for the operation data, and the operation complexity of the system is reduced.
[ description of the drawings ]
FIG. 1 is a block diagram of a method for corresponding rule execution according to an embodiment of the present invention;
FIG. 2 is a flow chart of an embodiment of the present invention.
[ detailed description ] embodiments
The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
The embodiment of the invention discloses an Internet of things rule engine operation method, which comprises the following steps:
acquiring operation data of a user input rule, and verifying the authority and the operation data of the user; generating a corresponding rule script file according to the operation data, analyzing the rule script file, and generating rule operation parameters; acquiring rule operation data according to the rule operation parameters; the user input rules are run in conjunction with the rule run parameters and the rule run data.
The rule script is generated according to the operation data of the rule input by the user, the user authority verification and the operation data verification are added, the system safety performance of the rule engine during operation is improved, meanwhile, the rule operation parameters are only generated for the operation data, and the operation complexity of the system is reduced.
Specifically, verifying the authority and the operation data of the user includes: extracting the authority level value of the user; and comparing the authority level value of the user with the preset authority level value, and when the authority level of the user is greater than or equal to the preset authority level value, passing the authority verification of the user.
In the embodiment of the invention, it is assumed that the user who currently inputs the rule operation data is a department manager of a certain department, the corresponding authority level value in the system is 7, the predetermined authority level value is extracted to be 6, and the system defaults that the rule operation data input by the part of managers passes the verification, and continues to execute the next step because 7 is greater than 6.
As an optional implementation, verifying the authority and the operation data of the user further includes:
and extracting the operation data, judging whether the operation data contains the preset data, and passing the verification of the operation data when the operation data does not contain the preset data. For example, when the authority value data related to the user is predetermined data in the system, and when the authority value data related to the user is input data, the authority value of each user in the system may be confused, and therefore, when the rule data input by the department manager is in a "authority value" form, the system defaults that the operation data of the rule is illegal data, returns a message to prompt that the input data is illegal data, and prompts the user to re-input data.
In the embodiment of the present invention, the rule running parameter includes rule metadata, and the metadata is data used for system management or running, and since the user inputs new rule operation data, it is necessary to change the original rule operation flow, and at this time, a system setup problem is involved, and therefore, the rule running parameter includes metadata. Obtaining the rule operation data according to the rule operation parameters includes:
and searching the rule operation data in the rule operation database according to the rule operation parameters, and calling the rule operation data from the rule operation database.
As shown in fig. 1 and fig. 2, in the embodiment of the present invention, the specific process is as follows:
the UI interface sends the user operation data to the background service.
And 2, receiving data sent by a user by the API service component, and calling the rule core controller component after simple authority and safety verification.
3. The rule core controller generates a rule script and sends the rule script to the rule analysis component, and the rule analysis component controls the rule receiving component and the rule running component according to the rule script.
4. And the rule operation component controls a corresponding rule flow according to the rule metadata, when the data receiving component sends the data to the rule operation component, the rule operation component calls the data security component to perform data security verification on the data, and after the data is successfully verified, the data is sent to the data outlet component and sent to a destination by the data outlet component. And meanwhile, the rule running component regularly carries out rule health monitoring.
In this embodiment, the rule running component may dynamically modify the rule and control the rule flow. The data security component can generate data security rules according to the characteristic expressions through page operation, and data security is protected. Each component can be plugged and unplugged, customized secondary development can be carried out according to a special scene, the operation is simple, and stateless distributed service is realized only by a page control rule.
The existing rule engine technology is complex to use and high in code coupling, and problems caused by the fact that distributed programs need to be processed by self under a distributed scene. The embodiment of the invention is independently deployed, self-processes the problems in a distributed scene, and is simple to use.

Claims (5)

1. An Internet of things rule engine operation method is characterized by comprising the following steps:
acquiring operation data of a user input rule, and verifying the authority and the operation data of the user;
generating a corresponding rule script file according to the operation data, analyzing the rule script file, and generating rule operation parameters;
acquiring rule operation data according to the rule operation parameters;
and operating the user input rule by combining the rule operation parameter and the rule operation data.
2. The method for operating an internet of things rules engine of claim 1, wherein verifying the authority and operational data of the user comprises:
extracting the authority level value of the user;
and comparing the authority level value of the user with a preset authority level value, and passing the authority verification of the user when the authority level of the user is greater than or equal to the preset authority level value.
3. The method for operating an internet of things rules engine of claim 2, wherein verifying the authority and operational data of the user further comprises:
and extracting the operation data, judging whether the operation data contains preset data or not, and passing the verification of the operation data when the operation data does not contain the preset data.
4. An internet of things rules engine operating method as claimed in claim 1 or 3, wherein the rules operating parameters include rules metadata.
5. The method for operating the internet of things rule engine as claimed in claim 4, wherein obtaining rule operation data according to the rule operation parameters comprises:
and searching the rule operation data in a rule operation database according to the rule operation parameters, and calling the rule operation data from the rule operation database.
CN202010094228.7A 2020-02-15 2020-02-15 Internet of things rule engine operation method Pending CN111314342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010094228.7A CN111314342A (en) 2020-02-15 2020-02-15 Internet of things rule engine operation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010094228.7A CN111314342A (en) 2020-02-15 2020-02-15 Internet of things rule engine operation method

Publications (1)

Publication Number Publication Date
CN111314342A true CN111314342A (en) 2020-06-19

Family

ID=71150872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010094228.7A Pending CN111314342A (en) 2020-02-15 2020-02-15 Internet of things rule engine operation method

Country Status (1)

Country Link
CN (1) CN111314342A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329781A (en) * 2007-06-12 2008-12-24 霍尼韦尔国际公司 Access control system with rules engine architecture
US20140236909A1 (en) * 2013-02-19 2014-08-21 John Cole System and Method for Governing Data Entry Into a Network Data Base by Multiple Entities Having Varying Data Requirements
CN106126215A (en) * 2016-06-17 2016-11-16 深圳市麦斯杰网络有限公司 Business rule scenario generation method and device
CN106990967A (en) * 2017-04-05 2017-07-28 百融(北京)金融信息服务股份有限公司 The data processing method of regulation engine
CN108647049A (en) * 2018-03-18 2018-10-12 平安科技(深圳)有限公司 Configurableization system, method, equipment and the storage medium of rule-based engine
CN109388921A (en) * 2017-08-10 2019-02-26 顺丰科技有限公司 A kind of unification user rights management platform and operation method
CN110413582A (en) * 2019-07-07 2019-11-05 上海鸿翼软件技术股份有限公司 A kind of trans-regional data synchronous system based on business rule

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329781A (en) * 2007-06-12 2008-12-24 霍尼韦尔国际公司 Access control system with rules engine architecture
US20140236909A1 (en) * 2013-02-19 2014-08-21 John Cole System and Method for Governing Data Entry Into a Network Data Base by Multiple Entities Having Varying Data Requirements
CN106126215A (en) * 2016-06-17 2016-11-16 深圳市麦斯杰网络有限公司 Business rule scenario generation method and device
CN106990967A (en) * 2017-04-05 2017-07-28 百融(北京)金融信息服务股份有限公司 The data processing method of regulation engine
CN109388921A (en) * 2017-08-10 2019-02-26 顺丰科技有限公司 A kind of unification user rights management platform and operation method
CN108647049A (en) * 2018-03-18 2018-10-12 平安科技(深圳)有限公司 Configurableization system, method, equipment and the storage medium of rule-based engine
CN110413582A (en) * 2019-07-07 2019-11-05 上海鸿翼软件技术股份有限公司 A kind of trans-regional data synchronous system based on business rule

Similar Documents

Publication Publication Date Title
CN110704518B (en) Business data processing method and device based on Flink engine
US9247022B2 (en) Method and apparatus for optimizing performance and network traffic in distributed workflow processing
CN106528185A (en) Application interface management method and apparatus
CN106685894B (en) Risk identification method, device and system
CN113330419A (en) Equipment application installation method and device
WO2019061999A1 (en) Breakpoint call method, electronic device and computer-readable storage medium
CN112799908B (en) Intelligent terminal safety monitoring method, equipment and medium based on edge calculation
CN111314342A (en) Internet of things rule engine operation method
CN117389655A (en) Task execution method, device, equipment and storage medium in cloud native environment
CN113806594A (en) Business data processing method, device, equipment and storage medium based on decision tree
CN111932076A (en) Rule configuration and release method and device and computing equipment
CN111538483A (en) Data processing method, equipment, server and readable storage medium
CN107766212B (en) Method and device for determining installation state of application program
CN108509773B (en) Source code reinforcing method and device
CN112184531B (en) Method and system for realizing intelligent and non-inductive pushing of office work
CN113986706A (en) Automatic data service re-running method based on data service monitoring
CN113868116A (en) Test dependent data generation method and device, server and storage medium
CN104572036B (en) Event processing method and device
CN108063679B (en) Method and device for upgrading cloud management platform
CN114115853B (en) Method and system for dynamically controlling API (application program interface) access
CN111125130B (en) Account type analysis method, system and storage medium for dream database
CN108614871B (en) Data query and result generation method, device, equipment and storage medium
CN112445494A (en) Real-time computing task deployment method and device and real-time computing system
CN115022327A (en) Control method and device of cloud server and computer readable storage medium
CN115511009A (en) Method for realizing feature matching based on wind control rule

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200619