Acceptance process dynamic adjustment system, method, electronic device, storage medium and program product
By introducing a dynamic adjustment system for acceptance process on the cloud service platform, dynamically obtaining and configuring acceptance process control parameters, responsibility chain and status plug-ins, the difficulties of the cloud service platform in adapting to specific acceptance processes of different products are solved, and rapid adaptation, reduced manpower investment and faster user experience are achieved.
Patent Information
- Application Number
- CN202411776806.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-04-04
AI Technical Summary
The existing cloud service platform has difficulties in quickly adapting to the acceptance process specific to different products, and the complexity of the acceptance process status and multiple factors have led to large human investment, making it difficult to achieve dynamic adjustment and maintenance.
It provides a dynamic adjustment system for acceptance process, including a responsibility chain update execution module and a responsibility chain configuration update module. By receiving acceptance requests, it dynamically obtains and configures acceptance process control parameters, responsibility chain and status plug-ins to realize dynamic adjustment of the responsibility chain responsibility nodes and sequence.
It has achieved rapid adaptation to the specific acceptance process of different products, reduced manpower investment, dynamically adjusted and maintained existing acceptance process, and provided a faster and better user experience.
Smart Images

Figure CN119759405A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of cloud service technology, and in particular to a system, method, electronic device, storage medium and program product for dynamically adjusting an acceptance process. Background Art
[0002] With the rapid development of the cloud service field, the product R&D capabilities of the cloud service platform are constantly improving, bringing about explosive growth in new products. However, different cloud service products have different requirements for the acceptance process, and whether the specific acceptance process of different products can be quickly adapted has become a key issue. At present, the launch of each new product requires a lot of manpower to customize the acceptance process. In addition, due to the complexity of the acceptance process status, customer sources, data rule verification, activation methods, payment methods, approval rules and other factors that affect the acceptance process, how to meet the specific acceptance process for different products faster, how to invest less manpower, how to dynamically adjust the existing acceptance process, how to better maintain the existing acceptance process and visualization, and bring faster and better user experience have also become key issues.
[0003] There are many types of workflow engine frameworks in the current market, such as jActiviti, JBPM, OSWorkFlow, Flowable, etc. These products often have complex system functions and many external dependencies. They require additional learning and use when integrated with application systems, and cannot fully adapt to cloud platform acceptance scenarios. Summary of the invention
[0004] Embodiments of the present invention provide a system, method, electronic device, storage medium and program product for dynamically adjusting acceptance flow to at least partially solve the above problems.
[0005] A first aspect of an embodiment of the present invention provides a system for dynamically adjusting an acceptance process, the system comprising: a responsibility chain update execution module;
[0006] The responsibility chain update execution module is used to: receive an acceptance request, determine an acceptance process identifier based on the received acceptance request, and obtain corresponding acceptance process control parameters, acceptance process responsibility chain and state plug-in from the control parameter pool, acceptance process responsibility chain pool and state plug-in pool respectively according to the acceptance process identifier; the acceptance process responsibility chain includes multiple responsibility nodes, the state plug-in is the responsibility node of the responsibility chain, and the state plug-in includes a state processor chain, which drives the corresponding state plug-in to execute the acceptance request according to the acceptance process control parameters.
[0007] Optionally, the acceptance process dynamic adjustment system further includes: a responsibility chain configuration update module;
[0008] The responsibility chain configuration update module is used to: receive a configuration request for the acceptance process responsibility chain, the state plug-in required by the acceptance process responsibility chain, the state processor, and the control parameters, and complete the configuration of the acceptance process responsibility chain, the state plug-in required by the acceptance process responsibility chain, and the control parameters based on the configuration request;
[0009] The responsibility chain update execution module is also used to: obtain the acceptance process responsibility chain, the state plug-in and control parameters required by the acceptance process responsibility chain from the responsibility chain configuration update module and save them to the acceptance process responsibility chain pool, the state plug-in pool and the control parameter pool respectively.
[0010] Optionally, the responsibility chain update execution module includes:
[0011] A first state plug-in update module is used to obtain a state plug-in and update a state plug-in pool based on a state plug-in factory;
[0012] The first acceptance process responsibility chain update module is used to obtain the acceptance process responsibility chain and update the acceptance process responsibility chain pool based on the responsibility chain factory;
[0013] A first acceptance process control parameter update module is used to obtain the acceptance process control parameters and update the control parameter pool of the acceptance process based on the control parameter factory;
[0014] An acceptance process control parameter assembly module is used to assemble acceptance process control parameters corresponding to the acceptance process identifier according to the received acceptance request;
[0015] The acceptance process responsibility chain execution module is used to drive the corresponding acceptance responsibility chain to execute the acceptance request according to the acceptance process control parameters.
[0016] Optionally, the responsibility chain configuration update module includes a configuration module and an update module; the configuration module includes: a state plug-in configuration module, an acceptance process responsibility chain configuration module and an acceptance process control parameter configuration module;
[0017] The state plug-in configuration module is used to receive a state plug-in configuration request and configure the state plug-in;
[0018] The acceptance process responsibility chain configuration module is used to receive an acceptance process responsibility chain configuration request and configure the acceptance process responsibility chain;
[0019] The acceptance process control parameter configuration module is used to receive an acceptance process control parameter configuration request and configure the acceptance process control parameters;
[0020] The update module includes: a second state plug-in update module, a second acceptance process responsibility chain update module, and a second acceptance process control parameter update module;
[0021] The second status plug-in update module is used to send a status plug-in update message;
[0022] The second acceptance process responsibility chain update module is used to send an acceptance process responsibility chain update message;
[0023] The second acceptance process control parameter updating module is used to send an acceptance process control parameter updating message.
[0024] A second aspect of an embodiment of the present invention provides a method for dynamically adjusting an acceptance process, the method comprising:
[0025] Receive acceptance requests;
[0026] Determine the acceptance process identifier according to the received acceptance request;
[0027] According to the acceptance process identifier, corresponding acceptance process control parameters, acceptance process responsibility chain and state plug-in are obtained from the control parameter pool, the acceptance process responsibility chain pool and the state plug-in pool respectively; the acceptance process responsibility chain includes multiple responsibility nodes, the state plug-in is a responsibility node of the responsibility chain, and the state plug-in includes a state processor chain;
[0028] According to the acceptance process control parameters, the corresponding status plug-in is driven to execute the acceptance request.
[0029] Optionally, the method further comprises:
[0030] Obtain status plug-in update messages, acceptance process responsibility chain update messages, and / or acceptance process control parameter update messages; perform one or more of the following:
[0031] Obtain the state plug-in according to the system identifier in the state plug-in update message, and update the state plug-in pool based on the state plug-in factory;
[0032] Obtain the acceptance process responsibility chain according to the system identifier in the acceptance process responsibility chain update message, and update the acceptance process responsibility chain pool based on the responsibility chain factory;
[0033] According to the acceptance process representation in the acceptance process responsibility chain update message, the acceptance process control parameters are obtained; based on the control parameter factory, the control parameter pool of the acceptance process is updated.
[0034] A third aspect of an embodiment of the present invention provides a method for dynamically adjusting an acceptance process, the method comprising:
[0035] Receive a status plug-in configuration request and configure the status plug-in;
[0036] Receive acceptance process responsibility chain configuration request and configure acceptance process responsibility chain;
[0037] Receive acceptance process control parameter configuration request, and configure acceptance process control parameters;
[0038] Send status plug-in update messages, acceptance process responsibility chain update messages, and acceptance process control parameter update messages.
[0039] A fourth aspect of an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when executed, the processor implements the method for dynamically adjusting the acceptance process as described in the second aspect or the third aspect of the present invention.
[0040] A fifth aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for dynamically adjusting the acceptance process as described in the second aspect or the third aspect of the present invention.
[0041] A sixth aspect of an embodiment of the present invention provides a computer program product, including a computer program / instruction, which is implemented by a processor to implement the steps in the method for dynamically adjusting the acceptance process as described in the second aspect or the third aspect of the present invention.
[0042] In the embodiment of the present invention, based on the acceptance process identifier carried in the acceptance request, the corresponding acceptance process control parameters, acceptance process responsibility chain and state plug-in are obtained from the control parameter pool, the acceptance process responsibility chain pool and the state plug-in pool, so as to drive the corresponding state plug-in to execute the acceptance request according to the acceptance process control parameters. Therefore, the acceptance process dynamic adjustment system provided by the embodiment of the present invention can dynamically adjust the responsibility nodes and the order between the responsibility chains and dynamically adjust the control parameters according to the actual needs of the acceptance request to fully adapt to the acceptance scenario corresponding to the acceptance request. Visual management and unified maintenance of the acceptance process are realized. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0044] Figure 1 It is a schematic diagram of the structure of the acceptance process dynamic adjustment system provided by an embodiment of the present invention;
[0045] Figure 2 It is a detailed structural block diagram of the acceptance process dynamic adjustment system provided by an embodiment of the present invention;
[0046] Figure 3It is a system architecture diagram of the acceptance process dynamic adjustment system provided by an embodiment of the present invention;
[0047] Figure 4 It is an exemplary ordering business acceptance process responsibility chain of the acceptance process dynamic adjustment system provided by the embodiment of the present invention;
[0048] Figure 5 is a flowchart of the steps of the method for dynamically adjusting the acceptance process provided by an embodiment of the present invention;
[0049] Figure 6 It is a flowchart of the steps of the method for dynamically adjusting the acceptance process provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0051] The business execution method based on the responsibility chain proposed by the related technology cannot dynamically adjust a certain processing method; cannot dynamically adjust the responsibility nodes of the responsibility chain and the order between them; cannot dynamically adjust the control parameters; and cannot fully adapt to the cloud platform acceptance scenario.
[0052] The technical solution proposed in the embodiment of the present invention can fully adapt to the cloud service acceptance scenario, quickly meet the specific acceptance processes of different products, realize dynamic adjustment of existing acceptance processes, better maintain and visualize existing acceptance processes, thereby bringing faster and better user experience.
[0053] Specifically, an embodiment of the present invention provides a system for dynamically adjusting acceptance procedures, such as Figure 1 As shown, the acceptance process dynamic adjustment system 100 includes: a responsibility chain update execution module 101.
[0054] The responsibility chain update execution module 101 is used to: receive an acceptance request, determine an acceptance process identifier based on the received acceptance request, and obtain corresponding acceptance process control parameters, acceptance process responsibility chain and state plug-in from the control parameter pool, acceptance process responsibility chain pool and state plug-in pool respectively according to the acceptance process identifier; the acceptance process responsibility chain includes multiple responsibility nodes, the state plug-in is the responsibility node of the responsibility chain, and the state plug-in includes a state processor chain, which drives the corresponding state plug-in to execute the acceptance request according to the acceptance process control parameters.
[0055] In the embodiment of the present invention, the responsibility chain refers to a task chain connected in series by many responsibility nodes, wherein each responsibility node is a business processing link. The state plug-in includes a state plug-in unique identifier, a system identifier, a state name, a state unique identifier, and a state processor chain. The state plug-in acts as a responsibility node in the responsibility chain.
[0056] The state processor processes the actual business logic, including the state processor unique identifier, system identifier, state processor name, state processor type, processor configuration, and the next state processor unique identifier. State processor types can be divided into parameter validators, restriction condition judgers, SQL condition judgers, interface condition judgers, state converters, adapters, interface processors, etc. New types of state processors can be added according to actual business scenarios.
[0057] The state processor chain refers to a processor chain that connects the state processors in series.
[0058] Among them, the control parameters are used to drive the responsibility chain and trigger the execution of the responsibility chain node tasks.
[0059] In the embodiment of the present invention, a responsibility chain design pattern may be adopted, and all state plug-ins are connected in series using a List, and the state processing chain in each state plug-in is also connected in series using a List.
[0060] In the embodiment of the present invention, the control parameter refers to the input or output control (shaping) of a state processor, or the input or output control (shaping) of a http request.
[0061] Specifically, in the embodiment of the present invention, the acceptance process is a chain of responsibility composed of a state plug-in. A state plug-in is actually also a chain of responsibility. The business processing logic of a certain state of the acceptance process can be abstracted into a state processor to form a state processor chain. The specific business logic of these state processors can be parameter verification, calling a certain HTTP interface to judge, calling a certain method to judge, calling a certain method to update, calling a certain HTTP interface to execute, etc.
[0062] In the embodiment of the present invention, the acceptance process identifier is used to uniquely identify an acceptance process. The acceptance process responsibility chain is a defined acceptance process, a task chain connected in series by the state plug-in, and is uniquely specified by the acceptance process identifier. The acceptance process control parameters are used to drive the execution of the acceptance process responsibility chain and trigger the execution of the state plug-in, including the acceptance process identifier, various business IDs, etc.
[0063] In the embodiment of the present invention, in the actual application scenario, the responsibility chain update execution module can be run in the business system of the cloud service platform. Specifically, for the acceptance scenario of the cloud service platform, the module can be run in the acceptance center.
[0064] In an embodiment of the present invention, in the actual application process, the responsibility chain update execution module can determine the corresponding acceptance process control parameters, acceptance process responsibility chain and status plug-in based on the received acceptance request and the acceptance process responsibility chain identifier corresponding to the acceptance request, and then obtain the acceptance process responsibility chain corresponding to the acceptance request, and then, based on the acceptance process control parameters, drive the state plug-in included in the acceptance process to execute the acceptance request.
[0065] In the embodiment of the present invention, the acceptance process dynamic adjustment system further includes: a responsibility chain configuration update module 102.
[0066] The responsibility chain configuration update module 102 is used to: receive a configuration request for the acceptance process responsibility chain, the state plug-in required by the acceptance process responsibility chain, the state processor, and the control parameters, and complete the configuration of the acceptance process responsibility chain, the state plug-in required by the acceptance process responsibility chain, and the control parameters based on the configuration request;
[0067] The responsibility chain update execution module 101 is also used to: obtain the acceptance process responsibility chain, the state plug-in and control parameters required by the acceptance process responsibility chain from the responsibility chain configuration update module and save them to the acceptance process responsibility chain pool, the state plug-in pool and the control parameter pool respectively.
[0068] In the embodiment of the present invention, in the implementation application scenario, the responsibility chain configuration update module can be run in the responsibility chain configuration system. Specifically, for the cloud service platform acceptance scenario, the module runs in the smart operation platform of the cloud platform.
[0069] In an embodiment of the present invention, the responsibility chain configuration update module can receive a configuration request to configure the acceptance process responsibility chain, the state plug-in, the state processor and the control parameters required by the acceptance process responsibility chain. Specifically, the configuration process can refer to any feasible technical means in the relevant technology.
[0070] Specifically, the following steps can be used to implement the acceptance process responsibility chain, the state plug-in required by the acceptance process responsibility chain, and the configuration of control parameters:
[0071] Step 1: Define the handler interface and abstract class. First, you need to define a handler interface for processing requests, which is the basis for building a chain of responsibility. For example, you can define an interface called Handler, which contains a method handleRequest for processing requests.
[0072] Step 2, implement multiple handlers. Next, implement multiple handler classes, each of which is responsible for handling different logic. These handler classes need to inherit an abstract handler class (such as AbstractHandler) and implement the handleRequest method. In the method, you can determine whether you can handle the request based on the specific content of the request. If you can, you can process and return; if not, you can forward the request to the next handler.
[0073] Step 3, configure the order of processors, through the configuration file (such as application.yml or application.properties) or database to configure the order of processors. In this way, the order of processors can be dynamically adjusted according to actual needs without modifying the code.
[0074] Step 4: Dynamically build the responsibility chain, dynamically build the responsibility chain according to the configuration, and provide a method for executing the request. In Spring Boot, you can use ApplicationContext to dynamically obtain the processor beans in the configuration and build the responsibility chain according to the configuration order.
[0075] Step 5: Configure the state plug-in and state processor. The state plug-in and state processor can be loaded and configured through the SPI (Service Provider Interface) mechanism. For example, in Sentinel, the required slots can be loaded through SpiLoader and added to the responsibility chain.
[0076] Step 6: Configure control parameters. The configuration of control parameters usually involves specific business logic and process control. For example, in Dubbo, you can configure a custom filter by creating a new org.apache.dubbo.rpc.Filter file in the META-INF.dubbo directory and writing the full name of the current class.
[0077] Step 7, use annotations or XML configuration. In some cases, you can use annotations or XML configuration to specify the processor in the responsibility chain. For example, in Dubbo, you can use the @Intercepts annotation to complete the plugin signature, telling MyBatis which method of which object the current plugin intercepts.
[0078] In the embodiment of the present invention, through the above steps, the state plug-in, state processor and control parameters required by the responsibility chain and process responsibility chain can be flexibly configured to adapt to different acceptance process requirements and process control requirements.
[0079] In actual applications, technical personnel can configure the acceptance process responsibility chain, the state plug-in required by the acceptance process responsibility chain, the state processor and control parameters of the acceptance process according to the actual needs of a certain acceptance process, and the responsibility chain update execution module saves the configured acceptance process responsibility chain, the state plug-in required by the acceptance process responsibility chain and the control parameters, so that when receiving the acceptance request corresponding to the acceptance request, the corresponding acceptance process responsibility chain state plug-in and acceptance process control parameters are obtained, and based on the acceptance process control parameters, the state plug-in included in the acceptance process is driven to execute the acceptance request.
[0080] For ease of understanding, the following combination Figure 2 The technical solution provided by the embodiment of the present invention is explained. Figure 2 The detailed structural block diagram of the acceptance process dynamic adjustment system provided by the embodiment of the present invention is shown.
[0081] like Figure 2 As shown, in the embodiment of the present invention, the responsibility chain update execution module 101 includes:
[0082] A first state plug-in update module is used to obtain a state plug-in and update a state plug-in pool based on a state plug-in factory;
[0083] The first acceptance process responsibility chain update module is used to obtain the acceptance process responsibility chain and update the acceptance process responsibility chain pool based on the responsibility chain factory;
[0084] A first acceptance process control parameter update module is used to obtain the acceptance process control parameters and update the control parameter pool of the acceptance process based on the control parameter factory;
[0085] An acceptance process control parameter assembly module is used to assemble acceptance process control parameters corresponding to the acceptance process identifier according to the received acceptance request;
[0086] The acceptance process responsibility chain execution module is used to drive the corresponding acceptance responsibility chain to execute the acceptance request according to the acceptance process control parameters.
[0087] Among them, the state plug-in factory is responsible for loading and initializing the state plug-in pool, dynamically refreshing the state plug-in, and realizing the purpose of dynamically adjusting a certain responsibility node in the responsibility chain. The responsibility chain factory is responsible for loading and initializing the responsibility chain pool, dynamically adjusting (adding, replacing or deleting) the responsibility nodes and the order between them in the responsibility chain, and realizing the dynamic adjustment of the acceptance process. The control parameter factory is responsible for loading and initializing the control parameter pool, and dynamically adjusting (adding, replacing or deleting) the control parameters that affect the acceptance process.
[0088] In an embodiment of the present invention, the first status plug-in update module can obtain the status plug-in according to the system identifier by periodic pulling or by consuming update messages; the first acceptance process responsibility chain update module can obtain the acceptance process responsibility chain according to the system identifier by periodic pulling or by consuming update messages; the first acceptance process control parameter update module can obtain the acceptance process control parameters according to the acceptance process identifier by periodic pulling or by consuming update messages.
[0089] In the embodiment of the present invention, the first state plug-in update module, the first acceptance process responsibility chain update module and the first acceptance process control parameter update module of the responsibility chain update execution module 101 can obtain the latest configured state plug-in, acceptance process responsibility chain and acceptance process control parameters from the responsibility chain configuration update module. Thus, dynamic adjustment of the acceptance process can be achieved, and an acceptance process responsibility chain adapted to the received acceptance request can be obtained.
[0090] In the embodiment of the present invention, the responsibility chain configuration update module 102 includes a configuration module and an update module; the configuration module includes: a state plug-in configuration module, an acceptance process responsibility chain configuration module and an acceptance process control parameter configuration module.
[0091] The state plug-in configuration module is used to receive a state plug-in configuration request and configure the state plug-in;
[0092] The acceptance process responsibility chain configuration module is used to receive an acceptance process responsibility chain configuration request and configure the acceptance process responsibility chain;
[0093] The acceptance process control parameter configuration module is used to receive an acceptance process control parameter configuration request and configure the acceptance process control parameters;
[0094] The update module includes: a second state plug-in update module, a second acceptance process responsibility chain update module, and a second acceptance process control parameter update module;
[0095] The second status plug-in update module is used to send a status plug-in update message;
[0096] The second acceptance process responsibility chain update module is used to send an acceptance process responsibility chain update message;
[0097] The second acceptance process control parameter updating module is used to send an acceptance process control parameter updating message.
[0098] To facilitate understanding of the following combination Figure 3 The technical solution provided by the embodiment of the present invention is explained. Figure 3 The system architecture diagram of the acceptance process dynamic adjustment system provided by an embodiment of the present invention is shown.
[0099] The system architecture provided by the embodiment of the present invention is divided into a presentation layer, a business layer and a data layer.
[0100] In the embodiment of the present invention, the display layer sources include the responsibility chain caller and the responsibility chain configuration system. The responsibility chain caller refers to the business system front end, and the responsibility chain configuration system refers to the responsibility chain configuration system front end page.
[0101] For example, for the acceptance scenario of the cloud service platform, the responsibility chain caller refers to the acceptance interface of the smart operation platform of the cloud platform, and the responsibility chain configuration system refers to the responsibility chain configuration interface of the smart operation platform of the cloud platform.
[0102] In an embodiment of the present invention, a responsibility chain update execution module and a responsibility chain configuration update module are run in the business layer. Specifically, for the acceptance scenario of the cloud service platform, the responsibility chain update execution module runs in the acceptance center of the cloud platform's intelligent operation platform, and the responsibility chain configuration update module runs in the commodity center of the cloud platform's intelligent operation platform. The means by which the acceptance center pulls the status plug-in, the acceptance process responsibility chain, and the acceptance process control parameters from the commodity center include timed polling and consumption update messages. Therefore, in terms of architecture, timed polling can be implemented through a timed task scheduling system (for example, xxl-job can be used), and the commodity center sends update messages and the acceptance center consumes update messages through MQ clusters (for example, ctg-mq can be used). The business acceptance process is the core function of the Tianyi Cloud Intelligent Operation Platform, and access must be strictly controlled, which is why access control needs to be implemented (for example, the IAM center can be used). Finally, the data layer is implemented using a MySQL cluster (it can also be implemented using UDAL).
[0103] To facilitate understanding of the following combination Figure 4 The technical solution provided by the embodiment of the present invention is explained. Figure 4 An exemplary ordering service acceptance process responsibility chain of the acceptance process dynamic adjustment system provided by an embodiment of the present invention is shown.
[0104] like Figure 4 As shown in the figure, the responsibility chain of the ordering business acceptance process consists of the unsubmitted status plug-in, the pending order status plug-in, the pending preprocessing status plug-in, the pending product activation qualification audit status plug-in, the pending contract audit status plug-in, the pending approval status plug-in, the activation status plug-in, the pending activation confirmation audit status plug-in and the completed status plug-in. This is determined by the status involved in the ordering business acceptance process.
[0105] Among them, the state processor chain of each state plug-in is as follows:
[0106] The state processor chain of the unsubmitted state plug-in includes a parameter validator, a restriction condition judger, an SQL condition judger, an interface condition judger and a state converter.
[0107] The state processor chain of the pending order status plug-in includes a parameter validator, a constraint condition judger, an interface processor and a state converter.
[0108] The state processor chain of the state plug-in to be preprocessed includes a parameter validator, a constraint condition judger, and a state converter.
[0109] The state processor chain of the product qualification audit status plug-in includes a parameter validator, an adapter, a restriction condition judger, and a state converter.
[0110] The state processor chain of the pending contract audit status plug-in includes a parameter validator, a constraint condition judger, and a state converter.
[0111] The state processor chain of the pending approval state plug-in includes a parameter validator, an adapter, a constraint condition judger, an interface processor, and a state converter.
[0112] The state processor chain of the activated state plug-in includes parameter validators, constraint condition judgers and state converters.
[0113] The state processor chain of the confirmation audit status plug-in to be activated includes a parameter checker, a constraint condition judger and a state converter.
[0114] The state processor chain of the completed state plug-in includes parameter validators, constraint condition judgers, interface processors, and state converters.
[0115] The processor chain required by each state plugin is determined by the business logic of the corresponding state. You can configure it through the responsibility chain configuration update module.
[0116] In actual usage scenarios, first configure the acceptance process responsibility chain and the required state plug-ins, state processors, and acceptance process control parameters through the responsibility chain configuration system. Specifically, for the acceptance scenario of the cloud service platform in the above example, the configuration is performed through the product center, and the effect of the configuration interface can be similar to Figure 4 Visualization, such as Figure 4 As shown in the figure, you can clearly see the entire processing process of the acceptance process. The example ordering business acceptance process needs to be configured Figure 4 The control parameters, state plug-ins, and state processors in the state plug-ins are connected in series to form a complete chain of responsibility.
[0117] To avoid redundancy, in the embodiment of the present invention, only the most complex pending approval status plug-in is used as an example to introduce the status plug-in in detail:
[0118] The pending approval status plug-in information may include: the status plug-in unique identifier is a7773f435d000d83abf0533ea06d0111, the system identifier is ORDER, the status name is pending approval, the status unique identifier is approvalPending and the status processor chain.
[0119] The status processor chain information of the pending approval status plug-in is as follows: the parameter verifier includes the status processor unique identifier 769d3ca66ba384b41dc678218c0c62bf, the status processor name is pending approval parameter verifier, the status processor type is parameter verifier, the processor configuration is the parameters that need to be verified and the parameter value range (for example, parameter: business acceptance form status, value range: pending preprocessing status, pending product activation qualification audit status, pending contract audit status) and the next status processor unique identifier: 6eaaac14bf0906df8debe7a4e2408393.
[0120] The adapter includes a state processor unique identifier of 6eaaac14bf0906df8debe7a4e2408393, a state processor name of pending approval adapter, a state processor type of adapter, a processor configuration of the adapted product ID (for example, product ID: d5c0d6a6a9d39d2224b65bce6de1aa1d), and a next state processor unique identifier of 90becf376bbc25474c3b968c3a596c1a. The adapter can be configured with multiple products.
[0121] The constraint judger includes a state processor unique identifier of 90becf376bbc25474c3b968c3a596c1a, a state processor name of pending constraint judger, a state processor type of constraint judger, a processor configuration of constraint parameters and value range (for example, parameter: number of resource packages, value range: (3,5]) and a next state processor unique identifier of e5541558a2fd99453d86cbbba8fd6872.
[0122] The interface processor includes the state processor unique identifier e5541558a2fd99453d86cbbba8fd6872, the state processor name is the pending approval interface processor, the state processor type is the interface processor, the processor configuration input parameters and interface address (for example, parameters: business acceptance form ID, interface address: http: / / xxx / audit) and the next state processor unique identifier: 100db6cc0f454dc5a31a7f669f66c2f7.
[0123] The state converter includes a state processor unique identifier of 100db6cc0f454dc5a31a7f669f66c2f7, a state processor name of a pending approval state converter, a state processor type of a state converter, a processor configuration of a next state, and a next state processor unique identifier of none.
[0124] It can be seen from the above configuration information that the embodiment of the present invention can very conveniently dynamically adjust the processor of a certain state plug-in and its order, as well as adjust the order of the responsibility chain state plug-in. For example, add an interface condition judge after the restriction condition judge (for example, for CDN products, it is necessary to call the interface of the CDN platform to determine whether approval is required); for example, jump the next state of the state converter directly to completed (for example, the business acceptance form type is quota adjustment, and no subsequent process is required); for example, the adapter adds a new process (for example, add a new approval flow, configure the adapted product, restriction condition judge, interface processor and state converter).
[0125] In addition, the configuration adjustment of control parameters is very helpful for daily activities. The control parameters of the order acceptance process generally include the business acceptance process ID, customer source, and usage type. In daily activities, it is necessary to adjust the minimum approval discount of a certain province. At this time, you only need to add the province minimum discount control parameter to complete the adjustment. After the activity is over, just remove the province minimum discount control parameter.
[0126] In the embodiment of the present invention, it is also necessary to implement the function of the responsibility chain update execution module. Specifically, for the cloud platform acceptance scenario, the module runs in the acceptance center. When the acceptance center is implemented, three factory classes can be defined: state plug-in factory, responsibility chain factory, and control parameter factory. The state plug-in factory is responsible for loading and initializing the state plug-in pool and dynamically refreshing the state plug-in; the responsibility chain factory is responsible for loading and initializing the responsibility chain pool, dynamically adjusting (adding, replacing or deleting) the responsibility nodes and the order between the responsibility chains; the control parameter factory is responsible for loading and initializing the control parameter pool, and dynamically adjusting (adding, replacing or deleting) the control parameters that affect the acceptance process. The acceptance process responsibility chain is updated in real time through scheduled task pull and message MQ update messages. In this way, the state plug-in, acceptance process responsibility chain and control parameters required by the configured ordering business acceptance process responsibility chain can be updated to the state plug-in pool, acceptance process responsibility chain pool and control parameter pool. If implemented in Java, these three pools can use ConcurrentHashMap to store information. The state plug-in pool ConcurrentHashMap key is the acceptance process identifier, and the value is the state plug-in ConcurrentHashMap. The state plug-in ConcurrentHashMap key is the state plug-in unique identifier, and the value is the state plug-in information. The acceptance process responsibility chain pool ConcurrentHashMap key is the acceptance process identifier, and the value is the acceptance process responsibility chain information. The control parameter pool ConcurrentHashMap key is the acceptance process identifier, and the value is the state plug-in ConcurrentHashMap. The control parameter ConcurrentHashMap key is the parameter variable and the parameter variable value.
[0127] When receiving an order acceptance request, the acceptance center (responsibility chain update execution module) takes out the control parameters from the control parameter pool according to the acceptance process identifier, and then assembles them into the acceptance process control parameters. Then, according to the acceptance process identifier, it takes out the order business acceptance order process responsibility chain from the acceptance process responsibility chain pool, drives the execution of the responsibility chain, and processes the specific business logic of the order acceptance scenario.
[0128] In daily operations, the system is configured through the responsibility chain as needed. Specifically, for the Tianyi Cloud acceptance scenario, it is to adjust the Figure 4 The ordering business acceptance process responsibility chain shown in the figure (for example, adjusting the minimum approval discount for a province in the activity mentioned above) sends an update message to MQ, and the acceptance center will consume the update message through MQ in real time and dynamically adjust the corresponding information without the need for customized development, thereby quickly meeting daily operation requirements and effectively reducing manpower loss.
[0129] Based on the same inventive concept, an embodiment of the present invention further provides a method for dynamically adjusting the acceptance process, such as Figure 5As shown, it shows a flowchart of the steps of the method for dynamically adjusting the acceptance process provided by an embodiment of the present invention. Specifically, the method includes the following steps:
[0130] S501, receiving an acceptance request.
[0131] S502: Determine an acceptance process identifier according to the received acceptance request.
[0132] S503, acquiring corresponding acceptance process control parameters, acceptance process responsibility chains and status plug-ins from a control parameter pool, an acceptance process responsibility chain pool and a status plug-in pool respectively according to the acceptance process identifier.
[0133] The acceptance process responsibility chain includes multiple responsibility nodes, the state plug-in is a responsibility node of the responsibility chain, and the state plug-in includes a state processor chain.
[0134] S504: According to the acceptance process control parameter, drive the corresponding status plug-in to execute the acceptance request.
[0135] In the embodiment of the present invention, the above method is executed by the responsibility chain update execution module in the acceptance process dynamic adjustment system provided by any of the above embodiments. For relevant explanations, please refer to the above embodiments, which will not be repeated here.
[0136] In an embodiment of the present invention, the method further comprises the following steps: obtaining a status plug-in update message, an acceptance process responsibility chain update message, and / or an acceptance process control parameter update message; and performing one or more of the following:
[0137] Obtain the state plug-in according to the system identifier in the state plug-in update message, and update the state plug-in pool based on the state plug-in factory;
[0138] Obtain the acceptance process responsibility chain according to the system identifier in the acceptance process responsibility chain update message, and update the acceptance process responsibility chain pool based on the responsibility chain factory;
[0139] According to the acceptance process representation in the acceptance process responsibility chain update message, the acceptance process control parameters are obtained; based on the control parameter factory, the control parameter pool of the acceptance process is updated.
[0140] Based on the same inventive concept, an embodiment of the present invention further provides a method for dynamically adjusting the acceptance process, such as Figure 6 As shown, it shows a flowchart of another method for dynamically adjusting the acceptance process provided by an embodiment of the present invention. Specifically, the method includes the following steps:
[0141] S601, receiving a status plug-in configuration request, and configuring the status plug-in.
[0142] S602, receiving an acceptance process responsibility chain configuration request, and configuring the acceptance process responsibility chain.
[0143] S603, receiving an acceptance process control parameter configuration request, and configuring the acceptance process control parameters.
[0144] S604, sending a status plug-in update message, an acceptance process responsibility chain update message, and an acceptance process control parameter update message.
[0145] In the embodiment of the present invention, the above method is executed by the responsibility chain configuration update module in the acceptance process dynamic adjustment system provided by any of the above embodiments. For relevant explanations, please refer to the above embodiments, which will not be repeated here.
[0146] The technical solution provided by the embodiment of the present invention can accelerate the product promotion of the cloud service platform, reduce the manpower loss caused by customized development, realize the unified visual management of the acceptance process of the cloud service platform, facilitate rapid familiarity and understanding of business scenarios, and reduce the process adjustment pressure caused by daily operational activities. The technical solution provided by the embodiment of the present invention can be applied to optimize the acceptance process of the existing cloud service platform, and can also be applied to the unified visual management of the acceptance process of the cloud service platform, and can also be applied to realize the unified access standard of the acceptance process of the cloud service platform.
[0147] Based on the same inventive concept, an embodiment of the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes, the steps in the method for dynamically adjusting the acceptance process as described in any of the above embodiments are implemented.
[0148] Based on the same inventive concept, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the method for dynamically adjusting the acceptance process described in any of the above embodiments are implemented.
[0149] Based on the same inventive concept, an embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps in the method for dynamically adjusting the acceptance process described in any of the above embodiments.
[0150] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0151] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0152] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (apparatus), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0153] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0154] These computer program instructions can also be loaded onto a computer or other programmable terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0155] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0156] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0157] The above is a detailed introduction to a method for dynamically adjusting the acceptance process provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A system for dynamically adjusting acceptance procedures, characterized in that: The acceptance process dynamic adjustment system includes: a responsibility chain update execution module; The responsibility chain update execution module is used to: receive an acceptance request, determine an acceptance process identifier based on the received acceptance request, and obtain corresponding acceptance process control parameters, acceptance process responsibility chain and state plug-in from the control parameter pool, acceptance process responsibility chain pool and state plug-in pool respectively according to the acceptance process identifier; the acceptance process responsibility chain includes multiple responsibility nodes, the state plug-in is the responsibility node of the responsibility chain, and the state plug-in includes a state processor chain, which drives the corresponding state plug-in to execute the acceptance request according to the acceptance process control parameters.
2. The acceptance process dynamic adjustment system according to claim 1 is characterized in that: The acceptance process dynamic adjustment system also includes: a responsibility chain configuration update module; The responsibility chain configuration update module is used to: receive a configuration request for the acceptance process responsibility chain, the state plug-in required by the acceptance process responsibility chain, the state processor, and the control parameters, and complete the configuration of the acceptance process responsibility chain, the state plug-in required by the acceptance process responsibility chain, and the control parameters based on the configuration request; The responsibility chain update execution module is also used to: obtain the acceptance process responsibility chain, the state plug-in and control parameters required by the acceptance process responsibility chain from the responsibility chain configuration update module and save them to the acceptance process responsibility chain pool, the state plug-in pool and the control parameter pool respectively.
3. The acceptance process dynamic adjustment system according to claim 2 is characterized in that: The responsibility chain update execution module includes: A first state plug-in update module is used to obtain a state plug-in and update a state plug-in pool based on a state plug-in factory; The first acceptance process responsibility chain update module is used to obtain the acceptance process responsibility chain and update the acceptance process responsibility chain pool based on the responsibility chain factory; A first acceptance process control parameter update module is used to obtain the acceptance process control parameters and update the control parameter pool of the acceptance process based on the control parameter factory; An acceptance process control parameter assembly module is used to assemble acceptance process control parameters corresponding to the acceptance process identifier according to the received acceptance request; The acceptance process responsibility chain execution module is used to drive the corresponding acceptance responsibility chain to execute the acceptance request according to the acceptance process control parameters.
4. The acceptance process dynamic adjustment system according to claim 3 is characterized in that: The responsibility chain configuration update module includes a configuration module and an update module; the configuration module includes: a state plug-in configuration module, an acceptance process responsibility chain configuration module and an acceptance process control parameter configuration module; The state plug-in configuration module is used to receive a state plug-in configuration request and configure the state plug-in; The acceptance process responsibility chain configuration module is used to receive an acceptance process responsibility chain configuration request and configure the acceptance process responsibility chain; The acceptance process control parameter configuration module is used to receive an acceptance process control parameter configuration request and configure the acceptance process control parameters; The update module includes: a second state plug-in update module, a second acceptance process responsibility chain update module, and a second acceptance process control parameter update module; The second status plug-in update module is used to send a status plug-in update message; The second acceptance process responsibility chain update module is used to send an acceptance process responsibility chain update message; The second acceptance process control parameter updating module is used to send an acceptance process control parameter updating message.
5. A method for dynamically adjusting acceptance process, characterized in that: The method comprises: Receive acceptance requests; Determine an acceptance process identifier according to the received acceptance request; According to the acceptance process identifier, corresponding acceptance process control parameters, acceptance process responsibility chain and state plug-in are obtained from the control parameter pool, the acceptance process responsibility chain pool and the state plug-in pool respectively; the acceptance process responsibility chain includes multiple responsibility nodes, the state plug-in is a responsibility node of the responsibility chain, and the state plug-in includes a state processor chain; According to the acceptance process control parameters, the corresponding status plug-in is driven to execute the acceptance request.
6. The method for dynamically adjusting the acceptance process according to claim 5, characterized in that: The method further comprises: Obtain status plug-in update messages, acceptance process responsibility chain update messages, and / or acceptance process control parameter update messages; perform one or more of the following: Obtain the state plug-in according to the system identifier in the state plug-in update message, and update the state plug-in pool based on the state plug-in factory; Obtain the acceptance process responsibility chain according to the system identifier in the acceptance process responsibility chain update message, and update the acceptance process responsibility chain pool based on the responsibility chain factory; According to the acceptance process representation in the acceptance process responsibility chain update message, the acceptance process control parameters are obtained; based on the control parameter factory, the control parameter pool of the acceptance process is updated.
7. A method for dynamically adjusting acceptance process, characterized in that: The method comprises: Receive a status plug-in configuration request and configure the status plug-in; Receive acceptance process responsibility chain configuration request and configure acceptance process responsibility chain; Receive acceptance process control parameter configuration request, and configure acceptance process control parameters; Send status plug-in update messages, acceptance process responsibility chain update messages, and acceptance process control parameter update messages.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for dynamically adjusting the acceptance process according to claim 5 or 6 or the method for dynamically adjusting the acceptance process according to claim 7 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for dynamically adjusting the acceptance process described in claim 5 or 6 or the method for dynamically adjusting the acceptance process described in claim 7 is implemented.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps in the method for dynamically adjusting the acceptance process described in claim 5 or 6 or the method for dynamically adjusting the acceptance process described in claim 7 are implemented.
Citation Information
Cited By
Standardized synchronization method and system for heterogeneous multi-cloud resource data
CN122226789A
Standardized synchronization method and system for heterogeneous multi-cloud resource data
CN122226789B