Item triggering method and device for item management platform
Through the unified configuration of the event management platform and the analysis of event triggering rules by the JEXL expression engine, the problem of business system complexity and coupling is solved, achieving higher system flexibility and stability, and adapting to changing customer needs.
Patent Information
- Application Number
- CN202410688265.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-06
AI Technical Summary
In existing business systems, the event initiation logic is hidden in hard-coded or fixed rule sets, resulting in increased system complexity and coupling, unable to meet flexibility and maintenance requirements, and affecting system stability and scalability.
Unify the configuration of business activity information and event triggering rules through the event management platform, use the JEXL expression engine to parse the rules, automatically monitor and trigger events, reduce system complexity and coupling, and achieve flexible business logic management.
It improves the maintainability and scalability of the system, reduces development costs and workload, enhances the flexibility and stability of the business system, and adapts to changing customer needs.
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of automated processing, and in particular relates to an event triggering method and device for an event management platform. Background Art
[0002] As the digital reform process of the people's courts continues to accelerate, the services of various business systems of smart courts are constantly launched. In order to improve the efficiency of judges in handling cases, each system is connected to the matter management platform, allowing judges to focus on case handling and hand over some trivial matters to auxiliary personnel. However, the logic of initiating matters in each business system is hidden in their respective business codes, relying on hard-coded logic or fixed rule sets to implement the initiation of matters. The management of matters by each business system is relatively loose, resulting in the overall business process being not transparent enough. With the changes in the market environment and the diversification of customer needs, hard-coded logic and fixed rule sets have gradually exposed problems such as poor flexibility and difficult maintenance, and it is difficult to meet the needs of judges for daily use. In particular, adding the triggering of matters in the complex business processes of the business system will significantly increase the complexity and coupling of the system, which will lead to a decrease in system stability.
[0003] In the prior art, the initiation of an event is decided by the internal logic of the business system. The business system uses hard coding to make logical judgments on whether to initiate an event for an activity in the business process. Events initiated in different scenarios require repeated development. There is a lack of unified management and maintenance, which increases the complexity of the business system, reduces the readability and maintainability of the code, and makes it impossible to easily expand the business, limiting the flexibility of the business system. Operation and maintenance personnel need to confirm the activity information of the initiated event from the business system, which greatly increases the workload and difficulty of operation and maintenance. Summary of the invention
[0004] To solve the above problems, the present invention provides an event triggering method for an event management platform, in which business activity information and event triggering rules are uniformly configured and managed by the event management platform. The business system can automatically initiate events without developing a large amount of logic code, which can greatly reduce the development cost and time cost of R&D personnel.
[0005] The present invention provides an event triggering method for an event management platform, comprising the following steps:
[0006] S1: Define the types of business activities, data models of various business activity types, and items included in various business activity types; define item triggering rules and item triggering time for each item of each business activity type according to user instructions. The content of the item triggering rule is the value range of the data model of the corresponding business activity that needs to be satisfied for the corresponding item to be triggered. The item triggering time is the date that needs to be satisfied for the item to be triggered, in the form of a relative value of a date in the data model of the corresponding business activity;
[0007] S2: Monitor new business activities in real time and check whether there are event triggering rules for each event in the new business activities. If yes, add the event to the waiting-to-trigger queue; otherwise, add it to the failure compensation queue;
[0008] S3: Regularly traverse the queue to be triggered, and check whether the event triggering date is earlier than or equal to the event of the day, and whether the corresponding event triggering rule is met. If it is met, the corresponding event is triggered. If not, the event is added to the failure compensation queue, and the reason for not meeting the rule is noted;
[0009] S4: Manually trigger or delete items in the failure compensation queue according to user instructions.
[0010] Preferably, the event triggering rules are parsed by the JEXL expression engine.
[0011] The present invention also provides an event triggering device for an event management platform, comprising the following modules:
[0012] Item trigger rule configuration module: used to define the types of business activities, data models of various business activity types, and items included in various business activity types; define item trigger rules and item trigger time for each item of each business activity type according to user instructions. The content of the item trigger rule is the value range of the data model of the corresponding business activity that needs to be satisfied for the corresponding item to be triggered. The item trigger time is the date that needs to be satisfied for the item to be triggered, in the form of a relative value of a date in the data model of the corresponding business activity;
[0013] Business activity monitoring module: used to monitor new business activities in real time, check whether there are event triggering rules for each event in the new business activities, if yes, add the event to the waiting trigger queue, otherwise add it to the failure compensation queue;
[0014] Automatic event triggering module: It is used to regularly traverse the event to be triggered queue, and check whether the event triggering date is earlier than or equal to the event of the day, and whether the corresponding event triggering rules are met. If so, the corresponding event is triggered, and if not, the event is added to the failure compensation queue, and the reason for non-satisfaction is noted;
[0015] Failure compensation module: used to manually trigger or delete items in the failure compensation queue according to user instructions.
[0016] Preferably, the event triggering rules are parsed by the JEXL expression engine.
[0017] Beneficial effects:
[0018] The core of the present invention is to utilize the flexibility and powerful computing power of the JEXL expression engine to externalize complex business logic and manage it through expressions. This approach not only reduces the complexity and coupling of the system, but also improves the maintainability and scalability of the system, and can better meet the flexible and changing needs of customers.
[0019] Specifically, through the implementation of the present invention, the following technical effects can be achieved:
[0020] Improve business flexibility: Using the JEXL expression engine, the business system can dynamically process various complex business logics and adjust the content of logical expressions according to actual business needs, thereby achieving business flexibility and dynamism.
[0021] Simplify system complexity: By externalizing complex business logic, the present invention simplifies the internal structure of the business system, reduces the complexity of the business system, and improves the stability and performance of the business system.
[0022] Reduce system coupling: Since the business logic is no longer directly integrated into the business system, but is configured through expressions in the event management platform system, the coupling between business systems is reduced, making it easier to maintain and expand the system. DETAILED DESCRIPTION
[0023] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention are clearly and completely described below. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] Some terms used in the present invention are explained below to facilitate understanding by those skilled in the art.
[0025] (1) JEXL (Java Expression Language): The implementation principle of this expression engine usually includes steps such as lexical analysis, syntax analysis, syntax tree construction, and expression value calculation. In this process, it decomposes the input expression into lexical units, then constructs the corresponding syntax tree, and finally traverses the syntax tree to calculate the value of the expression.
[0026] (2) Matters: refers specifically to small matters that can be handled independently in the business system, such as document scanning, file printing, and file sorting.
[0027] (3) Matters Management Platform: Judges can manage the entire process of initiation, handling, confirmation, and evaluation of matters through the matters management platform, thereby improving the quality and efficiency of judges’ case handling, reducing their workload, and stimulating their work motivation.
[0028] (4) Data model: The data model in this method refers to the various attributes of business activities provided by the business system to the expression engine for judgment, such as the attributes of the case information class, including case type, case handler, and case filing date.
[0029] (5) Business activities: refers to the various steps or links in the process of completing judicial business. The types of business activities include case acceptance, case filing, case closing, etc.
[0030] A method for triggering an event on an event management platform comprises the following steps:
[0031] S1: define the types of business activities, data models of various business activity types, and items included in various business activity types; define item triggering rules and item triggering time for each item of each business activity type according to user instructions. The content of the item triggering rule is the value range of the data model of the corresponding business activity that needs to be satisfied for the corresponding item triggering. The item triggering time is the date that needs to be satisfied for the item triggering, in the form of the relative value of a date in the data model of the corresponding business activity; in this embodiment, the item triggering rules are parsed by the JEXL expression engine;
[0032] In this embodiment, in the data model of the business activity of the "case closing" type, the case information class (ajxx) includes the case type (ajxx.ajlx), the person in charge (ajxx.cbr) and the case filing date (ajxx.larq); the business activity type of "case closing" includes the item "document scanning"; among them, the item trigger time of the item "document scanning" of "case closing" is ajxx.larq+3, indicating that the trigger date of this item is the case filing date plus 3 days; the item "document scanning" of "case closing" is bound to the item trigger rule: (ajxx.ajlx=="criminal case"&&ajxx.cbr=='Judge Wang'&&ajxx.larq<=2024-03-05); this rule indicates that if in the data model of a business activity of the "case closing" type, the case type is a criminal case, the person in charge is Judge Wang and the case filing date is less than March 5, 2024, then the item "document scanning" meets the trigger rule.
[0033] S2: Monitor new business activities in real time and check whether there are event triggering rules for each event in the new business activities. If yes, add the event to the waiting-to-trigger queue; otherwise, add it to the failure compensation queue;
[0034] In actual applications, the administrator may not configure event triggering rules for certain events. In this case, adding a failure compensation queue can remind the administrator in time.
[0035] S3: Regularly traverse the queue to be triggered, and check whether the event triggering date is earlier than or equal to the event of the day, and whether the corresponding event triggering rule is met. If it is met, the corresponding event is triggered. If not, the event is added to the failure compensation queue, and the reason for not meeting the rule is noted;
[0036] S4: Manually trigger or delete items in the failure compensation queue according to user instructions.
[0037] The present invention includes the key steps of event triggering rule configuration (S1), business activity monitoring (S2), event automatic triggering (S3) and failure compensation (S4). The event triggering rule configuration step provides the JEXL expression engine with flexible configuration matching rules, the business activity monitoring step receives business activity information from the business system and performs preliminary analysis and screening, the event automatic triggering step is responsible for analyzing whether the preset conditions are met to automatically trigger the event initiation task, and the failure compensation step provides a fault-tolerant mechanism for the system to ensure the integrity of the system's business activities.
[0038] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for triggering an event in an event management platform, characterized in that The following steps are involved: S1: Define the types of business activities, data models of various business activity types, and items included in various business activity types; define item triggering rules and item triggering time for each item of each business activity type according to user instructions. The content of the item triggering rule is the value range of the data model of the corresponding business activity that needs to be satisfied for the corresponding item to be triggered. The item triggering time is the date that needs to be satisfied for the item to be triggered, in the form of a relative value of a date in the data model of the corresponding business activity; S2: Monitor new business activities in real time and check whether there are event triggering rules for each event in the new business activities. If yes, add the event to the waiting-to-trigger queue; otherwise, add it to the failure compensation queue; S3: Regularly traverse the queue to be triggered, and check whether the event triggering date is earlier than or equal to the event of the day, and whether the corresponding event triggering rule is met. If it is met, the corresponding event is triggered. If not, the event is added to the failure compensation queue, and the reason for not meeting the rule is noted; S4: Manually trigger or delete items in the failure compensation queue according to user instructions.
2. The event triggering method of an event management platform according to claim 1, characterized in that: Event triggering rules are parsed through the JEXL expression engine.
3. An event triggering device for an event management platform, characterized in that Includes the following modules: Item trigger rule configuration module: used to define the types of business activities, data models of various business activity types, and items included in various business activity types; define item trigger rules and item trigger time for each item of each business activity type according to user instructions. The content of the item trigger rule is the value range of the data model of the corresponding business activity that needs to be satisfied for the corresponding item to be triggered. The item trigger time is the date that needs to be satisfied for the item to be triggered, in the form of a relative value of a date in the data model of the corresponding business activity; Business activity monitoring module: used to monitor new business activities in real time, check whether there are event triggering rules for each event in the new business activities, if yes, add the event to the waiting trigger queue, otherwise add it to the failure compensation queue; Automatic event triggering module: regularly traverses the event to be triggered queue, and checks whether the event triggering date is earlier than or equal to the event of the day, and whether the corresponding event triggering rules are met. If so, the corresponding event is triggered, and if not, the event is added to the failure compensation queue, and the reason for non-satisfaction is noted; Failure compensation module: used to manually trigger or delete items in the failure compensation queue according to user instructions.
4. The event triggering device of the event management platform according to claim 3, characterized in that: Event triggering rules are parsed through the JEXL expression engine.
