Business process processing method and device, computer equipment and readable storage medium
By analyzing client requests and creating corresponding business processes and link objects, and executing processing operations in the process management factory, the problems of program redundancy and low maintenance efficiency of business process management solutions in the existing technology are solved, and flexible business is achieved Process processing and efficient maintenance.
Patent Information
- Application Number
- CN202410967115.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-11-26
AI Technical Summary
The existing business process management solutions have problems such as program redundancy and low maintenance efficiency, which leads to repeated writing of similar codes when adding new processes, making the system slow to respond and difficult to maintain.
Provide a business process processing method, by receiving client requests, analyzing request parameters, determining business types and link types, creating corresponding business process objects and link objects, using pre-built process management factories to perform business process processing operations, and supporting messages Notifications, status updates and logging, monitoring performance metrics and alarms.
It simplifies the maintenance of business processes, shortens development time and difficulty, improves maintenance efficiency, reduces callers' attention to implementation logic, and improves user convenience.
Smart Images

Figure CN119027038A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology, and in particular to a business process processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] In modern enterprise and organizational management, business process management plays a vital role. It aims to optimize, automate and monitor business activities to improve efficiency, reduce costs and enhance service quality. However, as business needs and business scenarios become more and more complex, how to achieve optimal process management is also an issue that enterprises are increasingly concerned about.
[0003] At present, the commonly used business process management solution is to provide a set of program designs for each business process. In the face of an endless variety of products, a set of programs for managing business processes needs to be provided separately. This will cause program redundancy. If you want to add a new process, you need to repeatedly write a lot of similar codes. In addition, it is difficult for the system to maintain many business process management programs, and it is easy for the system to repeat some processes, resulting in slow response speed.
[0004] It can be seen that the current business process processing solution has the problem of low maintenance efficiency. Summary of the invention
[0005] Based on this, it is necessary to provide a business process processing method, device, computer equipment, computer-readable storage medium and computer program product that can improve maintenance efficiency in response to the above technical problems.
[0006] In a first aspect, the present application provides a business process processing method, comprising:
[0007] Receive a business process request with request parameters sent by the client;
[0008] Parsing the request parameters to determine the business type and link type;
[0009] Based on the business type, determine the business process corresponding to the business process request, and create a business process object corresponding to the business type;
[0010] Based on the link type, determining a target link corresponding to the business process request;
[0011] Through the pre-built process management factory, a link object matching the link type is created, and the business process processing operation encapsulated in the link object is executed to implement the business process processing operation of the target link corresponding to the business process request.
[0012] In one embodiment, after executing the business process processing operation encapsulated in the link object, the method further includes:
[0013] Based on the process task identifier in the request parameter, the message notification method in the link object is called to push a prompt message to the client, where the prompt message is used to prompt the user to continue the next link operation;
[0014] Receive the business process request carrying the request parameters fed back by the client, enter the step of parsing the request parameters, determining the business type and link type, until the operation of the last link in the business process is completed.
[0015] In one embodiment, after executing the business process processing operation encapsulated in the link object, the method further includes:
[0016] Based on the process task identifier in the request parameter, the process status update method in the link object is called to update the business status of the business process.
[0017] In one embodiment, the method further comprises:
[0018] Based on the process task identifier in the request parameter, the operation log recording method in the link object is called to record the log data during the link operation.
[0019] In one embodiment, the method further comprises:
[0020] Monitoring performance indicators, execution status of the business process and the log data;
[0021] Determine whether the performance indicator, the execution status and the log data meet the corresponding alarm conditions;
[0022] When at least one of the performance indicator, the execution status or the log data satisfies a corresponding alarm condition, determining an alarm level;
[0023] Push warning messages of warning level.
[0024] In one embodiment, before parsing the request parameters and determining the service type and link type, the method further includes:
[0025] Verify through API Gateway (Application Programming Interface Gateway) whether the request object corresponding to the business process request has execution authority;
[0026] When it is determined that the request object has execution authority, the request parameters are parsed to determine the business type and link type.
[0027] In a second aspect, the present application also provides a business process processing device, including:
[0028] A data receiving module is used to receive a business process request carrying request parameters sent by a client;
[0029] A data determination module, used to parse the request parameters and determine the business type and link type;
[0030] A data creation module, based on the business type, determines the business process corresponding to the business process request and creates a corresponding business process object;
[0031] An execution module is used to determine the target link corresponding to the business process request based on the link type, create a link object matching the link type through a pre-built process management factory, and execute the business process processing operation encapsulated in the link object to implement the business process processing operation of the target link corresponding to the business process request.
[0032] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0033] Receive a business process request with request parameters sent by the client;
[0034] Parsing the request parameters to determine the business type and link type;
[0035] Based on the business type, determine the business process corresponding to the business process request, and create a corresponding business process object;
[0036] Based on the link type, determining a target link corresponding to the business process request;
[0037] Through the pre-built process management factory, a link object matching the link type is created, and the business process processing operation encapsulated in the link object is executed to implement the business process processing operation of the target link corresponding to the business process request.
[0038] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0039] Receive a business process request with request parameters sent by the client;
[0040] Parsing the request parameters to determine the business type and link type;
[0041] Based on the business type, determine the business process corresponding to the business process request, and create a corresponding business process object;
[0042] Based on the link type, determining a target link corresponding to the business process request;
[0043] Through the pre-built process management factory, a link object matching the link type is created, and the business process processing operation encapsulated in the link object is executed to implement the business process processing operation of the target link corresponding to the business process request.
[0044] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0045] Receive a business process request with request parameters sent by the client;
[0046] Parsing the request parameters to determine the business type and link type;
[0047] Based on the business type, determine the business process corresponding to the business process request, and create a corresponding business process object;
[0048] Based on the link type, determining a target link corresponding to the business process request;
[0049] Through the pre-built process management factory, a link object matching the link type is created, and the business process processing operation encapsulated in the link object is executed to implement the business process processing operation of the target link corresponding to the business process request.
[0050] The above-mentioned business process processing method, device, computer equipment, computer-readable storage medium and computer program product provide a flexible and universal business process processing method for processes in different business scenarios. A business process has multiple process links, and the directions of different business processes are unified into a universal process. When the client initiates a business process request, it will first determine the business type and link type according to the request parameters in the request, and then create a corresponding business process object based on the business type. The business process object encapsulates the link processing method, and then determines the target link corresponding to the business process request according to the link type, and then creates a link object matching the link type through the pre-built process management factory, and executes the business process processing operation encapsulated in the link object, so as to realize the business process processing operation of the target link corresponding to the business process request. If the business process needs to be modified, it only needs to modify the specific business process class appropriately. If the business process or link needs to be added or deleted, it only needs to expand the business process class and link class accordingly. In this way, the maintenance of the business process is simplified, the development time and difficulty are greatly shortened, and the maintenance efficiency is greatly improved. Further, by adopting this solution, the caller does not need to pay attention to the specific implementation logic of the method, which also reduces the professional requirements for the caller and improves user convenience. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments of the present application or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0052] FIG1 is an application environment diagram of a business process processing method in one embodiment;
[0053] Figure 2 A flowchart of a business process processing method in one embodiment;
[0054] Figure 3 A UML (Unified Modeling Language) diagram of a general business process management in an embodiment;
[0055] Figure 4 A flowchart of a business process processing method in another embodiment;
[0056] Figure 5 A flowchart of a business process processing method in another embodiment;
[0057] Figure 6 is a detailed flowchart of a business process processing method in another embodiment;
[0058] Figure 7 is a structural block diagram of a business process processing device in an embodiment;
[0059] Figure 8 is a structural block diagram of a business process processing device in another embodiment;
[0060] FIG. 9 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. It should be noted that in the embodiments of the present application, certain software, groups, models and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0062] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations. The acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with relevant provisions of national laws and regulations.
[0063] The business process processing method provided in the embodiment of the present application can be applied in the application environment shown in Figure 1. Among them, the client 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers.
[0064] Specifically, when a user has a business process operation requirement, the user can send a business process request with request parameters to the server 104 through the client 102. The server 104 receives the business process request, parses the request, determines the business type and link type according to the request parameters, determines the business process corresponding to the business process request based on the business type, creates a corresponding business process object, and then, based on the link type, calls the link processing method in the business process object to implement the business process processing operation of the target link corresponding to the business process request.
[0065] The client 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices may be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server 104 may be an independent physical server, or a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.
[0066] In an exemplary embodiment, Figure 2 As shown, a business process processing method is provided, and the method is applied to the server 104 in FIG. 1 as an example for description, including the following steps S200 to S800. Among them:
[0067] S200, receiving a business process request carrying request parameters sent by a client.
[0068] The request parameters include data such as process task ID, business type, link type, business process number and business status.
[0069] In actual applications, each business process is requested by the client to the server. Each business process corresponds to multiple links, and each link corresponds to multiple business processing logics. Every time the client initiates a business process request to the server, the business process request will carry request parameters, including process task ID, business type, link type, business process number, business status and other data.
[0070] S400, parsing request parameters to determine the business type and link type.
[0071] Business type is key data used to distinguish business scenarios. Different business scenarios correspond to different business types. Taking the business process of order management as an example, business types include "order management", "returns and after-sales", "inventory management" and "customer service". Link type is key data used to distinguish link processing in a business scenario. There are at least two links in a business process. Taking the business type of "returns and after-sales" as an example, the link types it includes include "pick-up submission", "return review", "return receipt confirmation" and "refund processing".
[0072] Taking the business process request as an HTTP (HyperText Transfer Protocol) request as an example, after receiving the business process request, the server can read and parse the request body in the HTTP POST request (usually in JSON (JavaScript Object Notation) format), convert the request body into an operable data structure through the JSON parsing library, and then extract key request parameters from the converted data, including business type, link type, business process number, and process task identifier.
[0073] S600, based on the business type, determine the business process corresponding to the business process request, and create a corresponding business process object.
[0074] Each business process is like a factory, and each link of the process is a product. Therefore, developers can define an abstract process management factory class in combination with the factory method pattern in the design pattern. The class defines abstract link processing methods. When the client initiates a business process request, the server will create a corresponding factory instance, namely the business process management class, based on the business type of the request parameter, that is, the business process object. The business process object contains all link processing methods under the business process corresponding to the business type. Specifically, the UML diagram of the general process management in this application can be found in Figure 3 Among them, the abstract product class (i.e. the link class in this application) is responsible for defining the commonality of products and realizing the most abstract definition of things; the abstract factory (process management abstract class) is an abstract creation class, and how to create the product class is completed by the specific implementation factory (business process class).
[0075] In specific implementation, after extracting the business type, the server may map the business type to the corresponding business process to determine the business process corresponding to the business process request, and then instantiate the business process object corresponding to the business type.
[0076] S800, determining a target link corresponding to the business process request based on the link type.
[0077] Following the previous step, the business process object encapsulates all the processing links under the business process, including the processing links corresponding to different link types. Each type of processing link contains multiple link processing methods. The link processing method defines specific business logic, such as database operations, external system calls, and status updates. After obtaining the link type, the server can determine the target link corresponding to the business process request based on the link type, and then call the link processing method corresponding to the specific link type in the business process object. At this time, all link processing methods in the processing link will be executed to complete the corresponding business process processing operation.
[0078] For example, if the demand corresponding to the business process request is "confirmation of return receipt", the business process request will carry information such as the business type of "return and after-sales" and the link type of "return receipt confirmation", then the server will first determine that the business type corresponding to the business process request is "return and after-sales" and the link type is "return receipt confirmation" by parsing the business process request. Then, create a business process object corresponding to "return and after-sales", which encapsulates processing links such as "pickup submission", "return review", "return receipt confirmation" and "refund processing", and each processing link is predefined with multiple link processing methods. Then, according to the link type "return receipt confirmation" and the link type in the request, the corresponding link is determined to be "return receipt confirmation". Then, call the link processing methods in the "return receipt confirmation" link in the business process object, such as the "confirm receipt" method and the "notify customer" method, to update the order status and notify the customer.
[0079] S900, creating a link object matching the link type through a pre-built process management factory, and executing the business process processing operation encapsulated in the link object to implement the business process processing operation of the target link corresponding to the business process request.
[0080] Link objects are objects that encapsulate the logic and data of a single link in a specific business process. They are designed to organize and manage complex business processes in an object-oriented way. Each link object represents a step or stage in the business process, is responsible for executing the specific operations required for that step, and may work with other link objects to complete the entire business process.
[0081] As described in the above embodiment, the developer defines an abstract process management factory class in combination with the factory method pattern in the design pattern. The class defines an abstract link processing method. When the client initiates a business process request, the server will create a corresponding factory instance, that is, a business process management class, that is, a business process object, based on the business type of the request parameter. Subsequently, based on the link type, the target link corresponding to the business process request is determined. Then, through the process management factory, a link object matching the link type is dynamically created, and the business process processing operation encapsulated in the link object is executed to implement the business process processing operation of the target link corresponding to the business process request. Among them, the link object encapsulates the business logic, data processing and rules of a specific link, hides the implementation details from the outside, and only exposes the necessary interfaces (such as execution methods). The link object also contains historical status data and maintains its own status, such as processing results, execution progress or intermediate data.
[0082] In this embodiment, by designing link objects, different paths of the process can be flexibly configured, and links can be added or replaced to adapt to changes in business needs. In addition, each link object focuses on completing a specific task in the process, following the single responsibility principle, making the process easy to understand, test and debug.
[0083] The above-mentioned business process processing method provides a flexible and universal business process processing method for processes in different business scenarios. A business process has multiple process links. The directions of different business processes are unified into a universal process. When the client initiates a business process request, it will first determine the business type and link type according to the request parameters in the request, and then create the corresponding business process object based on the business type. The link processing method is encapsulated in the business process object, and then the target link corresponding to the business process request is determined according to the link type. Then, through the pre-built process management factory, a link object matching the link type is created, and the business process processing operation encapsulated in the link object is executed to implement the business process processing operation of the target link corresponding to the business process request. If the business process needs to be modified, it only needs to modify the specific business process class appropriately. If a business process or link needs to be added or deleted, it only needs to expand the business process class and link class accordingly. In this way, the maintenance of the business process is simplified, the development time and difficulty are greatly shortened, and the maintenance efficiency is greatly improved. In addition, the caller does not need to pay attention to the specific implementation logic of the method, which also reduces the requirements for the caller and improves user convenience.
[0084] like Figure 4 As shown, in an exemplary embodiment, before S400, the method further includes: S300, verifying, through the application programming interface gateway, whether the request object corresponding to the business process request has execution authority.
[0085] S400 includes: S420, when it is determined that the request object has execution authority, parsing request parameters to determine the business type and link type.
[0086] API Gateway is a service architecture component located between the client and the backend service. Its responsibility is to serve as a unified entry point for all API requests and play the role of an intermediary, exposing the API interface to client applications (such as mobile applications, web applications, third-party systems, etc.) while routing requests internally to the backend microservices or data sources, handling various functions such as authentication, monitoring, current limiting, protocol conversion, request aggregation, etc.
[0087] API Gateway serves as a unified entry point and receives business process requests from clients. After receiving the business process request, it checks whether the request follows the predefined format, such as whether there is necessary header information (such as authentication header) and the correct request body structure. Extract the authentication token or other authentication credentials from the request header to verify whether the token is valid, including checking whether the token is expired, whether the signature is correct, whether it has been revoked, etc. In addition, according to the user role or permission information in the token, by querying the permission database or calling the external authorization service, it is determined whether the request object has the permission to execute the requested business process. If it is determined that the request object has the execution permission, the request parameters are parsed to determine the business type and link type. Furthermore, after determining the business type and link type, necessary security and compliance checks can be performed, such as checking the legitimacy of the request parameters (such as the order amount cannot be negative) and whether it complies with business rules. It can also check whether the request is submitted repeatedly to prevent replay attacks. If all verifications and checks pass, API Gateway forwards the request to the corresponding backend service for further processing according to the business type and link type. Similarly, detailed logs can be recorded for API Gateway access, errors, performance, etc., and integrated into monitoring tools to facilitate troubleshooting and performance optimization.
[0088] In this embodiment, by setting up an API Gateway, the complexity of interaction between the client and the backend service can be simplified, and the security, performance, maintainability and scalability of the system can be improved.
[0089] like Figure 5 As shown, in an exemplary embodiment, after executing the business process processing operation encapsulated in the link object, the method further includes:
[0090] S920, based on the process task identifier in the request parameter, call the process status update method in the link object to update the business status of the business process.
[0091] The process task identifier is a code or string used to uniquely identify each specific task or link in the business process, including but not limited to the process task number and process task name. The process task identifier helps to identify and determine the tasks that the user is performing or to be performed, and then execute the corresponding logic, such as message notifications, status updates, etc. Specifically, there are multiple link processing methods predefined in the link object, including process status update methods, business data update methods, log recording methods and other methods. Among them, the process status update method is used to update the status of the business process, and the business data update method is used to update the business data. The operation log recording method is used to record the log data generated by the execution of the link processing method.
[0092] In the specific implementation, the process task identifier is taken as the process task number as an example. After the server executes the business process processing operation encapsulated in the link object, it can call the process status update method in the link object based on the process task number and pass in new status information to update the business status of the business process. For example, after executing the return receipt confirmation operation in the "Confirm return receipt" link, the status of the order can be updated to "Confirm receipt".
[0093] In another exemplary embodiment, the method further includes: S930, calling an operation log recording method in a link object to record log data during the link operation process.
[0094] Continuing from the previous embodiment, during the processing of the entire business process, the basic data generated during the processing can be collected, including but not limited to the task identifier, operation timestamp, operator, operation type (such as update status), and then the collected information is formatted and the log is recorded using a log framework (such as Log4j, SLF4J). Furthermore, the log level can be set according to the importance of the operation, such as INFO for successful status update and ERROR for failure or exception, and then the log data is stored persistently. It is understandable that if the business process involves multiple sub-links or upstream and downstream services, the status can be updated through message queues, event-driven methods, etc. to ensure data consistency and ensure that the status update can be synchronized to these related components.
[0095] In this embodiment, by defining the process status update method and the operation log recording method in the link object, the business status of the business process can be efficiently updated and key operation logs can be recorded, thereby improving the transparency and traceability of the business process and providing a solid foundation for system stability and problem solving.
[0096] like Figure 6As shown, in an exemplary embodiment, the method also includes: S940, monitoring performance indicators, execution status of business processes and log data, determining whether the performance indicators, execution status and log data meet their respective corresponding alarm conditions, and when at least one of the performance indicators, execution status or log data meets the corresponding alarm condition, determining the alarm level, and pushing an alarm message carrying the alarm level.
[0097] In this embodiment, the performance indicators include but are not limited to response time, throughput, number of concurrent connections, resource utilization, etc. The execution status includes but is not limited to the results of link processing, the success rate of link processing, the failure rate, the average processing time, the length of the queue to be processed, etc. As shown in the above embodiment, each link processing process has a detailed log record, ensuring that there is a detailed log record in each link processing logic, including but not limited to the start time, end time, processing results, exception information, etc.
[0098] In actual applications, developers may pre-design corresponding monitoring tools and set corresponding alarm conditions for performance indicators, execution status, and log data. For example, alarm conditions based on indicator thresholds may be set, and thresholds within the normal range may be set for each monitoring indicator. Exceeding the threshold is considered abnormal and an alarm needs to be triggered. It is understandable that in other embodiments, alarm conditions of other dimensions may also be set, depending on the actual situation. Specifically, different levels of alarms may be set according to the severity of the problem, such as warnings, errors, and severe alarms, corresponding to different response speeds and processing procedures.
[0099] In specific implementation, during the business process processing, the performance indicators and log data of each phase can be automatically collected through the data collection tool, and reported to the monitoring tool in real time. The monitoring tool can track the full-link execution of each business process request. For example, the collected performance indicators, execution status and log data are compared with the corresponding alarm conditions, and the performance indicators, execution status and log data are judged to meet the corresponding alarm conditions. If at least one of the performance indicators, execution status or log data meets the corresponding alarm conditions, the alarm level is determined. For example, if the response time in the performance indicator exceeds 1 second, a normal warning is triggered. If the error rate of the link processing in the execution status exceeds 5%, a serious alarm is triggered. If the data with the level of "alarm, error or serious error" appears in the log data, the corresponding level of warning is triggered. Then, an alarm message carrying the alarm level is pushed. Specifically, the alarm message can be pushed through multiple notification channels such as email, SMS, instant messaging tools, etc. to ensure that the alarm information can be delivered to relevant personnel in a timely manner. Furthermore, in other implementations, key performance indicators and process status can be displayed through visualization tools to facilitate operation and maintenance personnel to identify problems.
[0100] In this embodiment, by monitoring performance indicators, business process execution status and log data during the processing of business process requests, potential problems can be identified in a timely manner and relevant personnel can be notified to solve the problems in a timely manner.
[0101] like Figure 6 As shown, in an exemplary embodiment, after executing the business process processing operation encapsulated in the link object, the method further includes:
[0102] S960, based on the process task identifier in the request parameter, call the message notification method in the link object and push a prompt message to the client. The prompt message is used to prompt the user to continue the next link operation.
[0103] S980, receiving a business process request with request parameters fed back by the client, entering the steps of parsing the request parameters, and determining the business type and link type, until the operation of the last link in the business process is completed.
[0104] A message notification method is also defined in the link object. The message notification method is constructed with a prompt message including process feedback and a corresponding message push channel. The message notification method is used to prompt the user to complete the link and continue with the next link.
[0105] In the specific implementation, the process task identifier is taken as the process task number as an example. After the server executes the business process processing operation encapsulated in the link object, it can execute the message notification method in the link object based on the process task number. At this time, the server will push the prompt message to the client through a pre-defined message push channel such as WebSocket, system message or email. It can be understood that the implementation of the message notification method can also consider using asynchronous processing to improve the response speed, and at the same time handle the failed retry mechanism of message push.
[0106] After receiving the prompt message, the client will display the corresponding prompt notification. After the user clicks to view the process feedback in the prompt message, he decides whether to continue the next link operation. If the next link operation needs to be continued, the client will operate through the business process operation interface to send a new business process request to the server. The business process request also includes data such as process task identifier, business type, link type, business process number and business status. The server continues to process the next link, parses the request again, enters S400, determines the business type and link type, and then determines the business process corresponding to the business process request based on the business type, creates the corresponding business process object, determines the target link corresponding to the business process request based on the link type, creates a link object matching the link type through the pre-built process management factory, and executes the business process processing operation encapsulated in the link object to implement the business process processing operation of the target link corresponding to the business process request. It can be understood that in each link processing process, the server will determine whether the link currently being processed is the last link. If it is determined that the current link is the last link, after executing the business process processing operation in the current link, the message notification method will be executed to return the end identifier to the client to prompt the end of the process.
[0107] In this embodiment, by defining the message notification method in the link object, the business process can be promoted smoothly, while maintaining interaction with the client, ensuring that the user can receive key information in a timely manner and continue to participate in the process.
[0108] In order to make a clearer description of the business process processing method provided by the present application, the following is a specific embodiment and the attached Figure 6 To illustrate, this specific embodiment includes the following steps:
[0109] S200, receiving a business process request carrying request parameters sent by a client.
[0110] S300, through the API Gateway, verifies whether the request object corresponding to the business process request has execution permission.
[0111] S420: When it is determined that the request object has execution authority, the request parameters are parsed to determine the business type and the link type.
[0112] S600, based on the business type, determine the business process corresponding to the business process request, and create a corresponding business process object.
[0113] S820, based on the link type, determine the target link corresponding to the business process request, create a link object matching the link type through the pre-built process management factory, and execute the business process processing operation encapsulated in the link object to implement the business process processing operation of the target link corresponding to the business process request.
[0114] S920, based on the process task identifier in the request parameter, call the process status update method in the link object to update the business status of the business process.
[0115] S930, calling the operation log recording method in the link object to record the log data during the link operation process.
[0116] S940, monitor the performance indicators, execution status of business processes and log data, determine whether the performance indicators, execution status and log data meet their corresponding alarm conditions, and when at least one of the performance indicators, execution status or log data meets the corresponding alarm condition, determine the alarm level and push an alarm message carrying the alarm level.
[0117] S960, based on the process task identifier in the request parameter, call the message notification method in the link object and push a prompt message to the client. The prompt message is used to prompt the user to continue the next link operation.
[0118] S980, receiving the business process request with request parameters fed back by the client, and entering S420, until the operation of the last link in the business process is completed.
[0119] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0120] Based on the same inventive concept, the embodiment of the present application also provides a business process processing device for implementing the business process processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more business process processing device embodiments provided below can refer to the limitations on the business process processing method above, and will not be repeated here.
[0121] In an exemplary embodiment, Figure 7 As shown, a business process processing device is provided, including: a data receiving module 710, a data determining module 720, a data creating module 730 and an executing module 740, wherein:
[0122] The data receiving module 710 is used to receive a business process request carrying request parameters sent by a client.
[0123] The data determination module 720 is used to parse the request parameters and determine the business type and link type.
[0124] The data creation module 730 determines the business process corresponding to the business process request based on the business type, and creates a corresponding business process object.
[0125] Execution module 740 is used to determine the target link corresponding to the business process request based on the link type, create a link object matching the link type through a pre-built process management factory, and execute the business process processing operations encapsulated in the link object to implement the business process processing operations of the target link corresponding to the business process request.
[0126] The above-mentioned business process processing device provides a flexible and universal business process processing method for processes in different business scenarios. A business process has multiple process links, and the directions of different business processes are unified into a universal process. When the client initiates a business process request, it will first determine the business type and link type according to the request parameters in the request, and then create a corresponding business process object based on the business type. The business process object encapsulates the link processing method, and then determines the target link corresponding to the business process request according to the link type. Through the pre-built process management factory, a link object matching the link type is created, and the business process processing operation encapsulated in the link object is executed to implement the business process processing operation of the target link corresponding to the business process request. If the business process needs to be modified, it only needs to modify the specific business process class appropriately. If a business process or link needs to be added or deleted, it only needs to expand the business process class and link class accordingly. In this way, the maintenance of the business process is simplified, the development time and difficulty are greatly shortened, and the maintenance efficiency is greatly improved. Further, by adopting this solution, the caller does not need to pay attention to the specific implementation logic of the method, and the professional requirements for the caller are also reduced.
[0127] In one of the exemplary embodiments, the execution module 740 is also used to determine the target link corresponding to the business process request based on the link type, create a link object matching the link type through a pre-built process management factory, and execute the business process processing operations encapsulated in the link object to implement the business process processing operations of the target link corresponding to the business process request.
[0128] In one of the exemplary embodiments, the execution module 740 is also used to call the message notification method in the link object based on the process task identifier in the request parameter, push a prompt message to the client, and the prompt message is used to prompt the user to continue the next link operation, receive the business process request carrying the request parameters fed back by the client, and control the data determination module 720 to execute the operation of parsing the request parameters and determining the business type and link type until the operation of the last link in the business process is completed.
[0129] In one exemplary embodiment, the execution module 740 is further used to call the process status update method in the link object based on the process task identifier in the request parameter to update the business status of the business process.
[0130] In one exemplary embodiment, the execution module 740 is further used to call the operation log recording method in the link object to record the log data during the link operation.
[0131] like Figure 8 As shown, in one exemplary embodiment, the device also includes a data alarm module 750, which is used to monitor performance indicators, execution status of business processes and log data, determine whether the performance indicators, execution status and log data meet their respective corresponding alarm conditions, and when at least one of the performance indicators, execution status or log data meets the corresponding alarm conditions, determine the alarm level and push an alarm message carrying the alarm level.
[0132] like Figure 8 As shown, in one exemplary embodiment, the device also includes an authority verification module 760, which is used to verify whether the request object corresponding to the business process request has execution authority through the application programming interface gateway, and when it is determined that the request object has execution authority, parse the request parameters to determine the business type and link type.
[0133] Each module in the above-mentioned business process processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0134] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG9. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as the execution results, operation logs and alarm data of the link processing. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a business process processing method is implemented.
[0135] Those skilled in the art will understand that the structure shown in FIG. 9 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0136] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps in any one of the above-mentioned business process processing method embodiments are implemented.
[0137] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in any one of the above-mentioned business process processing method embodiments are implemented.
[0138] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in any one of the above-mentioned business process processing method embodiments when executed by a processor.
[0139] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0140] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are 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 application.
[0141] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A business process processing method, It is characterized in that The method comprises: Receive a business process request with request parameters sent by the client; Parsing the request parameters to determine the business type and link type; Based on the business type, determining the business process corresponding to the business process request, and creating a business process object corresponding to the business type; Based on the link type, determining a target link corresponding to the business process request; Through the pre-built process management factory, a link object matching the link type is created, and the business process processing operation encapsulated in the link object is executed to implement the business process processing operation of the target link corresponding to the business process request.
2. The method according to claim 1, It is characterized in that After executing the business process processing operation encapsulated in the link object, the method further includes: Based on the process task identifier in the request parameter, the message notification method in the link object is called to push a prompt message to the client, where the prompt message is used to prompt the user to continue the next link operation; Receive the business process request carrying the request parameters fed back by the client, enter the step of parsing the request parameters, determining the business type and link type, until the operation of the last link in the business process is completed.
3. The method according to claim 1, It is characterized in that After executing the business process processing operation encapsulated in the link object, the method further includes: Based on the process task identifier in the request parameter, the process status update method in the link object is called to update the business status of the business process.
4. The method according to any one of claims 1 to 3, It is characterized in that The method further comprises: Based on the process task identifier in the request parameter, the operation log recording method in the link object is called to record the log data during the link operation.
5. The method according to claim 4, It is characterized in that The method further comprises: Monitoring performance indicators, execution status of the business process and the log data; Determine whether the performance indicator, the execution status and the log data meet the corresponding alarm conditions; When at least one of the performance indicator, the execution status or the log data meets a corresponding alarm condition, determining an alarm level; Push an alarm message carrying the alarm level.
6. The method according to any one of claims 1 to 3, It is characterized in that Before parsing the request parameters and determining the service type and link type, the method further includes: Verify, through the application programming interface gateway, whether the request object corresponding to the business process request has execution authority; When it is determined that the request object has execution authority, the request parameters are parsed to determine the business type and link type.
7. A business process processing device, It is characterized in that The device comprises: A data receiving module is used to receive a business process request carrying request parameters sent by a client; A data determination module, used to parse the request parameters and determine the business type and link type; A data creation module, based on the business type, determines the business process corresponding to the business process request, and creates a business process object corresponding to the business type; An execution module is used to determine the target link corresponding to the business process request based on the link type, create a link object matching the link type through a pre-built process management factory, and execute the business process processing operation encapsulated in the link object to implement the business process processing operation of the target link corresponding to the business process request.
8. The device according to claim 7, It is characterized in that The execution module is also used to call the message notification method in the link object based on the process task identifier in the request parameter, push a prompt message to the client, and the prompt message is used to prompt the user to continue the next link operation, receive the business process request carrying the request parameters fed back by the client, and control the data determination module to execute the operation of parsing the request parameters and determining the business type and link type until the operation of the last link in the business process is completed.
9. The device according to claim 7, It is characterized in that The execution module is further used to call the process status update method in the link object based on the process task identifier in the request parameter to update the business status of the business process.
10. The device according to any one of claims 7 to 9, It is characterized in that The execution module is also used to call the operation log recording method in the link object based on the process task identifier in the request parameter to record the log data in the link operation process.
11. The device according to claim 10, It is characterized in that The device also includes a data alarm module, which is used to monitor performance indicators, the execution status of the business process and the log data, determine whether the performance indicators, the execution status and the log data meet their respective corresponding alarm conditions, and determine the alarm level when at least one of the performance indicators, the execution status or the log data meets the corresponding alarm condition, and push an alarm message carrying the alarm level.
12. The device according to any one of claims 7 to 9, It is characterized in that The device also includes an authority verification module, which is used to verify whether the request object corresponding to the business process request has execution authority through an application programming interface gateway. If it is determined that the request object has execution authority, the request parameters are parsed to determine the business type and link type.
13. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
14. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
15. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Smart medical process management method and system based on cloud computing, and cloud platform
CN119889624A
