Flow processing method and device, equipment and medium
By obtaining and utilizing the process configuration information of the business process, instantiating actions and generating a task list, the problem that the existing process control system cannot achieve comprehensive and flexible control of complex business scenarios is solved, and efficient and lightweight business processes are achieved Control and automated processing.
Patent Information
- Application Number
- CN202411549827.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-18
AI Technical Summary
Existing process control systems cannot provide a lightweight and efficient solution to achieve comprehensive and flexible control of business processes, especially when dealing with complex business scenarios.
By obtaining the process configuration information of the business process, including plan configuration information, action configuration information and task configuration information, determine the action types of multiple actions indicated by the action information contained in the process initiation request, instantiate the action to generate a task list, and use it to The task executor executes tasks to end the business process.
It realizes comprehensive and flexible control of business processes, avoids problems such as dead loops caused by hard coding, improves the scalability and flexibility of the system, reduces learning and deployment costs, and is suitable for automated processing of complex business scenarios. Improves business processing efficiency and quality.
Smart Images

Figure CN119476914A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of research and development technology, and in particular to a process processing method, device, equipment and medium. Background Art
[0002] In the current software development and information system construction, process control logic plays a vital role. Traditional process control solutions are mainly implemented based on two methods: state tables and workflows. The process control solution based on the state table implements the control logic by directly adding process control fields to the business data. However, this solution is powerless when dealing with complex business scenarios, especially when it comes to complex process structures such as directed acyclic graphs. The hard-coding of state control fields not only easily leads to logical errors such as dead loops, but also greatly limits the scalability and flexibility of the system. Another common process control solution is based on workflow engines, such as third-party tools such as Activiti. Although these workflow engines are powerful, they are often accompanied by high learning and deployment costs. They usually need to be deployed in a specific environment and consume a lot of system resources. For application scenarios that pursue lightweight and high efficiency, they are obviously not the best choice.
[0003] In scenarios involving complex process structures such as directed acyclic graphs, existing process control systems cannot provide sufficiently lightweight and efficient solutions to achieve comprehensive and flexible control of business processes. Summary of the invention
[0004] The purpose of the embodiments of the present application is to propose a process processing method, device, equipment and medium to solve the problem that the existing process control system cannot provide a sufficiently lightweight and efficient solution and cannot achieve comprehensive and flexible control of business processes.
[0005] In order to solve the above technical problems, the present application provides a process processing method, which adopts the following technical solutions:
[0006] Obtain process configuration information of a business process, the process configuration information including plan configuration information, action configuration information and task configuration information; when receiving a process initiation request of a target business process, determine the action types of multiple actions indicated by the action information contained in the process initiation request according to the plan configuration information and the action configuration information; instantiate multiple actions according to the action types, and generate a task list for the target business process, the task list including multiple tasks; obtain task executors for the multiple tasks according to the task configuration information, and use the task executors to execute the multiple tasks to end the target business process.
[0007] Further, the step of determining the action types of the multiple actions indicated by the action information included in the process initiation request according to the plan configuration information and the action configuration information specifically includes:
[0008] Parse the process initiation request to obtain the process identifier and action parameters of the target business process; match the process identifier with the plan configuration information to obtain a matching result, and determine the process plan configuration information of the target business process based on the matching result; obtain the target action configuration information associated with the process plan configuration information from the action configuration information; compare the action parameters with the target action configuration information to obtain a comparison result, and determine the action types of multiple actions in the process initiation request based on the comparison result.
[0009] Further, the step of instantiating multiple actions according to the action type and generating a task list of the target business process includes:
[0010] If the action type includes a first target action type, then an action whose action type is the first target action type is determined from the multiple actions that initiate the request as the first target action, and the action information of the first target action is obtained; the action information of the first target action is instantiated to generate a first task list for the first target action, and the first task list includes multiple first tasks; if the action type also includes a second target action type, then an action whose action type is the second target action type is determined from the multiple actions that initiate the request as the second target action, and the action information of the second target action is obtained; the action information of the second target action is instantiated to generate a second task list for the second target action, and the second task list includes multiple second tasks; the first task list and the second task list are merged to obtain a task list for the target business process, and the task list includes multiple first tasks and multiple second tasks.
[0011] Furthermore, the step of instantiating the action information of the first target action and generating a first task list of the first target action specifically includes:
[0012] Obtain an attribute list corresponding to the action information of the first target action, instantiate the action information of the first target action according to the attribute values of the attribute list, and obtain the instantiated first target action information; extract multiple key information of the instantiated first target action information, integrate the multiple key information, and generate a first task list for the first target action.
[0013] Further, the step of instantiating the action information of the first target action according to the attribute value of the attribute list to obtain the instantiated first target action information specifically includes:
[0014] Obtain a pre-established action attribute mapping library; obtain an attribute list matching the action information of the first target action from the action attribute mapping library; extract each attribute value in the attribute list, and determine the instantiation parameters of the first target action according to each attribute value; adopt a preset instantiation model, take the instantiation parameters as input, instantiate the action information of the first target action, and obtain the instantiated first target action information.
[0015] Furthermore, the step of integrating the multiple key information to generate a first task list of the first target action specifically includes:
[0016] Analyze multiple key information, determine the logical relationship and business relevance between the multiple key information, and obtain analysis results; classify and integrate the multiple key information according to the analysis results to obtain classified and integrated information; use a preset task model for the classified and integrated information to output a first task list for a first target action.
[0017] Furthermore, according to the task configuration information, the step of obtaining the task executor specifically includes:
[0018] Based on the task configuration information, determine the task types of the multiple actions, and determine the task processor type based on the task type; obtain a task processor that matches the task processor type in a preset task executor library;
[0019] The steps to use the task executor to execute multiple tasks include:
[0020] Based on the plan configuration information, the priority level of each task is determined, and the task processor is used to execute multiple tasks in sequence according to the priority level.
[0021] In order to solve the above technical problems, the embodiment of the present application also provides a process processing device, which adopts the following technical solutions:
[0022] An information acquisition module is used to acquire process configuration information of a business process, where the process configuration information includes plan configuration information, action configuration information, and task configuration information;
[0023] A receiving module, configured to determine, when receiving a process initiation request of a target business process, action types of multiple actions indicated by the action information contained in the process initiation request according to the plan configuration information and the action configuration information;
[0024] An instantiation module is used to instantiate multiple actions according to the action type and generate a task list of the target business process, where the task list includes multiple tasks;
[0025] The executor acquisition module is used to obtain the task executors of multiple tasks according to the task configuration information, and use the task executors to execute the multiple tasks to end the target business process.
[0026] In order to solve the above technical problems, an embodiment of the present application also provides a computer device, including a memory and a processor, wherein computer-readable instructions are stored in the memory, and when the processor executes the computer-readable instructions, the steps of the above process processing method are implemented.
[0027] In order to solve the above technical problems, an embodiment of the present application also provides a computer-readable storage medium, which stores computer-readable instructions. The computer-readable instructions can be executed by at least one processor to enable at least one processor to perform the steps of the above-mentioned process processing method.
[0028] Compared with the prior art, the embodiments of the present application mainly have the following beneficial effects: the embodiments of the present application can achieve comprehensive and flexible control of business processes by obtaining process configuration information of business processes, including plan configuration information, action configuration information and task configuration information. Compared with the traditional process control scheme based on state table or workflow, the present application has significant beneficial effects. First, the present application separates the control logic of the target business process from the business data through the introduction of process configuration information, thereby effectively avoiding problems such as dead loops caused by hard coding, and improving the scalability and flexibility of the system. Secondly, the present application does not need to introduce a complex third-party workflow engine, which reduces the learning cost and deployment cost, and avoids the dependence on a specific environment, making the system more lightweight and efficient. Finally, for complex business scenarios such as directed acyclic graphs, the present application provides an effective process control system that can automatically generate a task list and execute corresponding tasks, thereby realizing the automated processing of the target business process and improving the efficiency and quality of business processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0030] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0031] Figure 2 It is a flowchart of a process processing method provided by this application;
[0032] Figure 3 It is a structural schematic diagram of a process processing device provided by the present application;
[0033] Figure 4 It is a structural schematic diagram of a computer device provided by this application. DETAILED DESCRIPTION
[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0035] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0036] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0037] like Figure 1 As shown, the system architecture 100 may include a terminal device 101, a network 102 and a server 103. The terminal device 101 may be a laptop 1011, a tablet computer 1012 or a mobile phone 1013. The network 102 is used to provide a medium for a communication link between the terminal device 101 and the server 103. The network 102 may include various connection types, such as wired, wireless communication links or optical fiber cables.
[0038] The user can use the terminal device 101 to interact with the server 103 through the network 102 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 101, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0039] The terminal device 101 can be any electronic device with a display screen and supporting web browsing. In addition to a laptop computer 1011, a tablet computer 1012 or a mobile phone 1013, the terminal device 101 can also be an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV), a laptop computer, a desktop computer, etc.
[0040] The server 103 may be a server that provides various services, such as a background server that provides support for a web page displayed on the terminal device 101 .
[0041] It should be noted that the process processing method provided in the embodiment of the present application is generally executed by a server, and accordingly, the process processing device is generally set in the server.
[0042] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0043] Continue to refer Figure 2 , shows a flow chart of an embodiment of a process processing method according to the present application. The process processing method comprises the following steps:
[0044] Step S201, obtaining process configuration information of a business process, where the process configuration information includes plan configuration information, action configuration information, and task configuration information.
[0045] In this embodiment, the electronic device (eg, Figure 1 The server shown in the figure) can obtain the process configuration information through a wired connection or a wireless connection. It should be noted that the above wireless connection method may include but is not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.
[0046] Among them, a business process refers to a series of ordered activities or steps designed to achieve specific business goals. These activities or steps are logically related to each other and together constitute a complete process for completing a certain business function.
[0047] The process configuration information refers to a collection of configuration data that defines how a business process is executed, including the structure, execution order, conditional judgment, etc. of the process, which is used to guide the process management system on how to execute the business process according to preset rules. The process configuration information can include plan configuration information, action configuration information, and task configuration information.
[0048] Among them, planning configuration information refers to the configuration data in the process configuration information, specifically used to describe the overall planning of the business process, the phase division and the relationship between the stages. It defines the basic framework of the process and the overall strategy for advancing the process.
[0049] The action configuration information refers to the information in the process configuration information that describes in detail how each specific action (such as approval, notification, data processing, etc.) is executed, including the action type, triggering conditions, execution parameters, etc.
[0050] The task configuration information refers to the information used to specify how to convert actions in the action configuration information into executable tasks during the process execution, including task allocation rules, execution priority, task timeout processing, etc.
[0051] Step S202: when a process initiation request of a target business process is received, the action types of multiple actions indicated by the action information contained in the process initiation request are determined according to the plan configuration information and the action configuration information.
[0052] The target business process refers to a specific business process instance that needs to be started and executed currently, and is a specific business process determined by the process management system based on user requests or system trigger conditions.
[0053] Among them, the process initiation request refers to a request sent by a user or system to the process management system, which is used to start or trigger the execution of the target business process, and may include the process identifier, initiator information, action parameters, etc. of the target business process.
[0054] The action information refers to data used to indicate which specific actions are to be performed during a process initiation request or process execution.
[0055] Among them, multiple actions refer to a series of specific actions that need to be executed sequentially or in parallel in the target business process according to the process configuration information and process status. Each action corresponds to specific business logic and operations.
[0056] Among them, action type refers to the classification of actions according to their functions and properties, such as independent actions (i.e., independent actions refer to those actions in the target business process that have no pre-dependencies and can be started independently. Independent actions usually do not depend on other nodes in the process and can be executed as starting tasks), non-independent actions, etc. Different types of actions play different roles in the execution of the target business process.
[0057] Step S203: instantiate multiple actions according to the action type, and generate a task list of the target business process, where the task list includes multiple tasks.
[0058] Among them, instantiation refers to the process of converting the abstract action configuration in the process configuration information into a specific executable task during the execution of the target business process, that is, generating a specific task instance based on the action configuration information and the current process status.
[0059] Among them, the task list is generated according to multiple instantiated actions during the execution of the target business process. The task list contains a task list of all tasks to be executed. Each task corresponds to a specific action instance and is the core basis for the execution of the target business process.
[0060] The multiple tasks refer to all the tasks to be executed listed in the task list. Each task is a specific execution unit in the target business process, responsible for completing specific business logic and operations.
[0061] Step S204, acquiring task executors of the multiple tasks according to the task configuration information, and using the task executors to execute the multiple tasks to end the target business process.
[0062] Among them, the task executor is the component or module responsible for executing specific tasks. It can call corresponding resources and methods to complete the task according to the task configuration information and the attributes of the task itself, and is the key execution unit in the execution of the target business process.
[0063] Among them, execution refers to the process in which the task executor actually processes multiple tasks according to task configuration information and task attributes, such as data operations, status updates, result feedback, etc. It is the core link of the execution of the target business process.
[0064] The embodiment of the present application can achieve comprehensive and flexible control of business processes by obtaining process configuration information of business processes, including plan configuration information, action configuration information and task configuration information. Compared with traditional process control schemes based on state tables or workflows, the present application has significant beneficial effects. First, the present application separates the control logic of the target business process from the business data through the introduction of process configuration information, thereby effectively avoiding problems such as dead loops caused by hard coding, and improving the scalability and flexibility of the system. Secondly, the present application does not need to introduce a complex third-party workflow engine, which reduces the learning cost and deployment cost, while avoiding the dependence on a specific environment, making the system more lightweight and efficient. Finally, for complex business scenarios such as directed acyclic graphs, the present application provides an effective process control system that can automatically generate a task list and execute corresponding tasks, thereby realizing the automated processing of the target business process and improving the efficiency and quality of business processing.
[0065] In some optional implementations of this embodiment, step 202, determining the action types of the multiple actions indicated by the action information included in the process initiation request according to the plan configuration information and the action configuration information, specifically includes the following steps:
[0066] Parse the process initiation request to obtain the process identifier and action parameters of the target business process; match the process identifier with the plan configuration information to obtain a matching result, and determine the process plan configuration information of the target business process based on the matching result; obtain the target action configuration information associated with the process plan configuration information from the action configuration information; compare the action parameters with the target action configuration information to obtain a comparison result, and determine the action types of multiple actions in the process initiation request based on the comparison result.
[0067] In one example, the application of the technical solution provided by the present application to the loan approval process in the financial field is used as an example for explanation. First, the loan approval request can be parsed to obtain the process identifier (such as the loan type identifier) and action parameters of the target loan approval process. Then, the process identifier is matched with the preset plan configuration information to obtain a matching result. The plan configuration information contains the approval process plans corresponding to different loan types, such as credit loans, mortgage loans, etc., each of which has its own specific approval process. Based on the matching result, the process plan configuration information of the target loan approval process is determined. Then, the target action configuration information associated with the process plan configuration information is obtained from the action configuration information. The action configuration information contains the actions and conditions required to be executed at different approval stages, such as document review, credit assessment, risk assessment, etc. The action parameters are compared with the target action configuration information to obtain a comparison result. Based on the comparison result, the action type of multiple actions in the loan approval request is determined, such as whether it is an independent action or a non-independent action.
[0068] The embodiment of the present application can initiate a request by parsing the process, and can automatically identify and extract the process identifier and action parameters of the target business process without manual intervention, thereby realizing the automatic start of the process. Matching the process identifier with the plan configuration information, and comparing the action parameters with the target action configuration information, are all based on preset rules and algorithms, and can intelligently determine the process plan configuration information and action type, reducing the risk of human error. As independent configuration data, the plan configuration information and action configuration information can be easily modified and expanded to adapt to changes in business processes and the emergence of new requirements. When the business process changes, only the corresponding configuration information needs to be updated without modifying the core processing logic, thereby improving the flexibility and scalability of the system.
[0069] In some optional implementations of this embodiment, step 203, instantiating multiple actions according to the action type to generate a task list of the target business process, specifically includes the following steps:
[0070] If the action type includes a first target action type, then an action whose action type is the first target action type is determined from the multiple actions that initiate the request as the first target action, and the action information of the first target action is obtained; the action information of the first target action is instantiated to generate a first task list for the first target action, and the first task list includes multiple first tasks; if the action type also includes a second target action type, then an action whose action type is the second target action type is determined from the multiple actions that initiate the request as the second target action, and the action information of the second target action is obtained; the action information of the second target action is instantiated to generate a second task list for the second target action, and the second task list includes multiple second tasks; the first task list and the second task list are merged to obtain a task list for the target business process, and the task list includes multiple first tasks and multiple second tasks.
[0071] In one example, the technical solution of this embodiment is described in detail by taking the enterprise order processing process as an example. First, an order processing request containing multiple actions can be received, and these actions can include order review, inventory check, payment confirmation, etc. It is determined whether the action type contains the first target action type of independent action. If it is included, the action with the action type of independent action is filtered out from all actions as the first target action. Then, the action information of the first target action is instantiated to generate a first task list. The list includes multiple first tasks. Then, it can continue to determine whether the action type contains the second target action type of non-independent action. If it is included, the action with the action type of non-independent action is filtered out as the second target action, and its action information is obtained. The action information of the second target action is instantiated to generate a second task list. Finally, the first task list and the second task list can be merged to obtain a task list for the complete order processing process. The task list covers all necessary tasks from order review to inventory check, ensuring the smooth progress of the order processing process.
[0072] The embodiment of the present application can quickly generate a targeted task list by automatically identifying and classifying the action type, thereby improving the efficiency of generating the task list. As the demand adjusts, the business process often needs to be flexibly adjusted. The solution provided by this embodiment can support the dynamic generation of the task list according to the action type in the initiated request, so that the business process can quickly adapt to new needs and scenarios.
[0073] In some optional implementations of this embodiment, the step of “instantiating the action information of the first target action to generate a first task list of the first target action” specifically includes the following steps:
[0074] Obtain an attribute list corresponding to the action information of the first target action, instantiate the action information of the first target action according to the attribute values of the attribute list, and obtain the instantiated first target action information; extract multiple key information of the instantiated first target action information, integrate the multiple key information, and generate a first task list for the first target action.
[0075] In an example, the technical solution of this embodiment can be described in detail by taking the leave approval process as an example. First, the attribute list corresponding to the action information of the first target action "submit leave application" can be obtained. The attribute list includes but is not limited to the name of the person who applied for leave, the length of leave, the type of leave, the start and end dates of leave, etc. According to these attribute values, the action information of "submit leave application" is instantiated to obtain the instantiated first target action information, such as "Zhang San applies for sick leave from May 1, 2023 to May 3, 2023, a total of 3 days". Then, multiple key information of the instantiated first target action information is extracted, including the person who applied for leave "Zhang San", the length of leave "3 days", the type of leave "sick leave" and the start and end dates of leave "May 1, 2023 to May 3, 2023". These key information are integrated to generate the first task list of the first target action, namely "Zhang San sick leave approval task list", which lists all the key information of the leave application in detail, so that the approver can quickly understand and make an approval decision.
[0076] The embodiment of the present application can reduce the steps of manual input and review by automatically obtaining the attribute list corresponding to the action information of the first target action and performing instantiation processing according to the attribute value, thereby significantly improving the automation level of the target business process. By flexibly configuring the attribute list and instantiation rules, the embodiment can adapt to different approval requirements and business processes.
[0077] In some optional implementations of this embodiment, the step of “instantiating the action information of the first target action according to the attribute values of the attribute list to obtain the instantiated first target action information” specifically includes the following steps:
[0078] Obtain a pre-established action attribute mapping library; obtain an attribute list matching the action information of the first target action from the action attribute mapping library; extract each attribute value in the attribute list, and determine the instantiation parameters of the first target action according to each attribute value; adopt a preset instantiation model, take the instantiation parameters as input, instantiate the action information of the first target action, and obtain the instantiated first target action information.
[0079] In one example, taking leave approval as an example, the method of this embodiment can be specifically implemented as follows: First, a mapping library containing leave actions and their related attributes can be established, such as the person who takes leave, the number of days for leave, the type of leave (personal leave / sick leave / annual leave, etc.), the start and end time of leave, etc. When a leave application is received, the corresponding attribute list is obtained from the mapping library according to the type of leave action, and the value of each attribute is extracted, such as the person who takes leave is Zhang San, the number of days for leave is 5 days, the type of leave is personal leave, and the start and end time of leave is May 1, 2023 to May 5, 2023. According to the extracted attribute values, the instantiation parameters of the leave application are determined, and the preset instantiation model is used, and the instantiation parameters are used as input to instantiate the leave application to generate an instantiated leave application containing detailed leave information.
[0080] The embodiment of the present application can quickly find the attribute list that matches the first target action through the pre-established action attribute mapping library, thereby improving efficiency. The attribute values in the attribute list can be directly used to determine the instantiation parameters, reducing the possibility of human judgment or erroneous input and improving accuracy. The action attribute mapping library provides a standardized representation method for action information, so that action information from different sources and in different formats can be processed under the same framework. The instantiation process follows certain rules and processes to ensure the standardization and consistency of the instantiation results.
[0081] In some optional implementations of this embodiment, the step of “integrating multiple key information to generate a first task list for the first target action” may specifically include the following steps:
[0082] Analyze multiple key information, determine the logical relationship and business relevance between the multiple key information, and obtain analysis results; classify and integrate the multiple key information according to the analysis results to obtain classified and integrated information; use a preset task model for the classified and integrated information to output a first task list for a first target action.
[0083] In one example, the procurement approval process within an enterprise can be used as an example for illustration. First, multiple key information of the instantiated procurement application action information can be extracted, including but not limited to the applicant, application department, purchased items, quantity, unit price, budget amount, etc. Subsequently, these key information are analyzed to determine the logical relationship and business relevance between them. For example, confirm whether the applicant belongs to the application department, whether the quantity and unit price of the purchased items match the budget amount, etc. Based on the analysis results, the key information is classified and integrated. The applicant, application department, etc. are classified as applicant information; the purchased items, quantity, unit price, etc. are classified as purchased item information. Finally, the preset task model is used to output the first task list of the procurement application based on the classified and integrated information, including the approver, approval node, approval opinion, etc.
[0084] The embodiment of the present application can ensure that all information related to the first target action is fully considered by extracting multiple key information and conducting in-depth analysis of the information. The judgment of logical relationships and business relevance helps to identify the inherent connections between key information and avoid omission or misuse of key information. By classifying and integrating key information based on the analysis results, the different aspects and links involved in the first target action can be clearly displayed.
[0085] In some optional implementations of this embodiment, step S204, obtaining a task executor according to the task configuration information, may specifically include the following steps:
[0086] Based on the task configuration information, the task types of the multiple actions are determined, and based on the task types, the task processor types are determined; and in a preset task executor library, a task processor matching the task processor type is obtained.
[0087] In one example, the procurement approval process within an enterprise can be used as an example for illustration. Task configuration information may include the item category, amount range, approval level, etc. in the purchase requisition. These configuration information can be parsed, and according to preset rules and algorithms, the current task can be determined to be a task type such as "large-amount procurement approval" or "small-amount procurement quick approval". After determining the task type, the required task processor type can be further determined based on the mapping relationship between the task type and the task processor type. For example, the "large-amount procurement approval" task corresponds to the "multi-level approval processor", and the "small-amount procurement quick approval" task corresponds to the "quick approval processor". The preset task executor library can contain multiple types of task processors. After determining the task processor type, the matching task processor can be searched and obtained in the task executor library. For example, if it is determined that a "multi-level approval processor" is required, a processor instance of this type is obtained from the task executor library.
[0088] The embodiment of the present application can flexibly respond to the needs of different task types through dynamic matching of task configuration information and task processor types, without the need to write specific processing code for each task type. Developers only need to maintain the task executor library and the corresponding mapping relationship to realize the processing of multiple task types, reducing the workload of code writing and maintenance. It can realize automatic selection of appropriate task processors according to task types to ensure efficient and accurate execution of approval processes.
[0089] In some optional implementations of this embodiment, step S204, using a task executor to execute multiple tasks, may specifically include the following steps:
[0090] Based on the plan configuration information, the priority level of each task is determined, and the task processor is used to execute multiple tasks in sequence according to the priority level.
[0091] In one example, the plan configuration information can be parsed to obtain a preset priority rule. According to the priority rule, a priority level is determined for each task. The priority level can be represented by a number, for example, the smaller the number, the higher the priority. According to the task priority level, the tasks are arranged in order from high to low priority, and then the corresponding task processors are called in sequence to execute the tasks.
[0092] The embodiments of the present application can quickly respond to the process initiation request of the target business process by automatically determining the task priority and executing the tasks in order, thereby reducing waiting time and processing cycle. The task priority can be flexibly set according to actual needs without relying on developers to manually adjust the code. Executing tasks in order of priority helps ensure that critical tasks are processed first.
[0093] It should be emphasized that in order to further ensure the privacy and security of the planning configuration information, action configuration information and task configuration information of the above process configuration information, the planning configuration information, action configuration information and task configuration information of the above process configuration information can also be stored in a node of a blockchain.
[0094] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0095] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0096] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0097] Further references Figure 3 , as a response to the above Figure 2 In order to realize the method shown in the figure, the present application provides an embodiment of a process processing device, and the device embodiment is Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0098] like Figure 3 As shown, the process processing device 400 of this embodiment includes: an information acquisition module 401, a receiving module 402, an instantiation module 403 and an executor acquisition module 404. Among them:
[0099] The information acquisition module 401 is used to acquire the process configuration information of the business process, where the process configuration information includes plan configuration information, action configuration information and task configuration information;
[0100] The receiving module 402 is used to determine, when receiving a process initiation request of a target business process, the action types of the multiple actions indicated by the action information contained in the process initiation request according to the plan configuration information and the action configuration information;
[0101] An instantiation module 403 is used to instantiate multiple actions according to the action type, and generate a task list of the target business process, where the task list includes multiple tasks;
[0102] The executor acquisition module 404 is used to acquire the task executors of the multiple tasks according to the task configuration information, and use the task executors to execute the multiple tasks to end the target business process.
[0103] The embodiment of the present application can achieve comprehensive and flexible control of business processes by obtaining process configuration information of business processes, including plan configuration information, action configuration information and task configuration information. Compared with traditional process control schemes based on state tables or workflows, the present application has significant beneficial effects. First, the present application separates the control logic of the target business process from the business data through the introduction of process configuration information, thereby effectively avoiding problems such as dead loops caused by hard coding, and improving the scalability and flexibility of the system. Secondly, the present application does not need to introduce a complex third-party workflow engine, which reduces the learning cost and deployment cost, while avoiding the dependence on a specific environment, making the system more lightweight and efficient. Finally, for complex business scenarios such as directed acyclic graphs, the present application provides an effective process control system that can automatically generate a task list and execute corresponding tasks, thereby realizing the automated processing of the target business process and improving the efficiency and quality of business processing.
[0104] In one embodiment, the receiving module 402 includes:
[0105] The parsing submodule is used to parse the process initiation request and obtain the process identifier and action parameters of the target business process;
[0106] A matching submodule is used to match the process identifier with the plan configuration information to obtain a matching result, and based on the matching result, determine the process plan configuration information of the target business process;
[0107] A first acquisition submodule is used to acquire target action configuration information associated with the process plan configuration information from the action configuration information;
[0108] The comparison submodule is used to compare the action parameters with the target action configuration information to obtain the comparison result, and determine the action types of multiple actions in the process initiation request based on the comparison result.
[0109] The embodiment of the present application can initiate a request by parsing the process, and can automatically identify and extract the process identifier and action parameters of the target business process without manual intervention, thereby realizing the automatic start of the process. Matching the process identifier with the plan configuration information, and comparing the action parameters with the target action configuration information, are all based on preset rules and algorithms, and can intelligently determine the process plan configuration information and action type, reducing the risk of human error. As independent configuration data, the plan configuration information and action configuration information can be easily modified and expanded to adapt to changes in business processes and the emergence of new requirements. When the business process changes, only the corresponding configuration information needs to be updated without modifying the core processing logic, thereby improving the flexibility and scalability of the system.
[0110] In one embodiment, the instantiation module 403 includes:
[0111] A first determination submodule, configured to, if the action type includes a first target action type, determine an action whose action type is the first target action type from the multiple actions that initiate the request as the first target action, and obtain action information of the first target action;
[0112] A first instantiation submodule, configured to instantiate the action information of the first target action and generate a first task list of the first target action, wherein the first task list includes a plurality of first tasks;
[0113] A second determination submodule is configured to, if the action type further includes a second target action type, determine an action whose action type is the second target action type from the multiple actions that initiate the request as the second target action, and obtain action information of the second target action;
[0114] A second instantiation submodule, configured to instantiate the action information of the second target action and generate a second task list of the second target action, wherein the second task list includes a plurality of second tasks;
[0115] The merging submodule is used to merge the first task list and the second task list to obtain a task list of the target business process, where the task list includes a plurality of first tasks and a plurality of second tasks.
[0116] The embodiment of the present application can quickly generate a targeted task list by automatically identifying and classifying the action type, thereby improving the efficiency of generating the task list. As the demand adjusts, the business process often needs to be flexibly adjusted. The solution provided by this embodiment can support the dynamic generation of the task list according to the action type in the initiated request, so that the business process can quickly adapt to new needs and scenarios.
[0117] In one embodiment, the first instantiation submodule is also used to obtain an attribute list corresponding to the action information of the first target action, and instantiate the action information of the first target action according to the attribute values of the attribute list to obtain the instantiated first target action information; extract multiple key information of the instantiated first target action information, integrate the multiple key information, and generate a first task list for the first target action.
[0118] The embodiment of the present application can reduce the steps of manual input and review by automatically obtaining the attribute list corresponding to the action information of the first target action and performing instantiation processing according to the attribute value, thereby significantly improving the automation level of the target business process. By flexibly configuring the attribute list and instantiation rules, the embodiment can adapt to different approval requirements and business processes.
[0119] In one embodiment, the first instantiation submodule is also used to obtain a pre-established action attribute mapping library; obtain an attribute list that matches the action information of the first target action from the action attribute mapping library; extract each attribute value in the attribute list, and determine the instantiation parameters of the first target action according to each attribute value; use a preset instantiation model, take the instantiation parameters as input, instantiate the action information of the first target action, and obtain instantiated first target action information.
[0120] The embodiment of the present application can quickly find the attribute list that matches the first target action through the pre-established action attribute mapping library, thereby improving efficiency. The attribute values in the attribute list can be directly used to determine the instantiation parameters, reducing the possibility of human judgment or erroneous input and improving accuracy. The action attribute mapping library provides a standardized representation method for action information, so that action information from different sources and in different formats can be processed under the same framework. The instantiation process follows certain rules and processes to ensure the standardization and consistency of the instantiation results.
[0121] In one embodiment, the first instantiation sub-module is also used to analyze multiple key information, determine the logical relationship and business relevance between the multiple key information, and obtain analysis results; based on the analysis results, the multiple key information are classified and integrated to obtain classified and integrated information; for the classified and integrated information, a preset task model is used to output a first task list for the first target action.
[0122] The embodiment of the present application can ensure that all information related to the first target action is fully considered by extracting multiple key information and conducting in-depth analysis of the information. The judgment of logical relationships and business relevance helps to identify the inherent connections between key information and avoid omission or misuse of key information. By classifying and integrating key information based on the analysis results, the different aspects and links involved in the first target action can be clearly displayed.
[0123] In one embodiment, the actuator acquisition module 404 includes:
[0124] A third determination submodule is used to determine the task types of the plurality of actions based on the task configuration information, and determine the task processor type based on the task type;
[0125] The second acquisition submodule is used to acquire a task processor that matches the task processor type in a preset task executor library.
[0126] The embodiment of the present application can flexibly respond to the needs of different task types through dynamic matching of task configuration information and task processor types, without the need to write specific processing code for each task type. Developers only need to maintain the task executor library and the corresponding mapping relationship to realize the processing of multiple task types, reducing the workload of code writing and maintenance. It can realize automatic selection of appropriate task processors according to task types to ensure efficient and accurate execution of approval processes.
[0127] In one embodiment, the actuator acquisition module 404 includes:
[0128] The fourth determination submodule is used to determine the priority level of each task based on the plan configuration information, and use the task processor to execute multiple tasks in sequence according to the priority level.
[0129] The embodiments of the present application can quickly respond to the process initiation request of the target business process by automatically determining the task priority and executing the tasks in order, thereby reducing waiting time and processing cycle. The task priority can be flexibly set according to actual needs without relying on developers to manually adjust the code. Executing tasks in order of priority helps ensure that critical tasks are processed first.
[0130] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.
[0131] The computer device 6 includes a memory 61, a processor 62, and a network interface 63 that are interconnected and communicated through a system bus. It should be noted that the figure only shows a computer device 6 having a memory 61, a processor 62, and a network interface 63, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASIC), programmable gate arrays (FPGA), digital signal processors (DSP), embedded devices, etc.
[0132] Computer devices can be computing devices such as desktop computers, notebooks, PDAs, and cloud servers. Computer devices can interact with users through keyboards, mice, remote controls, touch pads, or voice control devices.
[0133] The memory 61 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 61 can be an internal storage unit of the computer device 6, such as a hard disk or memory of the computer device 6. In other embodiments, the memory 61 can also be an external storage device of the computer device 6, such as a plug-in hard disk equipped on the computer device 6, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 61 can also include both the internal storage unit of the computer device 6 and its external storage device. In this embodiment, the memory 61 is generally used to store the operating system and various application software installed on the computer device 6, such as computer-readable instructions of the process processing method, etc. In addition, the memory 61 can also be used to temporarily store various types of data that have been output or are to be output.
[0134] The processor 62 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip in some embodiments. The processor 62 is generally used to control the overall operation of the computer device 6. In this embodiment, the processor 62 is used to run computer-readable instructions stored in the memory 61 or process data, such as computer-readable instructions for running a process processing method.
[0135] The network interface 63 may include a wireless network interface or a wired network interface, and the network interface 63 is generally used to establish a communication connection between the computer device 6 and other electronic devices.
[0136] The embodiment of the present application can achieve comprehensive and flexible control of business processes by obtaining process configuration information of business processes, including plan configuration information, action configuration information and task configuration information. Compared with traditional process control schemes based on state tables or workflows, the present application has significant beneficial effects. First, the present application separates the control logic of the target business process from the business data through the introduction of process configuration information, thereby effectively avoiding problems such as dead loops caused by hard coding, and improving the scalability and flexibility of the system. Secondly, the present application does not need to introduce a complex third-party workflow engine, which reduces the learning cost and deployment cost, while avoiding the dependence on a specific environment, making the system more lightweight and efficient. Finally, for complex business scenarios such as directed acyclic graphs, the present application provides an effective process control system that can automatically generate a task list and execute corresponding tasks, thereby realizing the automated processing of the target business process and improving the efficiency and quality of business processing.
[0137] The present application also provides another implementation, namely, providing a computer-readable storage medium, which stores computer-readable instructions. The computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the process processing method as described above.
[0138] The embodiment of the present application can achieve comprehensive and flexible control of business processes by obtaining process configuration information of business processes, including plan configuration information, action configuration information and task configuration information. Compared with traditional process control schemes based on state tables or workflows, the present application has significant beneficial effects. First, the present application separates the control logic of the target business process from the business data through the introduction of process configuration information, thereby effectively avoiding problems such as dead loops caused by hard coding, and improving the scalability and flexibility of the system. Secondly, the present application does not need to introduce a complex third-party workflow engine, which reduces the learning cost and deployment cost, while avoiding the dependence on a specific environment, making the system more lightweight and efficient. Finally, for complex business scenarios such as directed acyclic graphs, the present application provides an effective process control system that can automatically generate a task list and execute corresponding tasks, thereby realizing the automated processing of the target business process and improving the efficiency and quality of business processing.
[0139] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0140] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A process processing method, characterized in that: The steps include: Acquire process configuration information of the business process, wherein the process configuration information includes plan configuration information, action configuration information, and task configuration information; When receiving a process initiation request of a target business process, determining, according to the plan configuration information and the action configuration information, action types of multiple actions indicated by the action information contained in the process initiation request; Instantiating the multiple actions according to the action type to generate a task list for the target business process, the task list including multiple tasks; According to the task configuration information, task executors of the multiple tasks are obtained, and the task executors are used to execute the multiple tasks to end the target business process.
2. The method according to claim 1, characterized in that: The step of determining, according to the plan configuration information and the action configuration information, the action types of the multiple actions indicated by the action information included in the process initiation request specifically includes: Parsing the process initiation request to obtain the process identifier and action parameters of the target business process; Matching the process identifier with the plan configuration information to obtain a matching result, and determining the process plan configuration information of the target business process based on the matching result; Acquire target action configuration information associated with the process plan configuration information from the action configuration information; The action parameters are compared with the target action configuration information to obtain a comparison result, and based on the comparison result, the action types of the multiple actions in the process initiation request are determined.
3. The method according to claim 1, characterized in that The step of instantiating the multiple actions according to the action type to generate a task list for the target business process includes: If the action type includes a first target action type, determining an action whose action type is the first target action type from the multiple actions for initiating the request as a first target action, and acquiring action information of the first target action; Instantiate the action information of the first target action to generate a first task list of the first target action, wherein the first task list includes a plurality of first tasks; If the action type also includes a second target action type, determining an action whose action type is the second target action type from the multiple actions for initiating the request as the second target action, and acquiring action information of the second target action; Instantiate the action information of the second target action to generate a second task list of the second target action, wherein the second task list includes a plurality of second tasks; The first task list and the second task list are merged to obtain a task list of the target business process, where the task list includes the multiple first tasks and the multiple second tasks.
4. The method according to claim 3, characterized in that The step of instantiating the action information of the first target action to generate a first task list for the first target action specifically includes: Acquire an attribute list corresponding to the action information of the first target action, and instantiate the action information of the first target action according to the attribute values of the attribute list to obtain the instantiated first target action information; Extract multiple key information of the instantiated first target action information, integrate the multiple key information, and generate a first task list for the first target action.
5. The method according to claim 4, characterized in that The step of instantiating the action information of the first target action according to the attribute value of the attribute list to obtain the instantiated first target action information specifically includes: Get a library of pre-built action attribute mappings; Acquire, from the action attribute mapping library, a list of attributes matching the action information of the first target action; Extracting each attribute value in the attribute list, and determining the instantiation parameter of the first target action according to each attribute value; A preset instantiation model is adopted, the instantiation parameters are taken as input, and the action information of the first target action is instantiated to obtain instantiated first target action information.
6. The method according to claim 4, characterized in that The step of integrating the plurality of key information to generate a first task list for the first target action specifically includes: Analyze the multiple key information, determine the logical relationship and business relevance between the multiple key information, and obtain analysis results; According to the analysis results, the plurality of key information are classified and integrated to obtain classified and integrated information; The classified and integrated information is subjected to a preset task model to output a first task list of the first target action.
7. The method according to claim 1, characterized in that The step of obtaining a task executor according to the task configuration information specifically includes: Determine task types of the plurality of actions based on the task configuration information, and determine a task processor type based on the task types; Obtain a task processor that matches the task processor type in a preset task executor library; The step of using the task executor to execute the multiple tasks specifically includes: Based on the plan configuration information, the priority level of each task is determined, and the task processor is used to sequentially execute the multiple tasks according to the priority level.
8. A process processing device, characterized in that: include: An information acquisition module is used to acquire process configuration information of a business process, wherein the process configuration information includes plan configuration information, action configuration information, and task configuration information; A receiving module, configured to, when receiving a process initiation request of a target business process, determine, according to the plan configuration information and the action configuration information, the action types of the multiple actions indicated by the action information contained in the process initiation request; An instantiation module, used to instantiate the multiple actions according to the action type, and generate a task list for the target business process, wherein the task list includes multiple tasks; The executor acquisition module is used to acquire the task executors of the multiple tasks according to the task configuration information, and use the task executors to execute the multiple tasks to end the target business process.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer-readable instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 7.