Automatic rollback and compensation method and device for service fulfillment process, equipment and storage medium

By adopting the design and operation separation mode during the business orchestration process, designing the causes and compensation strategies for abnormalities, and realizing automatic rollback and compensation of the business activation process, solving the problems of low efficiency and insufficient accuracy of manual abnormalities in the existing technology, and improving processing efficiency and service consistency.

CN119645594APending Publication Date: 2025-03-18CHINA TELECOM DIGITAL INTELLIGENCE TECH CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202411701730.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

When there is an error in the execution of the existing technology during business orchestration, data differences need to be manually verified and corrected, resulting in low efficiency, high cost, poor consistency, insufficient accuracy, and data security risks.

Method used

Using the design and operation separation mode, through the design-state design cause, compensation API and policy binding, the running-state completes exception capture and automatic compensation or fallback, realizing automatic rollback and compensation of the business activation process.

Benefits of technology

It reduces manual intervention, improves problem solving speed, improves processing efficiency, ensures service consistency, enhances customer satisfaction, and promotes continuous improvement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645594A_ABST
    Figure CN119645594A_ABST
Patent Text Reader

Abstract

The invention provides an automatic rollback and compensation method and device for a service fulfillment process, equipment and a storage medium, and relates to the technical field of service orchestration. The method comprises the following steps: collecting abnormal reasons in a service fulfillment process, and constructing an abnormal feature set; designing a corresponding compensation strategy and / or rollback strategy based on the abnormal feature set; if the opening of the current service is abnormal, obtaining an execution abnormal result, analyzing a current abnormal feature in the execution abnormal result, comparing the current abnormal feature with the abnormal feature set, and performing matching to obtain a corresponding compensation strategy and / or a rollback strategy; and executing automatic rollback or compensation according to the matched current compensation strategy and / or rollback strategy. According to the method, automatic rollback and compensation operation of anomalies caused by data inconsistency is realized. According to the method, compensation or rollback processing is automatically carried out when abnormity occurs in the network activation process due to inaccurate data or inconsistent front-end and rear-end data and the like, so that the intelligent level of abnormity processing is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of service orchestration, and in particular to a service activation process automatic rollback and compensation method, device, equipment and storage medium. Background Art

[0002] With the vigorous development of advanced technologies such as computers and networks, operators' services are becoming more and more diversified. With the development of 5G and cloud network services, the traditional manual processing of business orchestration and process execution exceptions can no longer meet the needs of rapid response and service continuity in business activation.

[0003] Business orchestration is the core system of the OSS domain and an important part of the new generation cloud network operation system. It mainly manages and controls the process of receiving, converting and opening business orders of BSS customers. Business orchestration is the process of coordinating and managing the interactions between multiple systems, services or applications in a complex business process to ensure that the entire business process can proceed smoothly according to the predetermined order and rules. Business orchestration usually involves multiple steps, participants and cross-system data exchange, and its purpose is to improve the efficiency, reliability and flexibility of business processes.

[0004] As a bottom-level support platform, the ultimate goal of the process engine (BWP) is to support and provide process processing development. It mainly includes three modules: process loading, process execution and data synchronization. There are three main JAVA process engines on the market: jBPM, Activiti and SWF. At present, in order to improve the performance of the process engine, the cache part is introduced to load the configuration data into the cache. The process execution will only be performed and instantiated in the cache, thereby improving the performance of the process engine.

[0005] Data strategy is a set of rules, processes, and standards for managing and using data resources. An effective data strategy can help ensure the quality, security, compliance, and value of data.

[0006] In the prior art, when business orchestration is executed, execution errors often occur. The traditional processing method is usually to manually verify the data differences and correct the data according to the execution results of the links, and then perform corresponding processing. Figure 1 For example, if the exception is caused by a resource data problem, you can manually roll back to the resource system to re-acquire the resource data and then re-activate the configuration. This processing method usually has the following disadvantages or unreasonable aspects:

[0007] Low efficiency: When a work order process is executed abnormally, it is necessary to wait for relevant personnel to intervene and handle it, which increases the execution time of the work order. At the same time, the processing personnel need to spend a lot of time to check and correct the work order data, resulting in low work order processing efficiency.

[0008] High cost: Training and setting up special seats are required to monitor and handle stuck order problems caused by abnormal process execution, which increases labor costs.

[0009] Poor consistency: Different people may process the same anomaly in different ways, resulting in inconsistent results. Even the same person may make different decisions at different times due to memory bias or distraction.

[0010] Lack of accuracy: Manual handling of exceptions often results in subjective judgments based on the experience of the handlers, and lacks standardized handling solutions. Exception handling often requires rework, meaning that exceptions occur again after being handled, and the accuracy of exception handling is insufficient.

[0011] Data security risks: Manual processing may not provide sufficient record support for work order processing records and processes, leading to the risk of data loss. At the same time, manual processing may involve the manual transmission of sensitive information, increasing the risk of data leakage.

[0012] It can be seen that the existing exception handling method can no longer well support the needs of intelligent, diverse and efficient operation and maintenance management and business activation. Summary of the invention

[0013] Purpose of the invention: To propose a method, device, equipment and storage medium for automatic rollback and compensation of a service activation process, which is suitable for a business orchestration mode and adopts a design and operation separation mode. First, the design of the cause of the exception, compensation API, policy binding and other related contents are completed through the design state design, and then the operation state completes the exception capture and automatic compensation or rollback of the exception, thereby effectively solving the above-mentioned problems existing in the prior art.

[0014] A first aspect of the present invention provides a method for automatic rollback and compensation of a service activation process, comprising the following steps:

[0015] Collecting abnormal reasons in the service activation process, extracting key features from the abnormal reasons, and constructing an abnormal feature set;

[0016] Based on the abnormal feature set, design a corresponding compensation strategy and / or rollback strategy;

[0017] When a new service activation request is received, the service activation process is started according to the pre-designed service orchestration rules;

[0018] If the current service activation is abnormal, obtain the execution abnormal result, analyze the current abnormal feature in the execution abnormal result, compare the current abnormal feature with the abnormal feature set, and match to obtain the corresponding compensation strategy and / or rollback strategy;

[0019] Automatic rollback or compensation is performed according to the matched current compensation strategy and / or rollback strategy.

[0020] In a further embodiment of the first aspect, key features are extracted from the abnormal cause, including abnormal code, abnormal content, and cause of the abnormality;

[0021] The exception code, exception content, and the cause of the exception are constructed into an exception feature set in a matrix form.

[0022] In a further embodiment of the first aspect, for errors caused by data differences, the transaction required to handle the exception is designed as an independent compensation API, and the compensation API interface is directly called subsequently.

[0023] In a further embodiment of the first aspect, the compensation strategy and / or rollback strategy is placed in a cache, and when the compensation API is executed, the compensation strategy and / or rollback strategy corresponding to the compensation API is read from the cache.

[0024] In a further embodiment of the first aspect, when the rollback strategy is executed, the process is rolled back to the resource configuration stage to reacquire resources and then retrace the service activation process.

[0025] In a further embodiment of the first aspect, when automatic compensation is performed, the startup and execution of the compensation API is initiated, and after the execution is completed, the orchestration data and cache are updated.

[0026] In a further embodiment of the first aspect, automatic rollback and compensation are performed once by default. If the same error still occurs after the policy processing is completed, it will be transferred to manual processing and wait for manual intervention.

[0027] The second aspect of the present invention proposes an automatic business rollback and compensation device, which includes an abnormal cause design module; a compensation API design module; a process execution module; an execution result judgment module; and a process rollback / execution compensation API module.

[0028] The abnormal cause design module is used to collect abnormal causes in the service activation process, extract key features from the abnormal causes, and construct an abnormal feature set;

[0029] The compensation API design module designs a corresponding compensation strategy and / or rollback strategy based on the abnormal feature set;

[0030] The process execution module is used to start the service activation process according to the pre-designed service arrangement rules when receiving a new service activation request;

[0031] The execution result judgment module is used to monitor the service activation process in real time. If the current service activation is abnormal, the execution abnormal result is obtained, and the current abnormal feature in the execution abnormal result is analyzed, and the current abnormal feature is compared with the abnormal feature set to match and obtain the corresponding compensation strategy and / or rollback strategy;

[0032] The process rollback / execution compensation API module performs automatic rollback or compensation according to the matched current compensation strategy and / or rollback strategy.

[0033] According to a third aspect of the present invention, an electronic device is provided, comprising a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the automatic rollback and compensation method for the service activation process as described in the first aspect is implemented.

[0034] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, which stores at least one executable instruction. When the executable instruction is executed on an electronic device, the electronic device executes the automatic rollback and compensation method for the service activation process as described in the first aspect.

[0035] Compared with the prior art, the present invention has at least the following beneficial effects:

[0036] Reduced manual intervention: Automated processing reduces the need for manual intervention, which means employees can focus more time and energy on more complex tasks rather than routine troubleshooting.

[0037] Speed ​​up problem resolution: Automatic system processing is usually faster than manual processing, and the processing mechanism responds and takes action immediately around the clock without waiting for manual verification and processing.

[0038] Improve efficiency: Automatic processing can reduce repetitive work, improve the overall efficiency of abnormal work order processing, and ensure smooth workflow.

[0039] Ensure service consistency: Automatic processing through real-time data acquisition and matching ensures a consistent approach when handling the same type of issues, which helps improve service quality and consistency. At the same time, automation reduces errors caused by human factors (such as negligence or misunderstanding) because the system performs tasks according to established rules, reducing the chance of errors.

[0040] Enhanced customer satisfaction: When exceptions in ticket processing are resolved quickly, customers’ waiting time is reduced and service responses are faster, thereby improving customer satisfaction.

[0041] Promote continuous improvement: By analyzing automatically processed data, common anomaly patterns can be discovered, allowing workflows and system settings to be optimized to further reduce future anomalies. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 This is the exception handling process in the prior art.

[0043] Figure 2 This is an overall architecture diagram of an automatic rollback and compensation method driven by real-time data strategy in Embodiment 1 of the present invention.

[0044] Figure 3 It is a schematic diagram of API execution in the first embodiment of the present invention.

[0045] Figure 4 This is a prototype diagram of the abnormal cause configuration page in the first embodiment of the present invention.

[0046] Figure 5 It is a schematic diagram of the abnormal compensation design in the first embodiment of the present invention.

[0047] Figure 6 This is a prototype diagram of adding a compensation strategy in the first embodiment of the present invention.

[0048] Figure 7 This is a prototype diagram of adding an exception handling strategy in Example 1 of the present invention.

[0049] Figure 8 This is a schematic diagram of the policy cache in the first embodiment of the present invention.

[0050] Fig. 9 It is a schematic diagram of the running state execution in the first embodiment of the present invention.

[0051] Fig.10 It is a schematic diagram of the service activation process in the scenario of Embodiment 2 of the present invention.

[0052] Fig.11 It is a schematic diagram of the design cause of the design state abnormality in the second embodiment of the present invention.

[0053] Fig.12 It is a schematic diagram of the design of the exception handling strategy in the second embodiment of the present invention.

[0054] Fig.13 It is a schematic diagram of policy decision and automatic rollback execution based on real-time data in the second embodiment of the present invention.

[0055] Fig.14 It is a schematic diagram of the service activation process of the scenario in the third embodiment of the present invention.

[0056] Fig.15 It is a schematic diagram of the design cause of the design state abnormality in the third embodiment of the present invention.

[0057] Fig.16 It is a schematic diagram of the compensation strategy design in the third embodiment of the present invention.

[0058] Fig.17 It is a schematic diagram of strategy decision and automatic compensation execution based on real-time data in the third embodiment of the present invention. DETAILED DESCRIPTION

[0059] In the following description, a large number of specific details are provided to provide a more thorough understanding of the present invention. However, it is apparent to those skilled in the art that the present invention can be implemented without one or more of these details. In other examples, in order to avoid confusion with the present invention, some technical features known in the art are not described.

[0060] Embodiment 1

[0061] like Figure 2 As shown, this embodiment provides a technical solution: an automatic rollback and compensation method driven by real-time data strategy. The technical solution generally uses the design and operation separation mode to complete the design of abnormal causes, compensation APIs and strategies, and to complete the abnormal result matching and strategy execution. Figure 2 middle:

[0062] Design state: exception cause design, compensation API design, strategy design.

[0063] Running state: real-time API execution result acquisition, policy decision-making, and compensation API execution.

[0064] Process engine: process execution control, process rollback, and link scheduling.

[0065] like Figure 3 As shown in the figure, API is a transaction. Various exceptions may occur during the transaction processing. When an API executes an exception, an exception code and exception description will be returned. The orchestration needs to design the exception code and exception name into the system, such as Figure 4 The prototype page is shown:

[0066] like Figure 5 As shown, after designing the cause of the exception, it is necessary to design the means to handle the exception. If rollback is required, there is no need to design a compensation API because the process engine has the relevant interface capabilities. If other data operations are required, it is necessary to encapsulate the processing means into a compensation API in advance according to the standard processing method after the exception occurs. If the API capability library already has the corresponding compensation API, there is no need to redesign it. If the API capability library does not have the corresponding compensation API, it needs to be redesigned. The design content includes the call address, protocol, format and parameters.

[0067] like Figure 6As shown in the prototype, after designing the compensation API, you need to design a strategy for the API. You can add a compensation mechanism on the API strategy configuration button, select the exception cause and compensation API, and then you can complete the binding of the exception compensation strategy and API. That is, when the API fails to execute and the error is the specified reason, the compensation API will be executed.

[0068] like Figure 7 As shown in the prototype, you can add an exception handling strategy on the API policy configuration button, select the exception cause and processing action, and the processing action includes rollback, so that the binding of the exception rollback strategy and the API can be completed. That is, when the API execution fails and the error is the specified reason, the process will be rolled back.

[0069] When the compensation / rollback strategy design is completed online in the design state, the relevant design content will be loaded into the API cache, including the cause of the exception, the exception handling action, and the compensation API information, such as Figure 8 shown.

[0070] like Fig. 9 As shown, when the running state receives a service activation request, the process engine will start the corresponding business process and execute the API in the process. During the work order execution, the business orchestration will monitor the execution status of the API in real time. When the API execution is abnormal, the running state will obtain the execution result of the API in real time. The execution result includes the error code and error description, and then make a policy decision, that is, use the error code and API policy information for matching and verification to complete the implementation of the policy. Then, according to the policy information, the process is rolled back or the compensation API is executed.

[0071] Embodiment 2

[0072] In this embodiment, taking a user's new home broadband service as an example, an automatic rollback process driven by real-time data policy is described.

[0073] Scenario description: After a user has applied for a new broadband service at a business hall, the front desk business system will send the customer order received by the user to the business orchestration system, which will start the service activation process. Fig.10 , where the resource configuration API completes the physical and logical resource allocation for the entire broadband activation, and is the basis for broadband service activation. When a user reports an error message "command parameter missing, LOID does not exist" when executing the "pon network management loid registration API", the reason is that the resource configuration link does not return the loid information required for the API execution. In this case, the process needs to be rolled back to the resource configuration link to reallocate the loid, and then restart the broadband service activation process.

[0074] 1. Complete the configuration of the abnormal cause in the design center, such as Fig.11 shown.

[0075] 2. Complete the configuration of exception handling strategy in the design center, such as Fig.12 Note: Because rollback is a capability of the process engine, there is no need to design a compensation API for this scenario.

[0076] Exception reason: 401; Action: Rollback.

[0077] 3. When the broadband service is activated, if the error "command parameter missing, LOID does not exist" appears when the "pon network management loid registration API" is executed, the orchestration will call the rollback interface of the process engine to roll back the process and the links within the process until the process is rolled back to the beginning link, such as Fig.13 shown.

[0078] 4. After the process rollback is completed, the orchestration will re-execute the entire process to complete the activation of the entire broadband service.

[0079] Embodiment 3

[0080] In this embodiment, taking a user applying for a broadband mobile phone relocation service as an example, automatic compensation driven by real-time data policy is described.

[0081] Scenario description: After a user has applied for a broadband relocation service at a business hall, the front desk business system will send the customer order received by the user to the business orchestration system, which will start the service activation process. Fig.14 As shown, the resource configuration API completes the physical and logical resource allocation for the entire broadband relocation and installation, and is the basis for broadband service relocation. When the user reports the error "LOID already exists" when executing the "pon network management loid registration API", the reason is that there is garbage data on the network element of the equipment to be relocated, so the garbage data needs to be removed and then reactivated.

[0082] 1. Complete the configuration of the abnormal cause in the design center, such as Fig.15 shown.

[0083] 2. Complete the design of compensation API in the design center. Compensation API: pon network manager loid deletes the API. The API already exists in the API library and there is no need to redesign the compensation API.

[0084] 3. Complete the configuration of compensation strategy in the design center, such as Fig.16 Exception reason: 402; Action: Rollback.

[0085] 4. When the broadband service is relocated, if the error "LOID already exists" appears when the "pon network management loid registration API" is executed, the service orchestration drives the execution of the compensation API (pon network management loid deletion API), such as Fig.17 Note: Although this compensation API is consistent with the "pon network management loid deletion API" in the process of moving and dismantling, the devices operated by moving and dismantling are different from those operated by moving and installing. Therefore, it is necessary to execute the compensation API again to remove the LOID on the device of moving and installing.

[0086] 5. After the compensation API is executed, the orchestration will re-execute the API to complete the automatic compensation of the exception.

[0087] Finally, through the execution of exception handling strategies or compensation strategies, the pain points of the current model, which requires manual real-time monitoring of work order execution, manual intervention in exceptions, and manual verification of data, are solved, and automatic handling of exceptions is achieved. At the same time, through strategy-driven and automatic processing based on real-time execution data, the efficiency and accuracy of card order processing are greatly improved.

[0088] To sum up, the automatic rollback and compensation method driven by real-time data strategy in the above embodiment only needs to configure the exception cause and strategy on the page to take effect, which is easy to operate and simple to configure; on the API strategy configuration page, you can view, modify, bind, unbind, delete and other one-click operations. If you need to modify, you can directly modify the strategy and it will take effect in real time. It is convenient, fast, simple and easy to understand to maintain; strategy execution is based on real-time data of work orders, runs accurately and efficiently, and is worthy of promotion and use.

[0089] In actual application, the automatic rollback and compensation method for the service activation process disclosed in the above embodiment can compile its operation logic into a set of executable instructions, which are written into a storage medium and run on an electronic device.

[0090] More specific examples of the computer-readable storage medium mentioned in this embodiment may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. The computer-readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device.

[0091] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification. Although the present invention has been represented and described with reference to specific preferred embodiments, it shall not be interpreted as a limitation of the present invention itself. Various changes can be made to it in form and detail without departing from the spirit and scope of the present invention defined in the attached claims.

Claims

1. A method for automatic rollback and compensation of a service activation process, characterized in that: include: Collecting abnormal reasons in the service activation process, extracting key features from the abnormal reasons, and constructing an abnormal feature set; Based on the abnormal feature set, design a corresponding compensation strategy and / or rollback strategy; When a new service activation request is received, the service activation process is started according to the pre-designed service orchestration rules; If the current service activation is abnormal, obtain the execution abnormal result, analyze the current abnormal feature in the execution abnormal result, compare the current abnormal feature with the abnormal feature set, and match to obtain the corresponding compensation strategy and / or rollback strategy; Automatic rollback or compensation is performed according to the matched current compensation strategy and / or rollback strategy.

2. A method for automatic rollback and compensation of a service activation process according to claim 1, characterized in that: Extract key features from the abnormal cause, including abnormal code, abnormal content, and cause of the abnormality; The exception code, exception content, and the cause of the exception are constructed into an exception feature set in a matrix form.

3. The method for automatic rollback and compensation of a service activation process according to claim 1, characterized in that: For errors caused by data differences, the transactions required to handle the exceptions are designed as independent compensation APIs, and the compensation API interface is called directly later.

4. The method for automatic rollback and compensation of a service activation process according to claim 1, characterized in that: The compensation strategy and / or rollback strategy is placed in a cache, and when a compensation API is executed, the compensation strategy and / or rollback strategy corresponding to the compensation API is read from the cache.

5. A method for automatic rollback and compensation of a service activation process according to claim 4, characterized in that: When executing the rollback strategy, the process is rolled back to the resource configuration stage to reacquire resources and then go through the service activation process again.

6. A method for automatic rollback and compensation of a service activation process according to claim 4, characterized in that: When automatic compensation is performed, the compensation API is started and executed, and the orchestration data and cache are updated after the execution is completed.

7. A method for automatic rollback and compensation of a service activation process according to claim 5 or 6, characterized in that: Automatic rollback and compensation are executed once by default. If the same error still occurs after the policy processing is completed, it will be transferred to manual waiting for manual intervention.

8. A service automatic rollback and compensation device, characterized in that: include: Abnormal cause design module; the abnormal cause design module is used to collect abnormal causes in the service activation process, extract key features from the abnormal causes, and construct an abnormal feature set; Compensation API design module; The compensation API design module designs a corresponding compensation strategy and / or rollback strategy based on the abnormal feature set; Process execution module; The process execution module is used to start the service activation process according to the pre-designed service arrangement rules when receiving a new service activation request; Execution result judgment module; The execution result judgment module is used to monitor the service activation process in real time. If the current service activation is abnormal, the execution abnormal result is obtained, and the current abnormal feature in the execution abnormal result is analyzed, and the current abnormal feature is compared with the abnormal feature set to match and obtain the corresponding compensation strategy and / or rollback strategy; Process rollback / execution compensation API module: The process rollback / execution compensation API module performs automatic rollback or compensation according to the matched current compensation strategy and / or rollback strategy.

9. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the method for automatic rollback and compensation of the service activation process according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The storage medium stores at least one executable instruction. When the executable instruction is executed on the electronic device, the electronic device executes the automatic rollback and compensation method for the service activation process according to any one of claims 1 to 7.

Citation Information

Cited By

  • Rule-based automatic arrangement implementation method

    CN121486182A

  • Data automatic compensation and rollback method and device based on real-time data bin, and electronic equipment

    CN121919289A

  • Distributed transaction compensation method and system based on compensation feasibility matrix

    CN122633473A

  • Distributed transaction compensation method and system based on compensation feasibility matrix

    CN122633473B