CN110955689A - Rule center embedded in IT application system - Google Patents

Rule center embedded in IT application system Download PDF

Info

Publication number
CN110955689A
CN110955689A CN202010110321.2A CN202010110321A CN110955689A CN 110955689 A CN110955689 A CN 110955689A CN 202010110321 A CN202010110321 A CN 202010110321A CN 110955689 A CN110955689 A CN 110955689A
Authority
CN
China
Prior art keywords
rule
module
rules
management
cache
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
CN202010110321.2A
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.)
Whale Cloud Technology Co Ltd
Original Assignee
Whale Cloud Technology 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 Whale Cloud Technology Co Ltd filed Critical Whale Cloud Technology Co Ltd
Priority to CN202010110321.2A priority Critical patent/CN110955689A/en
Publication of CN110955689A publication Critical patent/CN110955689A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Stored Programmes (AREA)

Abstract

The rule center embedded in the IT application system designed by the invention liberates complex and changeable rule conditions from hard coding and dynamically generates rule scripts, so that the change of the rules does not need to modify codes, and the rules can be immediately effective in an online environment only by modifying the rule conditions or parameters, thereby achieving the greatest flexibility, and providing different functions and tools for the system from the dimensions of rule life cycle management, rule catalogues, rule views, rule scheduling, rule operation and the like: the rule center realizes uniform configuration, uniform management and uniform scheduling; the management of the life cycle of the rules is realized, and the use of the rules is effectively controlled; by defining the event, the association between the rule and the event is realized, and meanwhile, the business scene and the event are mapped to realize the one-to-one correspondence of the rule; the realization forms of various rules are provided, and the expression of the rules is enriched; the rule center architecture promotes and introduces technologies such as distributed cache, IK Expression and the like, and high performance of the system is achieved.

Description

Rule center embedded in IT application system
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a rule center embedded in an IT application system.
Background
In the IT business system of many enterprises, there are often a lot of business rules configured, and as the decision of the enterprise manager changes, these business rules are changed. To meet such a demand, IT business systems should be able to be updated quickly and at low cost, and IT is a common practice to separately take out the configuration of business rules to keep low coupling with the business systems, and at present, programs for implementing such functions have been developed into a rule engine, which is developed by an inference engine and is a component embedded in an application program, so as to implement separation of business decisions from application program codes and write business decisions using predefined semantic modules, and the rule engine accepts data input, interprets business rules, and makes business decisions according to the business rules: according to the existing facts, the rules are matched from the rule knowledge base, the rules with conflicts are processed, and the rules which are finally screened are executed, so that the rule engine is a part of the artificial intelligence AI research field and has certain selective judgment, artificial intelligence and rich knowledge.
The existing popular rule engine comprises a commercial ILOG, an open source drools and an open source IK Expression, wherein the IKEexpression is an open source extensible ultra-lightweight formulated language analysis execution toolkit developed based on Java language, does not depend on a Java library of any third party, can be used as a simple jar, and can be integrated in any Java application, including JavaEE application, Java desktop application and Java WebStart mode application.
Disclosure of Invention
The invention aims to provide a rule center embedded in an IT application system.
In order to achieve the technical purpose, the invention adopts the following technical scheme that a rule center embedded in an IT application system comprises a rule management module, a rule scheduling module, a rule operation module and a cache module, wherein the rule management module comprises a rule life cycle management module, a rule catalogue module and a rule view module, and the rule life cycle management comprises the following sub-modules: the rule adding-registering module, the rule inquiring module, the rule modifying module and the rule deleting module, wherein the rule directory module comprises a directory tree inquiring and displaying module and a directory tree maintaining module and supports the inquiry and maintenance of the whole and sub-directories of the rule directory tree, the rule view module comprises a rule classifying module and a rule view inquiring module and supports the classification of the rules, different types of rules adopt different implementation modes according to the characteristics of business rules, and finally, a complete and uniform view of the rules can be seen, so that the rule using party can conveniently inquire and use the rules; the rule scheduling module comprises a rule base module, a rule checking result module, a rule and service acceptance linkage module and a rule return result module, the rule base module supports the provision of core rules and personalized rules, the rule checking result module supports the management and display of prompt information and the management and display of interception information, the interception rule supports skipping and field authorization, the rule and service acceptance linkage module supports various types of return results after the rule is executed, and the return result type of the rule return result module comprises selectable operation and returnable customized operation; the rule operation module comprises a rule testing module, a rule starting and stopping module and a rule log management module, the rule testing module provides a rule testing environment, rules are tested in a relevant mode before the rules are put on line formally, the conditions of rule configuration errors and the like are avoided, the rule starting and stopping module provides a rule starting and stopping management function, the rule failure state is controlled, manual failure generation and automatic failure generation modes are supported, and the rule log management module supports storage, query and analysis of rule management logs and rule calling logs; the cache module puts frequently used objects into the cache, so that the efficiency is improved, and higher concurrency and access requirements are supported.
Preferably, the rule add-register module configures the data object, the plug-in and the basic information respectively.
Preferably, the selectable class operation of the rule return result module supports selection of an execution class or URL, and the default execution or selection execution of the custom operation caller can be returned.
Preferably, the caching module caches the following caching objects, including a fetching plug-in configuration cache, a rule object configuration cache, a rule restriction configuration cache, a rule exception restriction configuration cache, a rule configuration cache (access parameters, trigger conditions and actions), a prompt information cache and an event channel cache.
The rule center embedded in the IT application system designed by the invention liberates complex and changeable rule conditions from hard coding and dynamically generates rule scripts, so that the change of the rules does not need to modify codes, and the rules can be immediately effective in an online environment only by modifying the rule conditions or parameters, thereby achieving the greatest flexibility, and providing different functions and tools for the system from the dimensions of rule life cycle management, rule catalogues, rule views, rule scheduling, rule operation and the like: the rule center realizes uniform configuration, uniform management and uniform scheduling; the management of the life cycle of the rules is realized, and the use of the rules is effectively controlled; by defining the event, the association between the rule and the event is realized, and meanwhile, the business scene and the event are mapped to realize the one-to-one correspondence of the rule; the realization forms of various rules are provided, and the expression of the rules is enriched; when the external system calls the rules, the rule center matches the corresponding rules and carries out rule scheduling; the rule center architecture promotes and introduces technologies such as distributed cache, IK Expression and the like, and high performance of the system is realized; the concurrent execution of the rules is supported, and the rule execution efficiency is improved; the rule operation control capacity is improved and is changed from passive to active; realizing unified view and unified display of the business rules; the rule center of the invention is based on Java open source rule engine IKEXpression, liberate the complicated and changeable rule condition from the hard code, the dynamic generation rule script, make the alteration of the rule not need to revise the code, only need to revise the rule condition or parameter can take effect on the online environment immediately, from the dimensions such as management of the life cycle of the rule, rule catalogue, rule view, rule scheduling, rule operation, etc., provide different functions and tools for the system, adopt IKEXpression and JAVA cloudable technology, the algorithm is scheduled and carried out in parallel, match out the rule meeting the condition through rete inference algorithm; the rule configuration and management realize the interface operation, use the business language to express, support and offer the service ability of the rule to the third party's business system (such as electric channel, store, etc.) externally, also support the business system to call the service of the rule directly; providing a rule view, centralizing a business rule configuration library, supporting a multi-role multi-dimensional rule view, enhancing rule formula expression configuration, supporting centralized explicit management of rule configuration, and storing configuration information into the rule library; the real-time failure generation and operation visualization of the rule state are realized, a rule state start-stop real-time validation mechanism is supported, the rule response efficiency is improved, and the rule operation efficiency, time consumption and operation log operation statistical analysis are supported; the method comprises the steps of independently and intensively deploying business rule construction, stripping rules from a business system, reducing the pressure and cross influence of the business system, and when a plurality of existing rules are independent and inconsistent, suggesting unified service by a new rule.
Drawings
FIG. 1 is a block schematic of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, unless otherwise specified and limited, it is to be understood that the terms "mounted," "connected," and "connected" are used broadly and can be, for example, mechanically or electrically connected, or can be internal to two elements, directly connected, or indirectly connected through an intermediate medium. The specific meaning of the above terms can be understood by those of ordinary skill in the art as appropriate.
The rule center embedded in the IT application system according to the embodiment of the present invention is described below with reference to fig. 1, and includes a rule management module, a rule scheduling module, a rule operating module, and a caching module, where the rule management module includes a rule life cycle management module, a rule directory module, and a rule view module, and the rule life cycle management includes the following sub-modules: the rule adding-registering module, the rule inquiring module, the rule modifying module and the rule deleting module, wherein the rule directory module comprises a directory tree inquiring and displaying module and a directory tree maintaining module and supports the inquiry and maintenance of the whole and sub-directories of the rule directory tree, the rule view module comprises a rule classifying module and a rule view inquiring module and supports the classification of the rules, different types of rules adopt different implementation modes according to the characteristics of business rules, and finally, a complete and uniform view of the rules can be seen, so that the rule using party can conveniently inquire and use the rules; the rule scheduling module comprises a rule base module, a rule checking result module, a rule and service acceptance linkage module and a rule return result module, the rule base module supports the provision of core rules and personalized rules, the rule checking result module supports the management and display of prompt information and the management and display of interception information, the interception rule supports skipping and field authorization, the rule and service acceptance linkage module supports various types of return results after the rule is executed, and the return result type of the rule return result module comprises selectable operation and returnable customized operation; the rule operation module comprises a rule testing module, a rule starting and stopping module and a rule log management module, the rule testing module provides a rule testing environment, rules are tested in a relevant mode before the rules are put on line formally, the conditions of rule configuration errors and the like are avoided, the rule starting and stopping module provides a rule starting and stopping management function, the rule failure state is controlled, manual failure generation and automatic failure generation modes are supported, and the rule log management module supports storage, query and analysis of rule management logs and rule calling logs; the cache module puts frequently used objects into the cache, so that the efficiency is improved, and higher concurrency and access requirements are supported.
Preferably, the rule add-register module configures the data object, the plug-in and the basic information respectively.
Preferably, the selectable class operation of the rule return result module supports selection of an execution class or URL, and the default execution or selection execution of the custom operation caller can be returned.
Preferably, the caching module caches the following caching objects, including a fetching plug-in configuration cache, a rule object configuration cache, a rule restriction configuration cache, a rule exception restriction configuration cache, a rule configuration cache (access parameters, trigger conditions and actions), a prompt information cache and an event channel cache.
The rule center embedded in the IT application system designed by the invention liberates complex and changeable rule conditions from hard coding and dynamically generates rule scripts, so that the change of the rules does not need to modify codes, and the rules can be immediately effective in an online environment only by modifying the rule conditions or parameters, thereby achieving the greatest flexibility, and providing different functions and tools for the system from the dimensions of rule life cycle management, rule catalogues, rule views, rule scheduling, rule operation and the like: the rule center realizes uniform configuration, uniform management and uniform scheduling; the management of the life cycle of the rules is realized, and the use of the rules is effectively controlled; by defining the event, the association between the rule and the event is realized, and meanwhile, the business scene and the event are mapped to realize the one-to-one correspondence of the rule; the realization forms of various rules are provided, and the expression of the rules is enriched; when the external system calls the rules, the rule center matches the corresponding rules and carries out rule scheduling; the rule center architecture promotes and introduces technologies such as distributed cache, IK Expression and the like, and high performance of the system is realized; the concurrent execution of the rules is supported, and the rule execution efficiency is improved; the rule operation control capacity is improved and is changed from passive to active; realizing unified view and unified display of the business rules; the rule center of the invention is based on Java open source rule engine IKEXpression, liberate the complicated and changeable rule condition from the hard code, the dynamic generation rule script, make the alteration of the rule not need to revise the code, only need to revise the rule condition or parameter can take effect on the online environment immediately, from the dimensions such as management of the life cycle of the rule, rule catalogue, rule view, rule scheduling, rule operation, etc., provide different functions and tools for the system, adopt IKEXpression and JAVA cloudable technology, the algorithm is scheduled and carried out in parallel, match out the rule meeting the condition through rete inference algorithm; the rule configuration and management realize the interface operation, use the business language to express, support and offer the service ability of the rule to the third party's business system (such as electric channel, store, etc.) externally, also support the business system to call the service of the rule directly; providing a rule view, centralizing a business rule configuration library, supporting a multi-role multi-dimensional rule view, enhancing rule formula expression configuration, supporting centralized explicit management of rule configuration, and storing configuration information into the rule library; the real-time failure generation and operation visualization of the rule state are realized, a rule state start-stop real-time validation mechanism is supported, the rule response efficiency is improved, and the rule operation efficiency, time consumption and operation log operation statistical analysis are supported; the method comprises the steps of independently and intensively deploying business rule construction, stripping rules from a business system, reducing the pressure and cross influence of the business system, and when a plurality of existing rules are independent and inconsistent, suggesting unified service by a new rule.
In the description herein, references to the description of "one embodiment," "an example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (4)

1. A rule center embedded in an IT application system is characterized by comprising a rule management module, a rule scheduling module, a rule operation module and a cache module, wherein the rule management module comprises a rule life cycle management module, a rule catalogue module and a rule view module, and the rule life cycle management comprises the following sub-modules: the rule directory module comprises a directory tree query and display module and a directory tree maintenance module and supports query and maintenance of the whole and subdirectories of the directory tree of the case, and the rule view module comprises a rule classification module and a rule view query module and supports classification of the rules; the rule scheduling module comprises a rule base module, a rule checking result module, a rule and service acceptance linkage module and a rule return result module, the rule base module supports the provision of core rules and personalized rules, the rule checking result module supports the management and display of prompt information and the management and display of interception information, the interception rule supports skipping and field authorization, the rule and service acceptance linkage module supports various types of return results after the rule is executed, and the return result type of the rule return result module comprises selectable operation and returnable customized operation; the rule operation module comprises a rule testing module, a rule starting and stopping module and a rule log management module, the rule testing module provides a rule testing environment, rules are tested in a relevant mode before the rules are put on line formally, the conditions of rule configuration errors and the like are avoided, the rule starting and stopping module provides a rule starting and stopping management function, the rule failure state is controlled, manual failure generation and automatic failure generation modes are supported, and the rule log management module supports storage, query and analysis of rule management logs and rule calling logs; the cache module puts frequently used objects into the cache, so that the efficiency is improved, and higher concurrency and access requirements are supported.
2. The rule center of claim 1 wherein the rule add-register module configures the data object, the plug-in, and the base information separately.
3. The rule center of claim 1, wherein the optional class operation of the rule return result module supports the optional execution class or URL, and the custom operation caller default execution or optional execution can be returned.
4. The rule center according to claim 1, wherein the caching module caches the following cache objects, including an access plug-in configuration cache, a rule object configuration cache, a rule restriction configuration cache, a rule exception restriction configuration cache, a rule configuration cache (access, trigger condition and action), a prompt information cache and an event channel cache.
CN202010110321.2A 2020-02-24 2020-02-24 Rule center embedded in IT application system Pending CN110955689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010110321.2A CN110955689A (en) 2020-02-24 2020-02-24 Rule center embedded in IT application system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010110321.2A CN110955689A (en) 2020-02-24 2020-02-24 Rule center embedded in IT application system

Publications (1)

Publication Number Publication Date
CN110955689A true CN110955689A (en) 2020-04-03

Family

ID=69985717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010110321.2A Pending CN110955689A (en) 2020-02-24 2020-02-24 Rule center embedded in IT application system

Country Status (1)

Country Link
CN (1) CN110955689A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111813406A (en) * 2020-07-14 2020-10-23 深圳前海移联科技有限公司 Dynamic event-driven model
CN113703787A (en) * 2020-05-20 2021-11-26 网神信息技术(北京)股份有限公司 Installation package processing method and device, electronic equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170200083A1 (en) * 2016-01-07 2017-07-13 Red Hat, Inc. Building a hybrid reactive rule engine for relational and graph reasoning
CN107632842A (en) * 2017-09-26 2018-01-26 携程旅游信息技术(上海)有限公司 Rule configuration and dissemination method, system, equipment and storage medium
CN110162333A (en) * 2019-05-10 2019-08-23 中信银行股份有限公司 Multi-service scene tactical management platform based on Drools regulation engine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170200083A1 (en) * 2016-01-07 2017-07-13 Red Hat, Inc. Building a hybrid reactive rule engine for relational and graph reasoning
CN107632842A (en) * 2017-09-26 2018-01-26 携程旅游信息技术(上海)有限公司 Rule configuration and dissemination method, system, equipment and storage medium
CN110162333A (en) * 2019-05-10 2019-08-23 中信银行股份有限公司 Multi-service scene tactical management platform based on Drools regulation engine

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
汤冬冬: "基于Drools的分布式业务规则引擎的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113703787A (en) * 2020-05-20 2021-11-26 网神信息技术(北京)股份有限公司 Installation package processing method and device, electronic equipment and computer readable storage medium
CN111813406A (en) * 2020-07-14 2020-10-23 深圳前海移联科技有限公司 Dynamic event-driven model
CN111813406B (en) * 2020-07-14 2022-03-11 深圳前海移联科技有限公司 Dynamic event-driven model

Similar Documents

Publication Publication Date Title
US9953639B2 (en) Voice recognition system and construction method thereof
CN106371973B (en) A kind of data processing method, equipment and system
US9471651B2 (en) Adjustment of map reduce execution
US20100037157A1 (en) Proactive machine-aided mashup construction with implicit and explicit input from user community
CN108874924A (en) Creation method, device and the computer readable storage medium of search service
CN110955689A (en) Rule center embedded in IT application system
CN101464908A (en) Log recording method and device
CN103279358A (en) Interpreted dynamic business component construction method for industrial applications
CN107682209A (en) A kind of SDP big datas automatically dispose monitor supervision platform
CN102968438B (en) History data store control system in comprehensive monitoring system
US20150006706A1 (en) Analytics caching based on users connected
US8645338B2 (en) Active memory expansion and RDBMS meta data and tooling
US20230259647A1 (en) Systems and methods for automated discovery and analysis of privileged access across multiple computing platforms
CN114402315A (en) Cloud-based query workload optimization
US8856132B2 (en) Tips management system and process for managing organization-wide knowledge tips
CN116048817B (en) Data processing control method, device, computer equipment and storage medium
US10346550B1 (en) Methods and systems for searching and indexing virtual environments
US20090037443A1 (en) Intelligent group communication
CN113268282A (en) Management method and management system for distributed system configuration items
CN101556577A (en) Method for organizing documents and program codes together by using XML file
US9262492B2 (en) Dividing and combining operations
CN113204540A (en) Rule engine configuration method, device, equipment and storage medium
Wei et al. Bio-inspired application scheduling algorithm for mobile cloud computing
CN114281494A (en) Data full life cycle management method, system, terminal device and storage medium
WO2021043091A1 (en) Intelligent import method and apparatus for template table, and electronic device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200403

RJ01 Rejection of invention patent application after publication