Process template configuration method and related equipment

By generating and updating the node information of the process template, the problem of poor adaptability of the existing approval engine is solved, and the automatic change and flexible adjustment of the approval process are achieved.

CN114626811BActive Publication Date: 2025-09-26CHINA CONSTRUCTION BANK +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210240784.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-10
Publication Date
2025-09-26
Estimated Expiration
2042-03-10

AI Technical Summary

Technical Problem

The pre-configured process templates of the existing approval engine result in poor adaptability and are unable to meet users' needs for changing or adding new approval processes.

Method used

By receiving input, a process template is generated, and the node information in the target object is updated according to the node information to determine the executor, thereby realizing automatic change of the approval process.

Benefits of technology

The applicability of the approval engine has been improved, and it supports dynamic adjustment of process templates to meet users' changes and new needs during operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114626811B_ABST
    Figure CN114626811B_ABST
Patent Text Reader

Abstract

The present application discloses a process template configuration method and related equipment. A first input for configuring a first process template is received, and the first process template is configured to approve a first category of matters; in response to the first input, a first process template is generated; based on the node information of the first process template, the node information in the target object is updated; wherein, in the updated target object, the target node information corresponding to the first category of matters is set to the node information of the first process template, and the target node information is used to determine the target executor for executing the first category of matters. The present application can improve the applicability of the approval engine.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing technology, and in particular relates to a process template configuration method and related equipment. Background Art

[0002] With the rapid development of the internet, more and more matters are shifting from offline to online approval and processing. Currently, an exhaustive approach is used to pre-configure process templates corresponding to various types of matters for the approval engine, enabling it to implement matter approvals through these process templates. Because existing approval engines' process templates are pre-configured, when users need to change the approval process for a certain category of matters, or add a new approval process for a certain category of matters, the existing approval engine is unable to meet these user needs and approve these matters. This demonstrates the poor adaptability of existing approval engines. Summary of the Invention

[0003] The embodiments of the present application provide a process template configuration method and related devices to solve the problem of poor adaptability of existing approval engines.

[0004] In a first aspect, an embodiment of the present application provides a process template configuration method, the method comprising:

[0005] receiving a first input for configuring a first process template, wherein the first process template is configured to approve a first category of matters;

[0006] generating a first process template in response to the first input;

[0007] Update the node information in the target object according to the node information of the first process template;

[0008] Among them, in the updated target object, the target node information corresponding to the first type of matter is set as the node information of the first process template, and the target node information is used to determine the target executor for executing the first type of matter.

[0009] In a second aspect, an embodiment of the present application provides a process template configuration device, the device comprising:

[0010] A first receiving module is configured to receive a first input for configuring a first process template, wherein the first process template is configured to approve a first category of matters;

[0011] A generating module, configured to generate a first process template in response to the first input;

[0012] An updating module, configured to update the node information in the target object according to the node information of the first process template;

[0013] Among them, in the updated target object, the target node information corresponding to the first type of matter is set as the node information of the first process template, and the target node information is used to determine the target executor for executing the first type of matter.

[0014] In a third aspect, an embodiment of the present application provides a process template configuration device, the device comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the process template configuration method as described in the first aspect is implemented.

[0015] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the process template configuration method as described in the first aspect is implemented.

[0016] In a fifth aspect, an embodiment of the present application provides a computer program product, characterized in that when the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the process template configuration method as described in the first aspect.

[0017] During operation, the approval engine of this application can receive input for configuring a process template, generate a new process template, and update the node information stored in the target object based on the node information of the new process template. Based on the updated node information, the executor used to execute the item can be determined, thereby automatically changing the item approval process. As can be seen, the embodiment of this application can meet the needs of users to modify and add process templates for certain types of items during the operation of the approval engine, realize automatic changes to the approval process of related items, and thus improve the applicability of the approval engine. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0019] Figure 1 This is one of the flow diagrams of the process template configuration method provided in the embodiment of the present application;

[0020] Figure 2 This is a schematic diagram of a process template configuration interface provided in an embodiment of the present application;

[0021] Figure 3 This is the second flow diagram of the process template configuration method provided in the embodiment of the present application;

[0022] Figure 4It is a structural diagram of the process template configuration device provided in an embodiment of the present application;

[0023] Figure 5 It is a structural diagram of the process template configuration device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is merely to provide a better understanding of the present application by illustrating the examples of the present application.

[0025] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, the elements defined by the phrase "comprising..." do not exclude the presence of other identical elements in the process, method, article, or device comprising the elements.

[0026] For ease of understanding, some of the contents involved in the embodiments of this application are described below:

[0027] A process template can be understood as a process definition for a category of matters, or an approval process set up for a category of matters. In an embodiment of the present application, if a process template is a process definition for a certain category of matters, the process template can be considered associated with the category of matters, and the approval process for the category of matters can flow according to the process template, that is, the process template is configured to approve the category of matters.

[0028] The process template includes at least one node. This application may include two types of nodes: default nodes and custom nodes. Among them, the default node can be understood as a node with fixed functions, such as: save, submit, submit next step, return to previous step, pass, reset, invalidate and other nodes. The custom node can be understood as a node whose function can be adjusted according to the actual needs of the user, thereby realizing functional customization and improving the flexibility of the approval process. During implementation, users can customize the functions of the custom node through the agreed interface.

[0029] The function of a node can be implemented by the executor corresponding to the node. In the embodiment of the present application, the same node can correspond to the same executor. For example, template TA and template TB both contain node NA, which means there are two nodes NA, but these two nodes can correspond to one executor EA.

[0030] Nodes can be defined through node information, which may include at least one of the following: node identification information (such as the name of the node), node type information, node attribute information, and node location information in the process template. The node attribute information can be used by the executor corresponding to the node to execute the function of the node.

[0031] A process engine can be understood as a specific implementation of a process template. A process engine corresponds to a specific execution item, that is, a process engine is used to execute a specific item.

[0032] The embodiments of the present application are described in detail below through some embodiments and their application scenarios in conjunction with the accompanying drawings.

[0033] See also Figure 1 , Figure 1 This is one of the flowcharts of the process template configuration method provided in the embodiment of the present application. The process template configuration method in the embodiment of the present application can be executed by the approval engine.

[0034] like Figure 1 As shown, the process template configuration method of the present application may include the following steps:

[0035] Step 101: Receive a first input for configuring a first process template, where the first process template is configured to approve a first category of matters.

[0036] Step 102: Generate a first process template in response to the first input.

[0037] In an embodiment of the present application, when a user needs to modify the approval process of a certain type of matter in the approval engine, or add a new approval process for a certain type of matter in the approval engine, the approval engine can be triggered to generate a new process template by executing the first input, thereby realizing the modification or addition of the approval process for a certain type of matter, thereby improving the applicability of the approval engine.

[0038] In a specific implementation, in one embodiment, the first input may be an input of dragging a node. For example, the first input is an input of dragging P nodes, and the first generated template is generated based on the P nodes, where P is an integer greater than 1. In this embodiment, the user can configure the process template by dragging nodes, and the approval engine can determine the position of the nodes in the process template based on the order in which the nodes are dragged.

[0039] In another implementation, the first input may be an input for selecting the first process template from at least two process templates, that is, the user may configure the process template by selecting a process template from a plurality of provided process templates.

[0040] It can be understood that the above two implementation methods for the first input are only examples and do not limit the specific implementation method of the first input. Any input that can implement the process template configuration can fall within the protection scope of this application.

[0041] It should be noted that steps 101 and 102 can occur while the approval engine is running. This allows the engine to be redeveloped and launched when a user requests a modification or addition to the approval process, thereby improving its reliability. It is worth noting that, in the case of a modification to the approval process, matters initiated before the modification can be processed according to the pre-modification approval process, and matters initiated after the modification can be processed according to the modified approval process.

[0042] In addition, the association between the first process template and the first category of matters can occur before, after or during the generation of the first process template, and can be determined specifically based on actual needs. The embodiment of the present application does not limit this. For example: after the user triggers the approval engine to generate the first process template through the first input, the user can execute another input to associate the first process template and the first category of matters; or, before executing the first input, the user can first associate the first category of matters with the process template to be configured.

[0043] Step 103: Update the node information in the target object according to the node information of the first process template, wherein, in the updated target object, the target node information corresponding to the first type of matter is set to the node information of the first process template, and the target node information is used to determine the target executor for executing the first type of matter.

[0044] In this embodiment of the present application, the node information corresponding to each process template, that is, the node information of each process template's nodes, can be stored in the target object. Thus, when the process engine executes a certain item, it can obtain the node information corresponding to the process template to which the item belongs from the target object, and based on the obtained node information, determine the executor for executing the item, and then implement the approval of the item through the determined executor.

[0045] After the first process template is configured, the approval engine can update the node information corresponding to the first process template to the target object, so as to determine the target executor for executing the first type of matters based on the node information corresponding to the first process template, and then execute the approval process of the first type of matters through the target executor.

[0046] In specific implementation, the target object can be the memory of the distributed application coordination service software (zookeeper); or a database, such as a relational database management system (MySQL). The specific object can be determined according to actual needs, and the embodiment of this application does not limit this.

[0047] In the process template configuration method of the present application, the approval engine can receive input for configuring the process template during operation, generate a new process template, and update the node information stored in the target object based on the node information of the new process template. Based on the updated node information, the executor used to execute the item is determined, thereby achieving automatic changes to the item approval process. It can be seen that the embodiments of the present application can meet the needs of users to modify and add process templates for certain types of items during the operation of the approval engine, achieving automatic changes to the approval process of related items, thereby improving the applicability of the approval engine.

[0048] In addition, in this application, the approval of matters can be executed based on the node information corresponding to the associated process template. This allows the approval engine of this application to be embedded in applications without the need for separate deployment, thereby further improving the applicability of the approval engine. During implementation, the approval engine can be embedded in applications through Jar package dependency annotations or configuration files. The embedded application can be a web application developed based on the Spring framework, but is not limited to this. Of course, it is understandable that the approval engine of this application can also be deployed and run as a separate application. The specific details can be determined based on actual needs, and this embodiment of the application does not limit this.

[0049] The following is an explanation of the implementation of the first category of matters:

[0050] In some embodiments, after updating the node information in the target object according to the node information of the first process template, the method may further include:

[0051] Upon receiving an approval request for a target matter, calling a first process engine to perform a first operation, the first operation including:

[0052] Monitoring node information corresponding to the first category of matters in the target object;

[0053] Determine the target executor according to the monitored target node information;

[0054] Executing the approval process of the target matter through the target executor;

[0055] Among them, the target matter belongs to the first category of matters, and the first process engine is the process engine corresponding to the first process template.

[0056] In specific implementation, when receiving an approval request for a target matter, the approval engine may respond to the approval request by calling the process engine corresponding to the first process template to perform a first operation, so as to implement the approval of the target matter through the process engine.

[0057] During implementation, the process engine corresponding to the first process template may obtain the target node information from the target object, so as to execute the approval process of the target matter according to the target node information.

[0058] During specific implementation, the process engine corresponding to the first process template can obtain the target node information in a variety of ways. In one embodiment, after the target object updates the node information, the approval engine can autonomously send the corresponding node information to the process engines corresponding to each process template, such as sending the node information corresponding to the first category of matters to the process engine corresponding to the first process template. In this way, after receiving the approval request, the approval engine can directly call the corresponding process engine to perform process approval. In another embodiment, after being called, the process engine can actively monitor the corresponding node information in the target object, so as to use the monitored node information to realize the process approval of the matter. In this way, the approval engine does not need to send node information to all process engines, thereby reducing the operating burden of the approval engine.

[0059] In an embodiment of the present application, the approval of a matter can be executed by the executor corresponding to each node in its associated process template. Specifically, when the approval process of a matter flows to a certain node, the executor corresponding to the node executes the specific function of the node, thereby realizing the automatic flow (or automatic change) of the approval process node, thereby improving the autonomy of the approval process flow.

[0060] As can be seen, in this application, when an approval request for a certain matter associated with a new process template is received, the process engine corresponding to the new process template can be called to perform the following operations: determining a target executor based on the node information corresponding to the new process template obtained from the updated target object; and executing the approval process for the matter through the target executor. This can achieve automatic changes to the approval process, thereby improving the reliability of matter processing.

[0061] In the embodiment of the present application, the process engine can monitor the target node information from the target object in a variety of ways, as described below:

[0062] Method 1

[0063] The target object is the memory of the distributed application coordination service software Zookeeper;

[0064] described

[0065] Monitoring node information corresponding to the first type of event in the target object includes:

[0066] The node information corresponding to the first type of events in the memory is monitored through the zookeeper listener.

[0067] In method 1, the approval engine of this application can use Zookeeper to implement changes or additions to the approval process, as well as automatic changes to approval process nodes. Specifically, the approval engine can store node information in Zookeeper's memory, and the process engine can monitor the node information through Zookeeper's listener to select the appropriate executor based on the monitored node information to achieve automatic changes to the approval process, thereby improving the autonomy of the approval process flow.

[0068] Method 2

[0069] The target object is a database;

[0070] The monitoring of the node information corresponding to the first type of matters in the target object includes:

[0071] Determining whether the message queue monitors indication information, where the indication information is used to indicate that node information corresponding to the first type of event is updated;

[0072] When the message queue monitors the instruction information, the node information for executing the target item in the database is monitored through the message queue.

[0073] In the second approach, the approval engine can store node information in any database. The process engine can monitor whether node information has been updated and the updated node information through the message queue, and select the appropriate executor based on the updated node information to achieve automatic changes in the approval process, thereby improving the autonomy of the approval process flow.

[0074] In specific implementation, after receiving the first input, the approval engine can send the indication information to the message queue, so that the process engine can monitor the node information used to execute the target matter through the message queue to select the appropriate executor to realize the automatic change of the approval process.

[0075] It should be noted that the process engine can also monitor node information through other components that have similar monitoring characteristics to the message queue and zookeeper listeners, and the embodiments of the present application do not limit this.

[0076] In one example, generating a first process template in response to the first input includes:

[0077] In response to the first input, displaying a process template configuration interface, the process template configuration interface including a node configuration area, a process area, and a process template display area, the node configuration area including at least two nodes, the process area being used to associate nodes, and the process template display area being used to display a process template;

[0078] receiving a second input for dragging P nodes in the node configuration area to the process area, where P is an integer greater than 1;

[0079] In response to the second input, performing a first operation, the first operation comprising:

[0080] Associating the P nodes;

[0081] Generate a first process template according to the associated P nodes;

[0082] A first process template is displayed in the process template display area.

[0083] For ease of understanding, the following Figure 2 This example explains.

[0084] In this example, upon receiving input for configuring a process template, the approval engine may display the following: Figure 2The process template configuration interface 20 shown may include a node configuration area 21, a process area 22, and a process template display area 23. The process template configuration interface may be implemented using React technology, but is not limited thereto.

[0085] In actual applications, users can select the node configuration area 21 and drag it to the process area 22 according to their own needs for the approval process to generate an association relationship between the dragged nodes, and then generate the first process template based on the associated nodes to realize the configuration of the process template, thereby improving the applicability of the approval engine.

[0086] In one example, updating the node information stored in the target object according to the node information of the first process template may include:

[0087] Monitoring whether the target object stores historical node information corresponding to the first type of event;

[0088] In a case where the historical node information is stored in the target object, updating the historical node information to the node information of the first process template;

[0089] When the historical node information is not stored in the target object, the node information of the first process template is added to the target object.

[0090] In this example, the historical node information is stored in the target object, indicating that the purpose of the user configuring the first process template is to change the approval process of the first category of matters. The approval engine can achieve the change of the approval process of the first category of matters by modifying the historical node information to the node information of the first process template.

[0091] The historical node information is not stored in the target object, indicating that the purpose of the user configuring the first process template is to add an approval process for the first category of matters. The approval engine can add the node information of the first process template to the target object to achieve the addition of the approval process for the first category of matters.

[0092] Through this example, the approval engine can implement changes or additions to the approval process for the first category of matters, thereby improving the applicability of the approval engine and increasing the scope of application of the approval engine.

[0093] Of course, the approval engine can also use other methods to distinguish whether the purpose of the user configuring the first process template is to change or add an approval process for the first category of matters. For example, the approval engine can set two types of process template configuration nodes, where one type of process template configuration node is used to configure the first type of process template, and the first type of process template is used to modify the approval process; the other type of process template configuration node is used to configure the second type of process template, and the second type of process template is used to add a new approval process.

[0094] It should be noted that the various examples introduced in the embodiments of the present application can be implemented in combination with each other without conflict, or can be implemented separately, and the embodiments of the present application do not limit this.

[0095] For ease of understanding, combined Figure 3 The example description is as follows:

[0096] exist Figure 3 In the approval process, the process template configuration service node, the process template monitoring service node and the executor are included. The process template configuration method may include the following steps:

[0097] Step 1: The user configures the process template by dragging nodes.

[0098] Step 2: Changes to the process template will modify the process template node information in Zookeeper.

[0099] Step 3: The process engine executor selects the appropriate executor based on the change information through the listener registered on Zookeeper to realize automatic change of process nodes.

[0100] Furthermore, after modifying the node information, the process template monitoring service node can send a modification result to the process template configuration service node, indicating whether the node information was modified successfully. Based on the modification result, the process template configuration service node can provide feedback to the user, indicating whether the process template configuration was successful. Specifically, if the node information was modified successfully, the process template configuration service node can indicate that the process template configuration was successful; otherwise, it can indicate that the process template configuration failed.

[0101] In specific implementation, the drag-and-drop configuration interface can be implemented using React technology, and automatic discovery of process changes can be achieved with the help of Zookeeper.

[0102] The message queue can replace Zookeeper for monitoring, or it can be replaced with other components that support similar monitoring features. The approval engine of the embodiment of the present application can support drag-and-drop configuration of process templates, and can realize the function of automatic discovery of process changes. When the customer proposes a change to the approval process, there is no need to redevelop and launch it online. The automatic change of the approval process can be completed through the configuration of the approval process template.

[0103] The approval engine of the embodiment of the present application can be developed using languages ​​such as Java C, C++, etc., and can be applied to various scenarios of the trade union system, from the approval of participation and assistance applications to the release of superior and subordinate documents, from information disclosure to news release, and from service to inclusive activities.

[0104] Based on the process template configuration method provided in the above embodiment, the present application also provides a specific implementation of the process template configuration device. Please refer to the following embodiment.

[0105] See first Figure 4 , the process template configuration device provided in the embodiment of the present application may include:

[0106] A first receiving module 401 is configured to receive a first input for configuring a first process template, where the first process template is configured to approve a first category of matters;

[0107] A generating module 402 is configured to generate a first process template in response to the first input;

[0108] An updating module 403 is configured to update the node information in the target object according to the node information in the first process template;

[0109] Among them, in the updated target object, the target node information corresponding to the first type of matter is set as the node information of the first process template, and the target node information is used to determine the target executor for executing the first type of matter.

[0110] The process template configuration device of the embodiment of the present application can support the configuration of process templates and update the node information stored in the target object based on the node information of the configured process template. Based on the updated node information, the executor used to execute the matter is determined, thereby realizing the automatic change of the matter approval process. It can be seen that the embodiment of the present application can meet the needs of users to modify and add process templates for certain types of matters during the operation of the approval engine, realize the automatic change of the approval process of related matters, and thus improve the applicability of the approval engine.

[0111] In one example, the process template configuration device may further include:

[0112] The execution module 404 is configured to:

[0113] Upon receiving an approval request for a target matter, calling a first process engine to perform a first operation, the first operation including:

[0114] Monitoring node information corresponding to the first category of matters in the target object;

[0115] Determine the target executor according to the monitored target node information;

[0116] Executing the approval process of the target matter through the target executor;

[0117] Among them, the target matter belongs to the first category of matters, and the first process engine is the process engine corresponding to the first process template.

[0118] In one example, the target object is a memory of distributed application coordination service software Zookeeper; monitoring the node information corresponding to the first type of event in the target object includes:

[0119] The node information corresponding to the first type of events in the memory is monitored through the zookeeper listener.

[0120] In one example, the target object is a database; monitoring the node information corresponding to the first type of matters in the target object includes:

[0121] Determining whether the message queue monitors indication information, where the indication information is used to indicate that node information corresponding to the first type of event is updated;

[0122] When the message queue monitors the instruction information, the node information for executing the target item in the database is monitored through the message queue.

[0123] In an example, the update module may include:

[0124] A first monitoring submodule is configured to monitor whether the target object stores historical node information corresponding to the first type of event;

[0125] an updating submodule, configured to update the historical node information to the node information of the first process template if the historical node information is stored in the target object;

[0126] A new adding submodule is used to add the node information of the first process template to the target object when the historical node information is not stored in the target object.

[0127] In one example, the first input is a drag input for P nodes, and the first generation template is generated based on the P nodes, where P is an integer greater than 1.

[0128] In one example, the generating module includes:

[0129] A display unit, configured to display a process template configuration interface in response to the first input, wherein the process template configuration interface includes a node configuration area, a process area, and a process template display area, wherein the node configuration area includes at least two nodes, the process area is used to associate nodes, and the process template display area is used to display a process template;

[0130] a receiving unit, configured to receive a second input, wherein the second input is used to drag P nodes in the node configuration area to the process area, where P is an integer greater than 1;

[0131] an execution unit, configured to execute a first operation in response to the second input, where the first operation includes:

[0132] Associating the P nodes;

[0133] Generate a first process template according to the associated P nodes;

[0134] A first process template is displayed in the process template display area.

[0135] Figure 5 A schematic diagram of the hardware structure of the approval provided in an embodiment of the present application is shown.

[0136] The process template configuration device may include a processor 501 and a memory 502 storing computer program instructions.

[0137] Specifically, the processor 501 may include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0138] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 502 may include removable or non-removable (or fixed) media. Where appropriate, the memory 502 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 502 is a non-volatile solid-state memory.

[0139] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0140] The processor 501 implements any one of the process template configuration methods in the above embodiments by reading and executing computer program instructions stored in the memory 502 .

[0141] In one example, the process template configuration device may further include a communication interface 503 and a bus 510. Figure 5 As shown, the processor 501, the memory 502, and the communication interface 503 are connected via a bus 510 and communicate with each other.

[0142] The communication interface 503 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0143] Bus 510 includes hardware, software or both, and the components of online data flow metering equipment are coupled to each other. For example, but not limitation, bus can include accelerated graphics port (AGP) or other graphics bus, enhanced industry standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industry standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 510 can include one or more buses. Although the present application embodiment describes and shows specific bus, the application considers any suitable bus or interconnection.

[0144] The process template configuration device can execute the process template configuration method in the embodiment of the present application.

[0145] In addition, in conjunction with the process template configuration method in the above embodiments, the present application embodiment may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any of the process template configuration methods in the above embodiments is implemented.

[0146] It should be understood that the present application is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and illustrated as examples. However, the method process of the present application is not limited to the specific steps described and illustrated. Those skilled in the art can make various changes, modifications, and additions, or change the order of the steps after understanding the spirit of the present application.

[0147] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium that can store or transmit information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0148] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps. In other words, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0149] Aspects of the present disclosure have been described above with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit. It is also understood that each box in the block diagram and / or flowchart and the combination of the boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0150] The above description is only a specific embodiment of the present application. Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the scope of protection of the present application.

Claims

1. A process template configuration method, characterized in that: Applicable to the approval engine, including: During the operation of the approval engine, a first input for configuring a first process template is received, wherein the first process template is configured to approve a first category of matters; generating a first process template in response to the first input; Update the node information in the target object according to the node information of the first process template; Wherein, in the updated target object, the target node information corresponding to the first type of matter is set as the node information of the first process template, and the target node information is used to determine the target executor for executing the first type of matter; After updating the node information in the target object according to the node information of the first process template, the method further includes: Upon receiving an approval request for a target matter, calling a first process engine to perform a first operation, the first operation including: Monitoring node information corresponding to the first category of matters in the target object; Determine the target executor according to the monitored target node information; Executing the approval process of the target matter through the target executor; The target matter belongs to the first category of matters, and the first process engine is the process engine corresponding to the first process template; The target object is a memory of the distributed application coordination service software Zookeeper; monitoring the node information corresponding to the first type of event in the target object includes: The node information corresponding to the first type of matters in the memory is monitored through the zookeeper listener.

2. The method according to claim 1, characterized in that The target object is a database; monitoring the node information corresponding to the first type of matters in the target object includes: Determining whether the message queue monitors indication information, where the indication information is used to indicate that node information corresponding to the first type of event has been updated; When the message queue monitors the indication information, the message queue is used to monitor the node information corresponding to the first type of matters in the database.

3. The method according to claim 1, characterized in that The first input is a drag input for P nodes, and the first generation template is generated based on the P nodes, where P is an integer greater than 1.

4. The method according to claim 1, wherein The step of generating a first process template in response to the first input includes: In response to the first input, displaying a process template configuration interface, the process template configuration interface including a node configuration area, a process area, and a process template display area, the node configuration area including at least two nodes, the process area being used to associate nodes, and the process template display area being used to display a process template; receiving a second input for dragging P nodes in the node configuration area to the process area, where P is an integer greater than 1; In response to the second input, performing a first operation, the first operation comprising: Associating the P nodes; Generate a first process template according to the associated P nodes; A first process template is displayed in the process template display area.

5. The method according to claim 1, wherein The updating of the node information stored in the target object according to the node information of the first process template includes: Monitoring whether the target object stores historical node information corresponding to the first type of event; In a case where the historical node information is stored in the target object, updating the historical node information to the node information of the first process template; When the historical node information is not stored in the target object, the node information of the first process template is added to the target object.

6. A process template configuration device, characterized in that: Applied to an approval engine, the device includes: A first receiving module is configured to receive, during the operation of the approval engine, a first input for configuring a first process template, wherein the first process template is configured to approve a first category of matters; A generating module, configured to generate a first process template in response to the first input; An updating module, configured to update the node information in the target object according to the node information of the first process template; Wherein, in the updated target object, the target node information corresponding to the first type of matter is set as the node information of the first process template, and the target node information is used to determine the target executor for executing the first type of matter; The process template configuration device also includes: Execution module, used to: Upon receiving an approval request for a target matter, calling a first process engine to perform a first operation, the first operation including: Monitoring node information corresponding to the first category of matters in the target object; Determine the target executor according to the monitored target node information; Executing the approval process of the target matter through the target executor; The target matter belongs to the first category of matters, and the first process engine is the process engine corresponding to the first process template; The target object is a memory of the distributed application coordination service software Zookeeper; monitoring the node information corresponding to the first type of event in the target object includes: The node information corresponding to the first type of matters in the memory is monitored through the zookeeper listener.

7. A process template configuration device, characterized in that: The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the process template configuration method according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the process template configuration method according to any one of claims 1 to 5 is implemented.

9. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the process template configuration method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Flow processing method and device

    CN113034107A

  • Process configuration method, device and equipment and computer readable storage medium

    CN113077139A