Insurance policy configuration method, apparatus and device, and computer readable storage medium
By determining the processing thread and cache information to generate a policy processing identifier, and obtaining the policy for policy maintenance, the problem of inconsistent policy configuration is solved, efficiency is improved and costs are reduced, and it can adapt to diverse business needs.
Patent Information
- Application Number
- CN202511493345.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-17
- Publication Date
- 2026-01-30
AI Technical Summary
The existing policy maintenance system has inconsistent configuration results, resulting in low configuration efficiency and high maintenance costs, and it cannot adapt to the diverse needs of business scenarios.
By responding to policy maintenance requests, the target processing thread is determined, a policy processing identifier is generated, cached information is obtained to determine the policy maintenance strategy, and policy maintenance is performed according to the strategy to achieve policy configuration.
It improves policy configuration efficiency, reduces configuration and maintenance costs, adapts to various business scenarios, and enhances response speed and system stability.
Smart Images

Figure CN121437166A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a policy configuration method, apparatus, device, and computer-readable storage medium. Background Technology
[0002] In the financial sector, insurance companies are transforming digitally and moving towards configurable system management to meet growing business demands and improve the user experience, aiming to shorten development and integration timelines and reduce costs. However, most policy maintenance systems in this field are configured based on product business scenario requirements. Whenever a new scenario emerges, configuration relies on the experience of the personnel, leading to inconsistent configuration results. This can result in low policy configuration efficiency and high subsequent maintenance costs. Summary of the Invention
[0003] This application provides a policy configuration method, apparatus, device, and computer-readable storage medium, which aims to improve the efficiency of policy configuration and reduce configuration and maintenance costs.
[0004] Firstly, this application provides a policy configuration method, which includes the following steps: In response to a preservation request for the target policy, a target processing thread is determined for handling the preservation request; Based on the target processing thread, the policy processing identifier is determined according to the thread information of the target processing thread and the maintenance request; Obtain cached information and determine the protection processing strategy for the target policy based on the cached information and the policy processing identifier; The target policy is protected according to the protection processing strategy to complete the configuration of the target policy.
[0005] Secondly, this application also provides a policy configuration device, the policy configuration device comprising: The thread determination module is used to determine the target processing thread for handling the preservation request in response to the preservation request of the target policy. The identifier generation module is used to determine the policy processing identifier based on the target processing thread, according to the thread information of the target processing thread and the maintenance request; The policy maintenance strategy determination module is used to obtain cached information and determine the policy maintenance strategy of the target policy based on the cached information and the policy processing identifier. The policy maintenance processing module is used to perform policy maintenance processing on the target policy according to the policy maintenance processing strategy, so as to complete the configuration of the target policy.
[0006] Thirdly, this application also provides a computer device, the computer device including a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, it implements the steps of the policy configuration method as described above.
[0007] Fourthly, this application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the steps of the policy configuration method described above.
[0008] This application provides a policy configuration method, apparatus, device, and computer-readable storage medium. In response to a policy maintenance request for a target policy, this application determines a target processing thread for handling the maintenance request; based on the target processing thread, it determines a policy processing identifier according to the thread information of the target processing thread and the maintenance request; it obtains cached information to determine a maintenance processing strategy for the target policy based on the cached information and the policy processing identifier; and it performs maintenance processing on the target policy according to the maintenance processing strategy, thereby completing the configuration of the target policy. By obtaining the policy processing identifier through thread information and the maintenance request, and by determining the maintenance processing strategy through the obtained cached information and the policy processing identifier, the policy configuration is completed. When the cached information includes the relevant information, no subsequent information processing is required, improving the efficiency of policy configuration. Furthermore, the policy configuration is adaptable to various business scenarios, thereby reducing the configuration and policy maintenance costs. Attached Figure Description
[0009] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0010] Figure 1 This application provides a schematic flowchart of a policy configuration method. Figure 2 This is a schematic diagram illustrating an application scenario of a policy configuration method provided in an embodiment of this application. Figure 3 A schematic block diagram of a policy configuration device provided in an embodiment of this application; Figure 4 This is a schematic block diagram of the structure of a computer device according to an embodiment of this application.
[0011] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0012] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0013] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the order described. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.
[0014] This application provides a policy configuration method, apparatus, computer device, and computer-readable storage medium. The policy configuration method can be applied to a terminal device, such as a mobile phone, tablet computer, laptop computer, desktop computer, personal digital assistant, or wearable device. The policy configuration method can also be applied to a server, such as a cloud server, a standalone server, or a server cluster.
[0015] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0016] Please refer to Figure 1 and Figure 2 , Figure 1 The following is a flowchart illustrating the steps of an insurance policy configuration method provided as an embodiment of this application. Figure 2 This is a schematic diagram illustrating an application scenario of a policy configuration method provided in an embodiment of this application.
[0017] like Figure 1 As shown, the policy configuration method includes steps S101 to S104.
[0018] Step S101: In response to the preservation request of the target policy, determine the target processing thread for processing the preservation request.
[0019] For example, after receiving a protection request for the target policy, a target processing thread is determined to handle the protection request. It should be noted that the target processing thread is the smallest scheduling and computing unit used by the terminal or server to handle the request, so as to provide a running environment for handling the protection request.
[0020] In the actual implementation process, if multiple policy maintenance requests are received, a corresponding thread is assigned to each policy to process the policy maintenance requests.
[0021] For example, a policy preservation request may include, but is not limited to, the policy needing preservation processing, or the policy needing to change information or be reconfigured, all of which can be achieved through a preservation request.
[0022] Step S102: Based on the target processing thread, determine the policy processing identifier according to the thread information of the target processing thread and the maintenance request.
[0023] For example, after allocating the target processing thread, the corresponding policy processing identifier is determined based on the thread information of the target processing thread and the maintenance request to obtain the unique identifier of the current maintenance request. This allows the required data processing method and configuration data to be determined based on the policy processing identifier. If the corresponding configuration data or processing method exists in the cache information, the system can directly return and skip the subsequent processing steps, thereby improving the response speed of the maintenance request.
[0024] In the specific implementation process, the thread information includes the thread name and performance information used to process the maintenance request. The maintenance request includes the policy number, maintenance item code, product attributes, policy status and configuration information of the target policy. The policy processing identifier is obtained by generating a string based on the thread name, policy number, maintenance item code, product attributes, policy status and configuration information using the MD5 encryption method.
[0025] For example, the generated policy processing identifier is threadTag-busiKey; where threadTag includes at least the thread name, and busiKey is a string generated from the thread name, policy number, policy maintenance code, product attributes, policy status and configuration information, without any restrictions.
[0026] In some embodiments, after determining the policy processing identifier, the method further includes: freezing the target policy to obtain a target frozen policy; and outputting the target frozen policy when query information of the target policy is obtained.
[0027] For example, after generating the policy processing identifier, the target policy to be processed is frozen to obtain the target frozen policy. Then, when the query information of the target policy is obtained during the processing of the target policy, the target frozen policy is output, that is, the information before the target policy is processed is output, thereby ensuring the consistency of the target policy business strategy logic.
[0028] In the specific implementation process, after generating the policy processing identifier, the current status of the target policy is obtained and stored, thus obtaining the target frozen policy. It is understandable that during the configuration of the target policy, if the claims system filters the status of valid policies at a certain moment, and the target policy is still in a valid state, it will be selected. However, if the target policy becomes invalid after configuration, and the claims system queries and processes the claim again, inconsistencies in policy information will occur, affecting the entire approval process. Therefore, after generating the corresponding policy processing identifier based on the target policy, the information of the target policy is frozen so that it is read from its pre-configuration state during the configuration process, thus avoiding inconsistencies in policy information.
[0029] For example, based on the thread information in the policy processing identifier, the target policy currently undergoing policy configuration can be identified, allowing the policy to be frozen. It should be noted that after assigning a target processing thread to the target policy requiring configuration, it may not yet be configured. In this case, freezing the target policy is not necessary at this stage. Once the target policy is determined to be configured based on the thread information in the policy processing identifier and the thread's running status, freezing can be performed to improve the reliability and timeliness of the target policy.
[0030] In some embodiments, the method further includes: after completing the configuration processing of the target policy, replacing the target frozen policy with the configured target policy; and when obtaining query information of the target policy, outputting the configured target policy.
[0031] For example, after the configuration of the target policy is completed, the frozen target policy is replaced with the configured target policy to update the status of the target policy. This allows all policy processing or reading functional modules or systems to read the configured target policy, thereby achieving the information update configuration of the target policy.
[0032] In the specific implementation process, configuring the target policy may involve changing its status, specifically from valid to invalid. Therefore, during the target policy configuration process, when other terminals or claims systems retrieve information about the target policy, they will still retrieve the target policy that was frozen before configuration, i.e., the valid target policy. After the target policy's status is changed, the frozen target policy is unfrozen, and the invalid status is updated to the target policy, resulting in an invalid target policy. Thus, when the target policy is retrieved, its status is invalid. It is understandable that a valid policy status includes, but is not limited to, a policy being within its validity period, while an invalid status includes, but is not limited to, an expired policy.
[0033] Step S103: Obtain cache information and determine the protection processing strategy for the target policy based on the cache information and the policy processing identifier.
[0034] For example, cached information is obtained to determine the protection processing strategy for the target policy through the cached information and the policy processing identifier, thereby improving the speed of responding to protection requests.
[0035] In the specific implementation process, the cached information includes the cached policy processing identifier and corresponding cached policy processing information of historically processed policies. This allows the policy preservation processing strategy for the target policy to be determined based on the policy processing identifier and the cached information. For example, if the cached policy processing information in the cached information is determined to be suitable for processing the preservation request of the target policy based on the policy processing identifier and the cached policy processing identifier, the determined preservation processing strategy can be the first preservation processing strategy, which directly returns the cached policy processing information in the cached information to configure the target policy and improve response speed. If the cached information fails to determine a preservation request suitable for processing the target policy, other preservation processing strategies, such as the second preservation processing strategy, can be determined to continue configuring the target policy and complete the configuration of the target policy.
[0036] For example, if a policy maintenance request includes adding several maintenance items, and the cached policy processing information in the cached information is also suitable for adding the required maintenance items, the cached policy processing information can be directly returned to process the addition of maintenance items to the target policy based on the first maintenance processing strategy. However, if the cached information cannot adapt to the maintenance request for the target policy, other maintenance processing strategies are determined to configure the target policy.
[0037] For example, a lightweight Java library, such as Caffeine, can be used to store cached information. This lightweight Java library is easy to integrate, can effectively handle a large number of concurrent requests, has an optimized concurrency access mechanism to ensure system availability and stability, and automatically adjusts cache capacity and expiration policies. By setting a maximum cache expiration time of 30 seconds for related information, if a thread execution time is too long, the expiration function can be used to reprocess and update the cache to maximize cache hit rate and system performance. This improves overall system performance and user experience.
[0038] In some embodiments, determining the preservation processing strategy of the target policy based on the cached information and the policy processing identifier includes: determining whether there exists a target cached policy processing identifier in the cached information that has a similarity greater than or equal to a preset information similarity threshold with the policy processing identifier; if the target cached policy processing identifier exists, then determining the preservation processing strategy of the target policy as a first preservation processing strategy; if the target cached policy processing identifier does not exist, then determining the preservation processing strategy of the target policy as a second preservation processing strategy.
[0039] For example, by determining whether the target cached policy processing identifier in the cached information has a similarity greater than or equal to a preset information similarity threshold, it is possible to determine whether there is corresponding cached policy processing information in the cached information that can be directly returned, thereby determining the first or second policy preservation processing strategy for processing the target policy.
[0040] In the specific implementation process, the cached information includes a cached policy processing identifier and the corresponding cached policy processing information. Specifically, the cached policy processing information includes processing rules and / or configuration data. By determining whether the cached policy processing identifier in the cached information is similar to the policy processing identifier, it is determined whether target cached policy processing information exists. This determines whether the cached information includes processing rules similar to the data processing corresponding to the current policy maintenance request, and / or whether the cached information includes data similar to the configuration information of the current policy maintenance request, thereby determining the policy maintenance processing strategy for the target policy response.
[0041] It should be noted that since the policy processing identifier is generated by the policy maintenance request, the policy processing identifiers generated by the same policy maintenance request are also highly similar. Therefore, it is possible to determine whether the same or similar policy data processing and configuration have been performed by comparing the policy processing identifier with the cached policy processing identifier in the cache information. Thus, when the same processing and configuration have been performed, the current policy maintenance request can be processed according to historical processing rules or results, thereby improving the response speed of the policy maintenance request.
[0042] Step S104: Perform preservation processing on the target policy according to the preservation processing strategy to complete the configuration of the target policy.
[0043] For example, the target policy is configured by performing corresponding maintenance processing according to the determined maintenance processing strategy. Specifically, the determined maintenance processing strategy includes a first maintenance processing strategy and a second maintenance processing strategy. The first maintenance processing strategy is used to instruct the target policy to be configured based on cached information, while the second maintenance processing strategy is used to instruct the target policy to be configured based on the obtained maintenance request. This allows for the selection of an appropriate processing strategy to configure the policy according to different situations, thereby improving the efficiency of policy configuration.
[0044] In some embodiments, performing preservation processing on the target policy according to the preservation processing strategy includes: based on the first preservation processing strategy, returning target cached policy processing information corresponding to the target cached policy processing identifier, and completing the configuration of the target policy according to the target cached policy processing information; based on the second preservation processing strategy, determining the configuration information of the target policy according to the preservation request, and completing the configuration of the target policy according to the configuration information.
[0045] For example, if a first policy maintenance strategy is determined, the target cached policy processing information is returned directly, and the target policy is configured according to at least one of the configuration data and configuration logic contained in the target cached policy processing information.
[0046] It should be understood that cached information may include cached policy processing identifiers and corresponding cached policy processing information. Cached policy processing information is used to indicate the configuration data and / or processing rules of historical policies. For example, if a historical policy has undergone a policy status change, the policy processing identifier, the executed processing rules, and the corresponding configuration data generated during this process are all stored in the cached information. Therefore, when a target policy also needs to undergo a policy status change, it can be determined whether a historical policy has undergone the same or similar processing based on whether the cached information includes the target cached policy processing identifier. Thus, when the cached information includes the target cached policy processing identifier, a first policy maintenance processing strategy is determined, and the target policy is configured using the target cached policy processing information corresponding to the target cached policy processing identifier. For example, if the target cached policy processing information includes policy status change steps and data, under the first policy maintenance processing strategy, the change steps and corresponding configuration data indicated by the target cached policy processing information are executed on the target policy, thereby realizing the policy status change of the target policy without having to redetermine the status change steps and configuration data for the target policy, thus improving the configuration response speed.
[0047] For example, the policy processing identifier is name1-abbery, and the cache information includes the cached policy processing identifier of abbery. Therefore, after a successful match, the cached policy processing identifier of abbery in the cache information is determined as the target cached policy processing identifier. The target cached policy processing information corresponding to this target cached policy processing identifier is determined to include the processing rules for adding policy maintenance items and the configuration data of policy maintenance item A and policy maintenance item B. Then, under the first policy maintenance processing strategy, policy maintenance item A and policy maintenance item B are added to the target policy based on the processing rules for adding policy maintenance items to complete the configuration of the target policy.
[0048] The aforementioned cached policy processing identifier indicates the case where thread information is not included, thereby reducing the difficulty of matching with the policy processing identifier and improving the matching rate. In other embodiments, the cached policy processing identifier may also include thread information, such as name1-abbery, which can further determine which thread is used to process historical policies. In specific implementations, thread information can be used to indicate processing rules. Therefore, matching with a cached policy processing identifier that includes thread information can reduce the amount of information stored in the cache, thereby improving the processing speed of determining the policy maintenance strategy based on the cache information and thus improving the configuration speed of the target policy.
[0049] It should be noted that the first policy maintenance processing strategy is used to instruct the target policy to be processed according to the processing rules and configuration data in the cached information, so as to realize the direct return of cached information and thus improve the policy configuration speed. The processing rules corresponding to different cached policy processing identifiers can also be different. For example, the processing rules include, but are not limited to, policy status changes and the addition of maintenance items. The added maintenance items can also be determined by the historical maintenance item codes and the mapping relationship of maintenance items included in the cached information. Thus, when the maintenance request of the target policy includes adding maintenance items and the first policy maintenance processing strategy and the target cached policy processing identifier that matches the policy processing identifier are determined according to the policy processing identifier, the maintenance items to be added to the target policy can be determined according to the historical maintenance item codes in the target cached policy processing information, and the addition of maintenance items can be completed based on the processing rules for adding maintenance items, thereby completing the configuration of the target policy.
[0050] It should be understood that when the cached information contains a target cached policy processing identifier corresponding to the policy processing identifier, the target policy can be configured based on the first policy maintenance processing strategy, according to the processing rules and configuration data corresponding to the target cached policy processing identifier. However, when the cached information does not include a target cached policy processing identifier corresponding to the policy processing identifier, the target policy needs to be processed through the second policy maintenance processing strategy to complete the configuration of the target policy.
[0051] In some embodiments, the step of determining the configuration information to be configured for the target policy based on the second policy maintenance processing strategy and the policy maintenance request, and then configuring the target policy based on the configuration information to be configured, includes: obtaining policy relationship factors and / or policy relationship configuration information from the policy maintenance request; determining the configuration information to be configured for the target policy based on the configuration information association rules and the policy relationship factors and / or the policy relationship configuration information, so as to complete the configuration of the target policy based on the configuration information to be configured.
[0052] For example, after determining the second preservation processing strategy, the configuration information of the target policy is determined according to the preservation request, so as to complete the configuration of the target policy according to the configuration information.
[0053] In the specific implementation process, policy relationship factors and / or policy relationship configuration information are determined from the policy maintenance request. Based on the configuration information association rules, the configuration information to be configured for the target policy is determined through the policy relationship factors and / or policy relationship configuration information, thereby completing the configuration of the target policy through the configuration information to be configured.
[0054] For example, if the target policy can be configured based on its identifier and cache information, there's no need to execute the specific configuration actions in the policy maintenance request. However, if the target policy cannot be configured based on its identifier and cache information, the configuration is completed using the policy maintenance relationship factors and / or policy relationship configuration information in the policy maintenance request, thus ensuring the normal policy configuration process. Specifically, policy relationship factors include, but are not limited to, policy number, product number, and customer number, used to determine the configuration information association rules. The configuration information includes, but is not limited to, policy status, relationship type, and policy maintenance code. It should be noted that the configuration information determines the policy maintenance association acceptance rule filtering; that is, when there are multiple levels of policy association, further recursive judgment is needed to determine whether a policy association acceptance task needs to be created, thereby achieving full-process policy management.
[0055] In other implementations, the preservation request obtained in step S101 only includes relational factors, so that if the cached information contains a target cached policy processing identifier, the target cached policy processing information corresponding to the target cached policy processing identifier and relational factors can also be used to configure the target policy; if the cached information does not contain a target cached policy processing identifier, and it is determined that the second preservation processing strategy will be used, the corresponding configuration information can be obtained again to complete the configuration of the target policy according to the currently obtained configuration information, thereby improving the processing efficiency of the policy.
[0056] In some embodiments, the method further includes: generating a cached policy processing identifier and corresponding cached policy processing information based on the target policy that has been configured, and updating the cache information based on the cached policy processing identifier and the cached policy processing information.
[0057] For example, after the configuration of the target policy is completed, the corresponding policy processing identifier and policy processing information are generated according to the configuration process and updated to the cache information, so as to serve as the cached policy processing identifier and cached policy processing information in the cache information, so that the next policy can be configured according to the updated cache information, thus ensuring the timeliness of the cache information.
[0058] In the specific implementation process, the configuration process includes, but is not limited to, adding and deleting data, modifying data, and data processing steps, so that when the next policy executes the maintenance request processing of the target policy, the result can be returned directly based on the cached information, thereby improving the efficiency of policy configuration.
[0059] The policy configuration method provided in the above embodiments determines the target processing thread for handling the maintenance request in response to the maintenance request of the target policy; based on the target processing thread, a policy processing identifier is determined according to the thread information of the target processing thread and the maintenance request; cached information is obtained to determine the maintenance processing strategy of the target policy according to the cached information and the policy processing identifier; and maintenance processing is performed on the target policy according to the maintenance processing strategy, thereby completing the configuration of the target policy. By obtaining the policy processing identifier through thread information and the maintenance request, and by determining the maintenance processing strategy through the obtained cached information and the policy processing identifier, the policy configuration is completed. When the cached information includes the relevant information, no subsequent information processing is required, improving the efficiency of policy configuration. Furthermore, the policy configuration is adaptable to various business scenarios, thereby reducing the configuration and policy maintenance costs.
[0060] Please see Figure 3 , Figure 3 This is a schematic diagram of a policy configuration device provided in an embodiment of this application. The policy configuration device can be applied to a terminal or server to execute the aforementioned policy configuration method.
[0061] like Figure 3 As shown, the policy configuration device 100 includes: a thread determination module 110, an identifier generation module 120, a policy maintenance strategy determination module 130, and a policy maintenance module 140.
[0062] The thread determination module 110 is used to determine the target processing thread for processing the preservation request in response to the preservation request of the target policy. The identifier generation module 120 is used to determine the policy processing identifier based on the target processing thread, according to the thread information of the target processing thread and the maintenance request. The policy maintenance strategy determination module 130 is used to obtain cached information and determine the policy maintenance strategy of the target policy based on the cached information and the policy processing identifier. The policy maintenance processing module 140 is used to perform policy maintenance processing on the target policy according to the policy maintenance processing strategy, so as to complete the configuration of the target policy.
[0063] For example, the preservation processing strategy determination module 130 includes a preservation processing strategy judgment submodule and a preservation processing strategy selection submodule.
[0064] The policy maintenance strategy judgment submodule is used to determine whether there is a target cached policy processing identifier information in the cached information that has a similarity greater than or equal to a preset information similarity threshold with the policy processing identifier.
[0065] The policy maintenance strategy selection submodule is used to determine the policy maintenance strategy of the target policy as the first policy maintenance strategy if the target cached policy processing identifier exists; and to determine the policy maintenance strategy of the target policy as the second policy maintenance strategy if the target cached policy processing identifier does not exist.
[0066] For example, the security processing module 140 includes a first security processing submodule and a second security processing submodule.
[0067] The first policy maintenance processing submodule is used to return the target cached policy processing information corresponding to the target cached policy processing identifier based on the first policy maintenance processing strategy, and to complete the configuration of the target policy according to the target cached policy processing information.
[0068] The second policy maintenance processing submodule is used to determine the configuration information of the target policy based on the second policy maintenance processing strategy and the policy maintenance request, and to complete the configuration of the target policy based on the configuration information.
[0069] For example, the second policy maintenance processing submodule is further configured to obtain policy relationship factors and / or policy relationship configuration information from the policy maintenance request; based on the configuration information association rules, determine the configuration information to be configured for the target policy according to the policy relationship factors and / or the policy relationship configuration information, so as to complete the configuration of the target policy according to the configuration information to be configured.
[0070] For example, the policy configuration device 100 also includes a policy freezing module and a frozen policy output module.
[0071] The policy freezing module freezes the target policy to obtain the target frozen policy.
[0072] The frozen policy output module outputs the target frozen policy when it obtains the query information of the target policy.
[0073] For example, the policy configuration device 100 also includes a policy replacement module and a policy output module.
[0074] The policy replacement module is used to replace the target frozen policy with the configured target policy after the configuration process of the target policy is completed. The policy output module is used to output the configured target policy when the query information of the target policy is obtained.
[0075] For example, the policy configuration device 100 also includes a cache information update module.
[0076] The cache information update module is used to generate a cached policy processing identifier and corresponding cached policy processing information based on the target policy that has been configured, and to update the cache information based on the cached policy processing identifier and the cached policy processing information.
[0077] Please see Figure 4 , Figure 4 This is a schematic block diagram illustrating the structure of a computer device provided in an embodiment of this application. The computer device may be a server or a terminal.
[0078] like Figure 4 As shown, the computer device includes a processor, memory, and network interface connected via a system bus, wherein the memory may include non-volatile storage media and internal memory.
[0079] Non-volatile storage media can store operating systems and computer programs. These computer programs include program instructions that, when executed, cause the processor to perform any policy configuration method.
[0080] The processor provides computing and control capabilities, supporting the operation of the entire computer device.
[0081] Internal memory provides an environment for the execution of computer programs in non-volatile storage media, which, when executed by a processor, enable the processor to perform any policy configuration method.
[0082] This network interface is used for network communication, such as sending assigned tasks. Those skilled in the art will understand that... Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0083] It should be understood that the processor can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among these, a general-purpose processor can be a microprocessor or any conventional processor.
[0084] In one embodiment, the processor is configured to run a computer program stored in memory to perform the following steps: In response to a preservation request for the target policy, a target processing thread is determined for handling the preservation request; Based on the target processing thread, the policy processing identifier is determined according to the thread information of the target processing thread and the maintenance request; Obtain cached information and determine the protection processing strategy for the target policy based on the cached information and the policy processing identifier; The target policy is protected according to the protection processing strategy to complete the configuration of the target policy.
[0085] In one embodiment, when the processor determines the protection processing strategy for the target policy based on the cached information and the policy processing identifier, it is configured to: Determine whether there exists a target cached policy processing identifier in the cached information that has a similarity greater than or equal to a preset information similarity threshold with the policy processing identifier; If the target cached policy processing identifier exists, then the protection processing strategy for the target policy is determined to be the first protection processing strategy. If the target cached policy processing identifier does not exist, the protection processing strategy for the target policy is determined to be the second protection processing strategy.
[0086] In one embodiment, when the processor performs preservation processing on the target policy according to the preservation processing strategy, it is configured to: Based on the first policy maintenance strategy, the target cached policy processing information corresponding to the target cached policy processing identifier is returned, and the configuration of the target policy is completed according to the target cached policy processing information; Based on the second policy maintenance processing strategy, the configuration information of the target policy is determined according to the policy maintenance request, and the configuration of the target policy is completed according to the configuration information.
[0087] In one embodiment, when the processor implements the second policy maintenance processing strategy, determines the configuration information of the target policy based on the policy maintenance request, and completes the configuration of the target policy based on the configuration information, it is configured to: Obtain policy relationship factors and / or policy relationship configuration information from the protection request; Based on the configuration information association rules, the configuration information to be configured for the target policy is determined according to the policy relationship factor and / or the policy relationship configuration information, so as to complete the configuration of the target policy according to the configuration information to be configured.
[0088] In one embodiment, after determining the policy processing identifier, the processor is further configured to: The target insurance policy is frozen to obtain the target frozen insurance policy; Upon obtaining the query information for the target policy, the target frozen policy is output.
[0089] In one embodiment, the processor, when implementing the policy configuration method, is also configured to implement: After completing the configuration process for the target policy, the configured target policy replaces the target frozen policy. Upon obtaining the query information for the target policy, the configured target policy is output.
[0090] In one embodiment, the processor, when implementing the policy configuration method, is also configured to implement: Generate a cached policy processing identifier and corresponding cached policy processing information based on the target policy that has been configured, and update the cached information based on the cached policy processing identifier and the cached policy processing information.
[0091] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, and the method implemented when the program instructions are executed can be referred to various embodiments of the policy configuration method of this application.
[0092] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiments, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, SmartMedia Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the computer device.
[0093] It should be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0094] It should also be understood that the term "and / or" as used in this specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes such combinations. It should be noted that, herein, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0095] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. The above descriptions are merely specific implementations of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for configuring an insurance policy, characterized in that, The method comprises the following steps: in response to a preservation request of a target policy, determining a target processing thread for processing the preservation request; based on the target processing thread, determining a policy processing identifier according to thread information of the target processing thread and the preservation request; obtaining cache information, and determining a preservation processing strategy of the target policy according to the cache information and the policy processing identifier; performing preservation processing on the target policy according to the preservation processing strategy to complete the configuration of the target policy.
2. The method of claim 1, wherein, The method comprises the following steps: determining whether there is a target cache policy processing identifier with a similarity greater than or equal to a preset information similarity threshold in the cache information; if the target cache policy processing identifier exists, determining the preservation processing strategy of the target policy as a first preservation processing strategy; if the target cache policy processing identifier does not exist, determining the preservation processing strategy of the target policy as a second preservation processing strategy.
3. The method of claim 2, wherein, The method comprises the following steps: based on the first preservation processing strategy, returning target cache policy processing information corresponding to the target cache policy processing identifier, and completing the configuration of the target policy according to the target cache policy processing information; based on the second preservation processing strategy, determining to-be-configured information of the target policy according to the preservation request, and completing the configuration of the target policy according to the to-be-configured information.
4. The method of claim 3, wherein, The method comprises the following steps: obtaining policy relationship factors and / or policy relationship configuration information from the preservation request; based on a configuration information association rule, determining the to-be-configured information of the target policy according to the policy relationship factors and / or the policy relationship configuration information, so as to complete the configuration of the target policy according to the to-be-configured information.
5. The method of claim 1-4, wherein, After determining the policy processing identifier information, the method further comprises the following steps: performing freezing processing on the target policy to obtain a target frozen policy; when obtaining query information of the target policy, outputting the target frozen policy.
6. The method of claim 5, wherein the policy configuration method is characterized by, The method further comprises the following steps: after completing the configuration processing of the target policy, replacing the target frozen policy with the target policy after completing the configuration; when obtaining the query information of the target policy, outputting the target policy after completing the configuration.
7. The method of claim 1, wherein the policy configuration is performed by a policy server. The method further comprises the following steps: generating a cache policy processing identifier and corresponding cache policy processing information according to the target policy after completing the configuration, and updating the cache information according to the cache policy processing identifier and the cache policy processing information.
8. A policy configuration apparatus characterized by comprising: The policy configuration device comprises: a thread determination module configured to determine a target processing thread for processing a preservation request of a target policy in response to the preservation request; an identifier generation module configured to determine a policy processing identifier according to thread information of the target processing thread and the preservation request based on the target processing thread; The security processing policy determination module is configured to acquire cache information, and determine a security processing policy of the target insurance policy according to the cache information and the insurance processing identifier; The security processing module is configured to perform security processing on the target insurance policy according to the security processing policy, so as to complete the configuration of the target insurance policy.
9. A computer device, comprising: The computer device comprises a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the insurance policy configuration method in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, wherein when the computer program is executed by the processor, the steps of the insurance policy configuration method in any one of claims 1 to 7 are implemented.