Configuration object model generation early warning method and system based on aPaas platform
By defining the early warning model and message queue monitoring mechanism on the aPaas platform, the problem of difficulty in scaling and maintaining traditional early warning systems is solved, and flexible, real-time and accurate early warning notifications are achieved to adapt to the needs of complex business scenarios.
Patent Information
- Application Number
- CN202410972045.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-07-19
AI Technical Summary
Traditional event warning systems have problems such as hard-coded, fixed warning rules, and difficult to expand and maintain, which makes it difficult for the system to adapt to the diversity and variation of business documents, reducing the accuracy and timeliness of early warnings.
By defining an early warning model based on the configuration table field on the aPaas platform, each early warning model corresponds to a business document, creating a message queue to monitor the change of business document information, and determining whether to send an early warning notification based on the early warning model configuration, supporting branch condition configuration and multiple notifications Way.
It improves the flexibility, real-timeness and accuracy of the system, reduces the error rate of human judgment, and can flexibly adapt to the needs of different business documents, and meets complex and changeable business scenarios.
Smart Images

Figure CN118897773A_ABST
Abstract
Description
Technical Field
[0001] This document relates to the field of event warning technology, and in particular to a method and system for generating warnings based on a configuration object model of an aPaas platform. Background Art
[0002] In the field of event warning, with the increase in the complexity of enterprise business and the sharp increase in data processing volume, real-time monitoring and warning of business documents have become increasingly important. Users in the aPaaS platform generate a large number of form documents every day. Many users have the need to monitor sensitive data and automatically send warning notifications. However, traditional warning systems often have problems such as hard coding, fixed warning rules, and difficulty in expansion and maintenance. These problems make it difficult for the system to adapt to the diversity and variability of business documents, thereby reducing the accuracy and timeliness of warnings. Traditional warning systems usually write warning rules directly in the code, resulting in a tight coupling between warning rules and business logic. Modifying warning rules requires modifying the code and redeploying the system, which is a cumbersome and error-prone process. With the increase and change of business documents, the warning system needs to support more warning rules and business logic. However, due to the tight coupling between warning rules and business logic, the system's scalability and maintainability are poor, making it difficult to meet business needs. In addition, traditional warning systems often use polling or scheduled tasks to check changes in business documents. This method has the problem of insufficient real-time performance and cannot detect changes in business documents in a timely manner and send warning notifications.
[0003] In order to solve the above problems, a method is needed to automatically trigger warnings based on different object documents by customizing the object warning model. Summary of the invention
[0004] One or more embodiments of this specification provide a method for generating an early warning based on a configuration object model of an aPaas platform, including:
[0005] Define the warning model based on the fields in the configuration table. Each warning model corresponds to a business document. The defined warning model configuration is saved in the configuration table.
[0006] Create a message queue and monitor whether the business document information has changed based on the messages sent by the received business documents;
[0007] When the business document information changes, the configuration table is queried based on the business document to see whether there is an early warning model corresponding to the current business document object, and it is determined whether a corresponding early warning notification needs to be sent based on the early warning model configuration.
[0008] Furthermore, the fields of the configuration table include: business object, business type, triggering time, warning rule condition, warning level, notification method and notification content.
[0009] Furthermore, the warning rule conditions support branch condition configuration.
[0010] Furthermore, the message content sent by the business document includes the name of the object to which the business document belongs, the operation type, the operator and the document data content, wherein the operation type includes adding and modifying, and the message format sent by different business documents is the same.
[0011] Further, judging whether it is necessary to send a corresponding warning notification according to the warning model configuration specifically includes:
[0012] According to the warning model corresponding to the current business document object, it is judged whether the document data content meets the warning rule conditions. If it does, a warning notification of the corresponding level is sent according to the notification method and notification content configured in the model. If it does not meet the conditions, no warning notification is sent.
[0013] Furthermore, the notification methods include message center reminders, text message notifications, and email notifications.
[0014] Furthermore, the method further comprises:
[0015] When the warning model in the configuration table is deleted, it is determined whether the business object corresponding to the warning model has no warning model configuration. If the business object has no associated model configuration, the message queue is cancelled from monitoring the message of the document information change of the business object.
[0016] One or more embodiments of this specification provide a configuration object model generation early warning system based on an aPaas platform, including:
[0017] Model configuration module: used to define early warning models based on the fields in the configuration table. Each early warning model corresponds to a business document, and the defined early warning model configuration is saved in the configuration table.
[0018] Information judgment module: used to create a message queue and monitor whether the business document information has changed according to the message sent by the received business document;
[0019] Warning judgment module: used to query whether there is a warning model corresponding to the current business document object in the configuration table according to the business document when the business document information changes, and judge whether it is necessary to send a corresponding warning notification according to the warning model configuration.
[0020] One or more embodiments of the present specification provide an electronic device, including:
[0021] processor; and,
[0022] A memory arranged to store computer executable instructions, which, when executed, enable the processor to implement the steps of the above-mentioned method for generating an early warning based on the configuration object model of the aPaas platform.
[0023] One or more embodiments of the present specification provide a storage medium for storing computer-executable instructions, which, when executed, implement the steps of the above-mentioned method for generating an early warning based on aPaas platform configuration object model.
[0024] By adopting the embodiment of the present invention, the early warning model is defined by configuring the fields of the table, so that the early warning requirements of different business documents can be flexibly adapted. When the business document or the early warning requirement changes, only the configuration table needs to be updated without large-scale modification, thereby improving scalability; it is possible to judge whether it is necessary to send an early warning notification based on the latest received business document information, thereby reducing the error rate of human judgment, ensuring the accuracy of the early warning, and improving work efficiency; personalized early warning services can be provided for different business document definitions, and complex and changeable business scenarios can be met; therefore, the present invention can improve the flexibility, real-time, accuracy, configurability, manageability and other aspects of the system.
[0025] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate one or more embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0027] Figure 1 A flowchart of a method for generating an early warning based on a configuration object model of an aPaas platform provided in one or more embodiments of this specification;
[0028] Figure 2 A specific flow chart of a method for generating an early warning based on a configuration object model of an aPaas platform provided in one or more embodiments of this specification;
[0029] Figure 3 A schematic diagram of the composition of a configuration object model generation early warning system based on an aPaas platform provided in one or more embodiments of this specification;
[0030] Figure 4 A schematic diagram of the structure of an electronic device provided for one or more embodiments of this specification. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will be combined with the drawings in one or more embodiments of this specification to clearly and completely describe the technical solutions in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.
[0032] Method Embodiment
[0033] According to an embodiment of the present invention, a method for generating an early warning based on a configuration object model of an aPaas platform is provided. Figure 1 A flowchart of a method for generating an early warning based on a configuration object model of an aPaas platform is provided for one or more embodiments of this specification, such as Figure 1 As shown, the method for generating an early warning based on the configuration object model of the aPaas platform according to an embodiment of the present invention specifically includes:
[0034] S1. Define the warning model based on the configuration table fields. Each warning model corresponds to a business document, and the defined warning model configuration is saved in the configuration table.
[0035] The fields of the configuration table include: business object, business type, triggering time, warning rule condition, warning level, notification method and notification content. The warning rule condition supports branch condition configuration.
[0036] Define the warning model based on the above configuration table fields, such as Figure 2 As shown, this embodiment defines a payment warning model, a contract warning model and an insurance warning model, and saves the defined model configurations into a model configuration table. The defined models correspond to payment forms, contract forms and insurance forms, respectively.
[0037] S2. Create a message queue and monitor whether the business document information has changed based on the message sent by the received business document.
[0038] The created message queue receives the message sent by the business document, including the name of the object to which the business document belongs, the operation type, the operator and the document data content, wherein the operation type includes adding and modifying, and the message format sent by different business documents is the same. In this embodiment, the payment form, contract form and insurance form send the name of the object to which the form belongs, whether to add or modify the operation, the operator and the document data content to the monitored message queue, and the message queue determines whether the business document information has changed based on the received message.
[0039] S3. When the business document information changes, query the configuration table based on the business document to see whether there is an early warning model corresponding to the current business document object, and determine whether it is necessary to send a corresponding early warning notification based on the early warning model configuration.
[0040] When business document information changes, first check whether there is an early warning model corresponding to the current business document object in the business document configuration table. If so, determine whether the document data content meets the early warning rule conditions based on the early warning model corresponding to the current business document object. If so, send an early warning notification of the corresponding level based on the notification method and notification content configured in the model. If not, do not send an early warning notification.
[0041] In this embodiment, the notification methods for early warning notification include message center reminder, SMS notification and email notification.
[0042] It should be noted that when the warning model in the configuration table is deleted, it is first determined whether the business object corresponding to the warning model has no warning model configuration. If the business object has no associated model configuration, the message queue's monitoring of the change in the document information of the business object is cancelled.
[0043] The beneficial effects of the present invention are as follows:
[0044] By adopting the embodiment of the present invention, the early warning model is defined by configuring the fields of the table, so that the early warning requirements of different business documents can be flexibly adapted. When the business document or the early warning requirement changes, only the configuration table needs to be updated without large-scale modification, thereby improving scalability; it is possible to judge whether it is necessary to send an early warning notification based on the latest received business document information, thereby reducing the error rate of human judgment, ensuring the accuracy of the early warning, and improving work efficiency; personalized early warning services can be provided for different business document definitions, and complex and changeable business scenarios can be met; therefore, the present invention can improve the flexibility, real-time, accuracy, configurability, manageability and other aspects of the system.
[0045] System Example
[0046] According to an embodiment of the present invention, a configuration object model generation early warning system based on an aPaas platform is provided. Figure 3 A schematic diagram of a configuration object model generation early warning system based on an aPaas platform provided in one or more embodiments of this specification, such as Figure 3 As shown, the configuration object model generation early warning system based on the aPaas platform according to an embodiment of the present invention specifically includes:
[0047] Model configuration module 30: used to define an early warning model based on the fields in the configuration table. Each early warning model corresponds to a business document, and the defined early warning model configuration is saved in the configuration table.
[0048] Information judgment module 32: used to create a message queue and monitor whether the business document information has changed according to the message sent by the received business document;
[0049] Warning judgment module 34: used to query the configuration table whether there is a warning model corresponding to the current business document object according to the business document when the business document information changes, and judge whether it is necessary to send a corresponding warning notification according to the warning model configuration.
[0050] The embodiment of the present invention is a system embodiment corresponding to the above-mentioned method embodiment. The specific operations of each module can be understood by referring to the description of the method embodiment, which will not be repeated here.
[0051] Device Example 1
[0052] An embodiment of the present invention provides an electronic device, such as Figure 4 As shown, it includes: a memory 40, a processor 42, and a computer program stored in the memory 40 and executable on the processor 42. When the computer program is executed by the processor 42, the following method steps are implemented:
[0053] S1. Define the warning model based on the fields in the configuration table. Each warning model corresponds to a business document. The defined warning model configuration is saved in the configuration table.
[0054] S2. Create a message queue and monitor whether the business document information has changed according to the message sent by the received business document;
[0055] S3. When the business document information changes, query the configuration table based on the business document to see whether there is an early warning model corresponding to the current business document object, and determine whether it is necessary to send a corresponding early warning notification based on the early warning model configuration.
[0056] Device Example 2
[0057] An embodiment of the present invention provides a computer-readable storage medium, on which a program for implementing information transmission is stored. When the program is executed by the processor 42, the following method steps are implemented:
[0058] S1. Define the warning model based on the fields in the configuration table. Each warning model corresponds to a business document. The defined warning model configuration is saved in the configuration table.
[0059] S2. Create a message queue and monitor whether the business document information has changed according to the message sent by the received business document;
[0060] S3. When the business document information changes, query the configuration table based on the business document to see whether there is an early warning model corresponding to the current business document object, and determine whether it is necessary to send a corresponding early warning notification based on the early warning model configuration.
[0061] The computer-readable storage medium in this embodiment includes, but is not limited to, ROM, RAM, magnetic disk or optical disk, etc.
[0062] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating early warning based on the configuration object model of aPaas platform, It is characterized in that include: Define the warning model based on the fields in the configuration table. Each warning model corresponds to a business document. The defined warning model configuration is saved in the configuration table. Create a message queue and monitor whether the business document information has changed based on the messages sent by the received business documents; When the business document information changes, the configuration table is queried based on the business document to see whether there is an early warning model corresponding to the current business document object, and it is determined whether a corresponding early warning notification needs to be sent based on the early warning model configuration.
2. The method according to claim 1, It is characterized in that The fields of the configuration table include: business object, business type, triggering time, warning rule conditions, warning level, notification method and notification content.
3. The method according to claim 2, It is characterized in that The warning rule conditions support branch condition configuration.
4. The method according to claim 2, It is characterized in that The message content sent by the business document includes the name of the object to which the business document belongs, the operation type, the operator and the document data content. The operation type includes adding and modifying. The message format sent by different business documents is the same.
5. The method according to claim 4, It is characterized in that Determining whether to send a corresponding warning notification based on the warning model configuration includes: According to the warning model corresponding to the current business document object, it is judged whether the document data content meets the warning rule conditions. If it does, a warning notification of the corresponding level is sent according to the notification method and notification content configured in the model. If it does not meet the conditions, no warning notification is sent.
6. The method according to claim 5, It is characterized in that The notification methods include message center reminders, SMS notifications and email notifications.
7. The method according to claim 1, It is characterized in that The method further comprises: When the warning model in the configuration table is deleted, it is determined whether the business object corresponding to the warning model has no warning model configuration. If the business object has no associated model configuration, the message queue is cancelled from monitoring the message of the document information change of the business object.
8. A configuration object model generation early warning system based on aPaas platform, It is characterized in that include: Model configuration module: used to define early warning models based on the fields in the configuration table. Each early warning model corresponds to a business document, and the defined early warning model configuration is saved in the configuration table. Information judgment module: used to create a message queue and monitor whether the business document information has changed according to the message sent by the received business document; Warning judgment module: used to query whether there is a warning model corresponding to the current business document object in the configuration table according to the business document when the business document information changes, and judge whether it is necessary to send a corresponding warning notification according to the warning model configuration.
9. An electronic device, It is characterized in that include: processor; as well as, A memory arranged to store computer executable instructions, which, when executed, enable the processor to implement the steps of the method for generating an early warning based on aPaas platform configuration object model as described in any one of claims 1 to 7.
10. A storage medium, It is characterized in that Used to store computer executable instructions, which, when executed, implement the steps of the method for generating an early warning based on the configuration object model of the aPaas platform as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Alarm method and device, computer equipment and storage medium
CN115080366A
Method and system for controlling aPaaS platform capability
CN116680011A
Service early warning method, system, equipment and medium
CN116957491A
Alarm information generation method and device, storage medium and electronic equipment
CN118055000A
Creating security incident records using a remote network management platform
US20200053127A1
