Management method, device, electronic device and medium for business and process engine mapping

By obtaining the business order and subprocess number of the business process, and using the process blood tree component to preserve the mapping relationship between the process engine and the complex business process, the problem of difficult to achieve the mapping relationship between the complex business process and the process engine in the existing technology is solved, and the application is reduced The coupling degree between programs and process engines meets the needs of complex business processes.

CN112418720BActive Publication Date: 2024-12-24CHINA CONSTRUCTION BANK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011443112.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-08
Publication Date
2024-12-24
Estimated Expiration
2040-12-08

AI Technical Summary

Technical Problem

The prior art cannot effectively map the multi-level relationship between complex business processes and process engines, resulting in high coupling between application layers and process engines and unable to meet the needs of complex business processes.

Method used

By obtaining the business order number and subprocess number of the business process, obtaining the corresponding process instance number, and using the process blood tree component in the preset business process template to save the mapping relationship between the business process and the process engine, reducing the coupling between the application and the process engine Spend.

Benefits of technology

It realizes the multi-level mapping relationship between complex business processes and process engines, reduces the coupling between applications and process engines, supports the interoperability of complex business processes, and meets the current requirements of complex business processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112418720B_ABST
    Figure CN112418720B_ABST
Patent Text Reader

Abstract

The present invention discloses a management method, device, electronic device and medium for business and process engine mapping. The method includes obtaining the business order number of the business process and the sub-process number during the execution of the business process; obtaining the process instance number of the process instance corresponding to the business process; and calling the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree by presetting the configuration information of the process lineage tree component in the business process template, wherein the mapping relationship includes the mapping relationship between the business order number and the process instance number, and the mapping relationship between the sub-process number and the process instance number. The embodiment of the present invention saves the mapping relationship between the process engine and the multi-level process of the complex business through the process lineage tree, reduces the coupling degree between the application program and the process engine, and solves the problem that the related technology splits the corresponding transaction process into a simple single process mapping, resulting in the inability to meet the current requirements for the complexity of the business process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to computer technology, and in particular to a management method, device, electronic device and medium for business and process engine mapping. Background Art

[0002] The process instances of a single process engine cannot map the intercommunication and inheritance relationship between complex business processes and process engines.

[0003] At present, the related technologies use the method of splitting the complex business process to achieve the mapping relationship between the complex business process and the process engine: split the complex business process accordingly to achieve the mapping relationship between the single process instance and the transaction. However, this method does not support the mapping relationship of complex business multi-level processes, resulting in the need to split the corresponding transaction process into a simple single process. The application layer has a high degree of coupling with the process engine, which cannot meet the requirements of the current complexity of business processes. Summary of the invention

[0004] The present invention provides a management method, device, electronic device and medium for business and process engine mapping, which can support the relationship mapping between complex business processes and process engines and reduce the coupling degree between process applications and process engines.

[0005] In a first aspect, an embodiment of the present invention provides a management method for business and process engine mapping, including:

[0006] Obtain the business order number of the business process and the sub-process number during the execution of the business process;

[0007] Obtaining a process instance number of a process instance corresponding to the business process;

[0008] By presetting the configuration information of the process lineage tree component in the business process template, the process lineage tree component is called to save the mapping relationship between the business process and the process engine to the node of the process lineage tree, wherein the mapping relationship includes the mapping relationship between the business order number and the process instance number, and the mapping relationship between the sub-process number and the process instance number.

[0009] In a second aspect, an embodiment of the present invention further provides a management device for business and process engine mapping, the device comprising:

[0010] A first acquisition module is used to acquire a business order number of a business process and a sub-process number during the execution of the business process;

[0011] A second acquisition module is used to acquire a process instance number of a process instance corresponding to the business process;

[0012] A mapping establishment module is used to call the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree through the configuration information of the process lineage tree component in the preset business process template, wherein the mapping relationship includes the mapping relationship between the business order number and the process instance number, and the mapping relationship between the sub-process number and the process instance number.

[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0014] one or more processors;

[0015] A memory for storing one or more programs;

[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the management method of business and process engine mapping as described in any embodiment of the present invention.

[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the management method for business and process engine mapping as described in any embodiment of the present invention.

[0018] The embodiment of the present invention provides a management method, device, electronic device and medium for business and process engine mapping. The process instance number of the process instance corresponding to the business process is obtained through the business order number of the business process and the sub-process number during the execution of the business process; the process lineage tree component is called to save the mapping relationship between the business process and the process engine to the node of the process lineage tree through the configuration information of the process lineage tree component in the preset business process template. The embodiment of the present invention saves the mapping relationship between the process engine and the multi-level process of complex business through the process lineage tree. The application communicates with the process engine through the process lineage tree, reducing the coupling degree between the application and the process engine, and solving the problem that the related technology splits the corresponding transaction process into a simple single process for mapping, resulting in the inability to meet the current requirements for the complexity of business processes. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A flowchart of a method for managing business and process engine mapping provided by an embodiment of the present invention;

[0020] Figure 2 An architecture diagram of a business system provided by an embodiment of the present invention;

[0021] Figure 3 An architecture diagram of another business system provided by an embodiment of the present invention;

[0022] Figure 4A flowchart of another method for managing business and process engine mapping provided by an embodiment of the present invention;

[0023] Figure 5 A diagram of the execution process of a management method for business and process engine mapping provided by an embodiment of the present invention;

[0024] Figure 6 A flowchart of another method for managing business and process engine mapping provided by an embodiment of the present invention;

[0025] Figure 7 A flowchart of another method for managing business and process engine mapping provided by an embodiment of the present invention;

[0026] Figure 8 A structural block diagram of a business and process engine mapping and management device provided by an embodiment of the present invention;

[0027] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0029] Figure 1 A flowchart of a method for managing business and process engine mapping provided by an embodiment of the present invention, the method can be executed by a management device for business and process engine mapping, the device can be implemented by software and / or hardware, and is usually configured in an electronic device such as a server. Figure 1 As shown, the method includes:

[0030] Step 110: Obtain the business order number of the business process and the sub-process number during the execution of the business process.

[0031] Among them, the business process is a workflow related to the business. For example, a business process can be a workflow related to transactions. For a complex transaction process, there may be a situation where at least one link in the workflow is a sub-process, that is, the transaction process is a workflow of a process nested in a process.

[0032] The business order number is the number of the business order that circulates in the business process. For example, for an approval business, an approval business is initiated in the business system interaction interface, a business order is generated based on the user's operation of initiating the approval business, and the business order is circulated according to the regulations of the business process.

[0033] The sub-process number is the number of the sub-process included in the business process. Specifically, for a complex business process, it includes multiple links, and a link may be a sub-process. The sub-process number is the number of the sub-process corresponding to the link.

[0034] The process engine refers to the workflow as a part of the application system. It provides the workflow with a core solution that plays a decisive role in each application system and determines the information transmission route, content level, etc. according to different roles, division of labor and conditions.

[0035] Exemplarily, when a service start message sent by the application layer is detected, the service form generated by the application layer is obtained, the service form is parsed, and the service form number is obtained; in the process of executing the service process, the sub-process number of the current sub-process is obtained. Figure 2 This is an architecture diagram of a business system provided by an embodiment of the present invention. Figure 2 As shown, the business system includes an application layer 210, a process application layer 220 and a process engine 230 in sequence. Among them, the process application layer 220 is an intermediate layer for the interaction between the application layer 210 and the process engine 230. For example, the process application layer may include a process lineage tree and permission control. Specifically, the application layer may be composed of business-related applications (Application, referred to as App). The business system interaction interface is an interaction interface of the application layer facing the user. The user can start, modify, invalidate or query the business process through the business system interaction interface. When the application layer detects that the user starts the business process operation on the business system interaction interface, it generates a business startup message and a business order. The application layer sends a startup message to the process engine. When the process engine detects the business startup message sent by the application layer, it obtains the business order generated by the application layer. The business order includes information such as the business order number, the business order version, the business order content, and the creation time. The process engine parses the business order to obtain the business order number. In addition, as the business process is executed, each link in the business process is executed sequentially, and the sub-process number of the sub-process corresponding to each link is obtained respectively.

[0036] It should be noted that the process lineage tree is a tree structure that stores the complex processes of a single business and the parent-child and multi-level relationships of multi-level processes.

[0037] Step 120: Obtain the process instance number of the process instance corresponding to the business process.

[0038] Specifically, all process instances corresponding to different business processes are pre-set in the process engine, and each process instance is numbered.

[0039] Exemplarily, when the process engine detects a business startup message sent by the application layer, it parses the business startup message to determine the business process. For example, based on the business startup message sent by the application layer, it determines that the transaction initiation process, transaction approval process, or transaction settlement process to be started is a transaction initiation process, a transaction approval process, or a transaction settlement process, etc. Different business processes correspond to different process instances. After determining the type of the business process, the process engine obtains the process instance numbers of all process instances corresponding to the business process of the currently started business.

[0040] It should be noted that the execution order of step 110 and step 120 is not limited to the above method, and can also be executed in parallel, or in a reversed order, etc., and the embodiment of the present invention does not make any specific limitation.

[0041] Step 130: By presetting the configuration information of the process lineage tree component in the business process template, the process lineage tree component is called to save the mapping relationship between the business process and the process engine to the node of the process lineage tree.

[0042] Specifically, the business process template parameters are pre-configured in the system. The business process template parameters are static configuration parameters and can be saved in the data configuration layer. Figure 3 This is another architecture diagram of a business system provided by an embodiment of the present invention. Figure 3 As shown, the business system includes a business transaction layer 310, an application interaction processing layer 320, a process application layer 330, a data configuration layer 340 and a process engine 350. Among them, the data configuration layer 340 includes parameters such as a process lineage tree 341, task management 342, authority management 343, a business process template 344, transaction management 345, clearing and settlement 346, transaction confirmation 347, message management 348, accounting 349 and public parameters 3410. Specifically, the business process template parameters include the configuration information of the process lineage tree component, so as to configure the process lineage tree component in the business process template.

[0043] Specifically, the process lineage tree component is an assembly unit with a standardized interface and determined contextual dependencies for the process lineage tree, and the process lineage tree component can be independently deployed in the business process template. The corresponding service can be accessed through the interface of the process lineage tree component, thereby realizing related operations on the process lineage tree.

[0044] Among them, the mapping relationship between the business process and the process engine includes the mapping relationship between the business order number and the process instance number, and the mapping relationship between the sub-process number and the process instance number. Optionally, the process lineage tree can also store the root process instance information number, operation platform transaction code, operation platform transaction version number, clearing batch number, operation task type code, process hierarchy relationship number, total number of subtasks, financial market process instance number, operation process type code, operation process stage type number, operation process result status number, operation process revocation type code, operation process freeze type code, operation process relationship number, multi-entity identifier, record creation time and completion time and other fields. The data types and descriptions of the above fields are shown in Table 1.

[0045] Table 1 is the field type table

[0046]

[0047]

[0048] Exemplarily, the process engine saves the mapping relationship between the business process and the process engine to the nodes of the process lineage tree by calling the process lineage tree component configured in the business process template, so as to complete the mapping between the multi-level process of the business order and the process instance. Specifically, the process engine saves the mapping relationship between the business order number and the process instance number to each node of the process lineage tree by calling the process lineage tree component configured in the business process template. During the execution of the business process, the process engine does not record the mapping relationship between the sub-process and the process instance, but inserts the sub-process number into the corresponding process lineage tree node according to the mapping relationship between the sub-process number and the process instance number by calling the process lineage tree component configured in the business process template, that is, certain nodes of the process lineage tree store the mapping relationship between the business order number, the sub-process number and the process instance number.

[0049] The technical solution of this embodiment obtains the process instance number of the process instance corresponding to the business process through the business order number of the business process and the sub-process number during the execution of the business process; through the configuration information of the process lineage tree component in the preset business process template, the process lineage tree component is called to save the mapping relationship between the business process and the process engine to the node of the process lineage tree. The embodiment of the present invention saves the mapping relationship between the process engine and the multi-level process of complex business through the process lineage tree. The application communicates with the process engine through the process lineage tree, reducing the coupling degree between the application and the process engine, and solving the problem that the related technology splits the corresponding transaction process into a simple single process for mapping, resulting in the inability to meet the current requirements for the complexity of business processes.

[0050] Figure 4This is a flowchart of another management method for business and process engine mapping provided by an embodiment of the present invention. Based on the above embodiment, this embodiment further defines the step of calling the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree. Figure 4 As shown, the method includes:

[0051] Step 401: Obtain a business order number of a business process and a sub-process number during the execution of the business process.

[0052] Step 402: Obtain the process instance number of the process instance corresponding to the business process.

[0053] Step 403: by presetting the configuration information of the process lineage tree component in the business process template, call the process lineage tree component to use the mapping relationship between the business order number, the process instance number and the root process instance information number as the root information of the process lineage tree.

[0054] The root process instance information number is the identification number of each task family, and the root process instance information number of all tasks under the same task family is the same. A business process can include multiple tasks (or processes), and there is an association relationship between tasks. Tasks with an association relationship constitute a task family.

[0055] Exemplarily, the root process instance information number corresponding to the business process of the currently started business is obtained. The mapping relationship between the business order number, the process instance number and the root process instance information number is saved to the root node of the process lineage tree through the process lineage tree component configured in the preset business process template. Accordingly, the mapping relationship between the business order number, the process instance number and the root process instance information number is used as the root information of the process lineage tree.

[0056] Step 404: By presetting the configuration information of the process lineage tree component in the business process template, the process lineage tree component is called to use the mapping relationship between the business order number, sub-process number, process instance number, root process instance information number and process hierarchy relationship number as the branch information of the corresponding level in the process lineage tree.

[0057] The process level relationship number indicates the position of the sub-process in the task family. The process level relationship number and the root process instance information number can be combined to uniquely locate a task (or process).

[0058] Specifically, the storage node of the mapping relationship in the process lineage tree is determined according to the process hierarchy relationship number. For example, based on the previous process hierarchy relationship number combined with the root process instance number, each node of the process lineage tree can be traversed to obtain a node storing the same root process instance number and the previous process hierarchy relationship number as the parent node, and the child node of the parent node is determined to be the storage node of the mapping relationship in the process lineage tree. By presetting the configuration information of the process lineage tree component in the business process template, the process lineage tree component is called to associate and store the business order number, sub-process number, process instance number, root process instance information number and process hierarchy relationship number to the storage node in the process lineage tree. Accordingly, the business order number, sub-process number, process instance number, root process instance information number and process hierarchy relationship number are used as branch information of the process lineage tree.

[0059] Step 405: In response to the business order freezing operation on the business system interaction interface, obtain the first target business order number of the business order to be frozen.

[0060] Specifically, the user can operate each business order on the business system interactive interface. It should be noted that the operation types include freezing, invalidating, updating and querying. Figure 5 FIG. 1 is a diagram of an execution process of a management method for business and process engine mapping provided by an embodiment of the present invention. Figure 5 As shown, the business system module 511 in the process application layer 510 obtains the freezing operation data on the corresponding business system interaction interface 520, and parses the freezing operation data to obtain the first target business order number and operation type of the business to be frozen.

[0061] Step 406: query the process lineage tree based on the first target business order number, obtain all first target process instance numbers associated with the first target business order number, and freeze the process instance corresponding to the first target process instance number.

[0062] Specifically, the first target business order number to be frozen is used to query the process lineage tree, and based on the mapping relationship between the business order number and the process instance number, all first target process instance numbers associated with the first target business order number to be frozen are obtained, and the process instance corresponding to the first target process instance number is frozen. Figure 5 As shown, the process engine 530 uses the first target business order number to be frozen to query the process lineage tree 512, and based on the mapping relationship between the business order number and the process instance number, obtains all first target process instance numbers (i.e., engine data 540) associated with the first target business order number to be frozen, and the process engine 530 freezes the process instance corresponding to the first target process instance number.

[0063] Step 407: In response to the business order cancellation operation on the business system interaction interface, obtain the second target business order number of the business order to be cancelled.

[0064] like Figure 5 As shown, the business system module 511 in the process application layer 510 obtains the business order cancellation operation data on the corresponding business system interaction interface 520, and parses the business order cancellation operation data to obtain the second target business order number and operation type of the business to be cancelled.

[0065] Step 408: query the process lineage tree based on the second target business order number, obtain all second target process instance numbers associated with the second target business order number, and change the status of the process instance corresponding to the second target process instance number to an invalid status.

[0066] Specifically, the second target business order number to be invalidated is used to query the process lineage tree, and based on the mapping relationship between the business order number and the process instance number, all second target process instance numbers associated with the second target business order number to be invalidated are obtained, and the state of the process instance corresponding to the second target process instance number is changed to the invalid state. Figure 5 As shown, the process engine 530 uses the second target business order number to be invalidated to query the process lineage tree 512, and based on the mapping relationship between the business order number and the process instance number, obtains all second target process instance numbers (i.e., engine data 540) associated with the second target business order number to be invalidated, and the process engine 530 modifies the state of the process instance corresponding to the second target process instance number to an invalid state.

[0067] It should be noted that the execution order of step 405 and step 406 and step 407 and step 408 is not limited to the method listed in this embodiment. Step 407 and step 408 can also be executed first, and then step 405 and step 406, or step 405 and step 406 can be executed in parallel with step 407 and step 408, etc. The embodiment of the present invention does not make specific limitations.

[0068] The technical solution of this embodiment, when detecting the freezing or invalidation operation of a business order, queries the mapping relationship in the process lineage tree by the business order number to determine the process instance number to be frozen or invalidated, thereby executing the freezing or invalidation operation of the corresponding process instance, avoiding the cumbersome and repetitive code calls when performing the freezing or invalidation operation of the business order in the related technology, and reducing the coupling degree between the business system and the process engine.

[0069] Figure 6A flowchart of another management method for business and process engine mapping provided by an embodiment of the present invention. Based on the above embodiment, this embodiment adds a step of obtaining the business unit version number, and further limits the step of calling the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree through the configuration information of the process lineage tree component in the preset business process template. Figure 6 Said method comprises:

[0070] Step 601: Obtain a business order number of a business process and a sub-process number during the execution of the business process.

[0071] Step 602: Obtain the service order version number.

[0072] Step 603: Obtain the process instance number of the process instance corresponding to the business process.

[0073] Step 604: by presetting the configuration information of the process lineage tree component in the business process template, call the process lineage tree component to use the mapping relationship between the business order number, the business order version number and the process instance number as the root information of the process lineage tree.

[0074] Optionally, obtain the root process instance information number corresponding to the business process of the currently started business. The mapping relationship between the business order number, business order version number, process instance number and root process instance information number is saved to the root node of the process lineage tree through the process lineage tree component configured in the preset business process template. Accordingly, the mapping relationship between the business order number, business order version number, process instance number and root process instance information number is used as the root information of the process lineage tree.

[0075] Step 605: by presetting the configuration information of the process lineage tree component in the business process template, call the process lineage tree component to use the mapping relationship between the business order number, business order version number, sub-process number and process instance number as the branch information of the corresponding level in the process lineage tree.

[0076] Optionally, obtain the process hierarchy relationship number corresponding to the business process of the currently started business, and determine the storage node of the mapping relationship in the process lineage tree according to the process hierarchy relationship number. For example, based on the previous process hierarchy relationship number combined with the root process instance number, each node of the process lineage tree can be traversed to obtain a node storing the same root process instance number and the previous process hierarchy relationship number as the parent node, and determine that the child node of the parent node is the storage node of the mapping relationship in the process lineage tree. By presetting the configuration information of the process lineage tree component in the business process template, call the process lineage tree component to associate the business order number, business order version number, sub-process number and process instance number and store them in the child node of the corresponding level in the process lineage tree. Accordingly, the mapping relationship between the business order number, business order version number, sub-process number and process instance number is used as the branch information of the corresponding level in the process lineage tree.

[0077] Step 606: In response to the business order freezing operation on the business system interaction interface, obtain the third target business order number and the first target version number of the business order to be frozen.

[0078] Specifically, the business system module in the process application layer obtains the freezing operation data on the corresponding business system interaction interface, and parses the freezing operation data to obtain the third target business order number, the first target version number and the operation type of the business order to be frozen.

[0079] Step 607: query the process lineage tree based on the third target business order number and the first target version number, obtain all third target process instance numbers associated with the third target business order number and the first target version number, and freeze the process instance corresponding to the third target process instance number.

[0080] Specifically, the process lineage tree is queried using the third target business order number to be frozen and the first target version number. Based on the mapping relationship between the business order number, the business order version number and the process instance number, all third target process instance numbers associated with the third target business order number to be frozen and the first target version number are obtained, and the process instances corresponding to the third target process instance numbers are frozen.

[0081] Step 608: In response to the business order cancellation operation on the business system interaction interface, obtain the fourth target business order number and the second target version number of the business order to be cancelled.

[0082] Specifically, the business system module in the process application layer obtains the business order cancellation operation data on the corresponding business system interaction interface, and parses the cancellation operation data to obtain the fourth target business order number, the second target version number and the operation type of the business order to be cancelled.

[0083] Step 609: query the process lineage tree based on the fourth target business order number and the second target version number, obtain all fourth target process instance numbers associated with the fourth target business order number and the second target version number, and change the status of the process instance corresponding to the fourth target process instance number to an invalid status.

[0084] Specifically, the process lineage tree is queried using the fourth target business order number and the second target version number to be invalidated. Based on the mapping relationship between the business order number, the business order version number and the process instance number, all fourth target process instance numbers associated with the fourth target business order number and the second target version number to be invalidated are obtained, and the status of the process instance corresponding to the fourth target process instance number is modified to an invalid status.

[0085] The technical solution of this embodiment, when detecting the freezing or invalidation operation of a business order, queries the mapping relationship in the process lineage tree through the business order number and the business order version number to determine the process instance number to be frozen or invalidated, and then executes the freezing or invalidation operation of the corresponding process instance, thereby avoiding the situation where the process instance is missed and not operated due to different business order numbers in different business order versions, thereby improving the accuracy of business order related processing.

[0086] Figure 7 A flowchart of another method for managing business and process engine mapping provided by an embodiment of the present invention. Based on the above embodiment, this embodiment adds the operation of changing the mapping relationship after calling the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree. Figure 7 As shown, the method includes:

[0087] Step 701: Obtain a business order number of a business process and a sub-process number during the execution of the business process.

[0088] Step 702: Obtain the process instance number of the process instance corresponding to the business process.

[0089] Step 703: by presetting the configuration information of the process lineage tree component in the business process template, call the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree.

[0090] Step 704: When the mapping relationship change event is detected to be triggered, the process lineage tree is queried according to the number corresponding to the subject that triggered the mapping relationship change event to obtain the target node.

[0091] It should be noted that the mapping relationship change event may be triggered by the application layer when it detects that the business order number corresponding to the process instance number input by the user in the business system interaction interface has changed. The mapping relationship change event may also be triggered by the process engine in response to the change of the process instance number corresponding to the business order number. If the subject that triggers the mapping relationship change event is the application layer, the process lineage tree is queried according to the business order number to obtain all target nodes containing the business order number. If the subject that triggers the mapping relationship change event is the process engine, the process lineage tree is queried according to the process instance number to obtain all target nodes containing the process instance number.

[0092] Specifically, when the mapping relationship change event is detected to be triggered, the subject that triggered the mapping relationship change event is determined. When the subject is a process engine, the process lineage tree is queried according to the process instance number to obtain a target node containing the process instance number. When the subject is an application layer, the process lineage tree is queried according to the business order number to obtain a target node containing the business order number.

[0093] Step 705: Update the mapping relationship in the target node according to the mapping relationship between the business process and the process engine included in the mapping relationship change event.

[0094] Specifically, the mapping relationship change event is parsed to obtain the mapping relationship between the changed business process and the process engine, and the mapping relationship in the target node is updated based on the mapping relationship between the changed business process and the process engine.

[0095] The technical solution of this embodiment realizes a multi-level mapping relationship between complex business transactions and a single process instance of the process engine by adding a process lineage tree between the process engine and the application layer as an intermediate layer connecting the process engine and the application. It supports multiple components and multiple systems and has strong scalability. At the same time, the change of the mapping relationship between the application layer and the process engine is realized through the process lineage tree, which reduces the coupling degree between the application layer and the process engine, avoids the application from docking with the process engine multiple times across products and systems, and can quickly respond to the needs of complex business processes.

[0096] Figure 8 The structural block diagram of a business and process engine mapping and management device provided in an embodiment of the present invention. The device can be implemented by software and / or hardware and is usually configured in an electronic device. The device solves the problem that the related technology splits the corresponding transaction process into a simple single process mapping, which cannot meet the current business process complexity requirements by executing the business and process engine mapping and management method provided in any embodiment of the present invention. Figure 8 As shown, the device comprises:

[0097] A first acquisition module 810 is used to acquire a business order number of a business process and a sub-process number during the execution of the business process;

[0098] A second acquisition module 820 is used to acquire a process instance number of a process instance corresponding to the business process;

[0099] The mapping establishment module 830 is used to call the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree through the configuration information of the process lineage tree component in the preset business process template, wherein the mapping relationship includes the mapping relationship between the business order number and the process instance number, and the mapping relationship between the sub-process number and the process instance number.

[0100] The embodiment of the present invention provides a management device for business and process engine mapping, which obtains the process instance number of the process instance corresponding to the business process through the business order number of the business process and the sub-process number during the execution of the business process; through the configuration information of the process lineage tree component in the preset business process template, the process lineage tree component is called to save the mapping relationship between the business process and the process engine to the node of the process lineage tree. The embodiment of the present invention saves the mapping relationship between the process engine and the multi-level process of complex business through the process lineage tree. The application communicates with the process engine through the process lineage tree, reduces the coupling degree between the application and the process engine, and solves the problem that the related technology splits the corresponding transaction process into a simple single process mapping, which cannot meet the current requirements for the complexity of business processes.

[0101] Optionally, the first acquisition module 810 is specifically configured to:

[0102] When a service start message sent by the application layer is detected, a service order generated by the application layer is obtained, the service order is parsed, and a service order number is obtained;

[0103] During the execution of the business process, the sub-process number of the current sub-process is obtained.

[0104] Optionally, the second acquisition module 820 is specifically used for:

[0105] Get the process instance IDs of all process instances corresponding to the business process of the current startup business.

[0106] Optionally, the mapping establishment module 830 includes:

[0107] The first mapping establishment submodule is used to call the process lineage tree component to use the mapping relationship between the business order number, the process instance number and the root process instance information number as the root information of the process lineage tree through the configuration information of the process lineage tree component in the preset business process template;

[0108] The second mapping establishment sub-module is used to call the process lineage tree component through the configuration information of the process lineage tree component in the preset business process template to use the mapping relationship between the business order number, sub-process number, process instance number, root process instance information number and process hierarchy relationship number as the branch information of the corresponding level in the process lineage tree.

[0109] Optionally, the second mapping establishment submodule is specifically used for:

[0110] Determine the storage node of the mapping relationship in the process lineage tree according to the process hierarchical relationship number;

[0111] By presetting the configuration information of the process lineage tree component in the business process template, the process lineage tree component is called to associate and store the business order number, sub-process number, process instance number, root process instance information number and process hierarchy relationship number to the storage node in the process lineage tree.

[0112] Optionally, the device further comprises:

[0113] A first freezing module is used to obtain a first target business order number of the business order to be frozen in response to a business order freezing operation on a business system interaction interface after calling the process lineage tree component to save the mapping relationship between the business process and the process engine to a node of the process lineage tree;

[0114] The process lineage tree is queried based on the first target business order number to obtain all first target process instance numbers associated with the first target business order number, and the process instance corresponding to the first target process instance number is frozen.

[0115] Optionally, it also includes:

[0116] A first state modification module is used to obtain a second target business order number of the business order to be cancelled in response to a business order cancellation operation on a business system interaction interface after calling the process lineage tree component to save the mapping relationship between the business process and the process engine to a node of the process lineage tree;

[0117] The process lineage tree is queried based on the second target business order number to obtain all second target process instance numbers associated with the second target business order number, and the state of the process instance corresponding to the second target process instance number is modified to an invalid state.

[0118] Optionally, it also includes:

[0119] A version number acquisition module, used to acquire a business order version number after acquiring a business order number of a business process and a sub-process number during the execution of the business process;

[0120] And, the mapping establishment module 830 also includes:

[0121] The third mapping establishment submodule is used to call the process lineage tree component to use the mapping relationship between the business order number, the business order version number and the process instance number as the root information of the process lineage tree through the configuration information of the process lineage tree component in the preset business process template;

[0122] The fourth mapping establishment submodule is used to call the process lineage tree component through the configuration information of the process lineage tree component in the preset business process template to use the mapping relationship between the business order number, business order version number, sub-process number and process instance number as the branch information of the corresponding level in the process lineage tree.

[0123] Optionally, the device further comprises:

[0124] A second freezing module is used to obtain a third target business order number and a first target version number of the business order to be frozen in response to a business order freezing operation on the business system interaction interface after calling the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree;

[0125] Based on the third target business order number and the first target version number, the process lineage tree is queried to obtain all third target process instance numbers associated with the third target business order number and the first target version number, and the process instance corresponding to the third target process instance number is frozen.

[0126] Optionally, it also includes:

[0127] A second state modification module is used to obtain a fourth target business order number and a second target version number of the business order to be invalidated in response to a business order invalidation operation on the business system interaction interface after calling the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree;

[0128] Based on the fourth target business order number and the second target version number, the process lineage tree is queried to obtain all fourth target process instance numbers associated with the fourth target business order number and the second target version number, and the status of the process instance corresponding to the fourth target process instance number is modified to an invalid status.

[0129] Optionally, it also includes:

[0130] A target node determination module is used to query the process lineage tree according to the number corresponding to the subject that triggered the mapping relationship change event to obtain the target node after calling the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree.

[0131] The mapping relationship in the target node is updated according to the mapping relationship between the business process and the process engine included in the mapping relationship change event.

[0132] Optionally, the target node determination module is specifically used for:

[0133] Determine the subject that triggers the mapping relationship change event;

[0134] When the subject is a process engine, query the process lineage tree according to the process instance number to obtain a target node containing the process instance number;

[0135] When the subject is the application layer, the process lineage tree is queried according to the service order number to obtain a target node containing the service order number.

[0136] The management device for business and process engine mapping provided in the embodiment of the present invention can execute the management method for business and process engine mapping provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0137] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention is shown in FIG. Fig. 9 As shown, the electronic device includes a processor 90, a memory 91, an input device 92 and an output device 93; the number of processors 90 in the electronic device can be one or more. Fig. 9 A processor 90 is taken as an example; the processor 90, the memory 91, the input device 92 and the output device 93 in the electronic device can be connected by a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.

[0138] The memory 91, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the management method of business and process engine mapping in the embodiment of the present invention (for example, the first acquisition module 810, the second acquisition module 820 and the mapping establishment module 830). The processor 90 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 91, that is, implements the above-mentioned management method of business and process engine mapping.

[0139] The memory 91 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 91 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 91 may further include a memory remotely arranged relative to the processor 90, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0140] The input device 92 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device. The output device 93 may include a display device such as a display screen.

[0141] An embodiment of the present invention further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute a management method for business and process engine mapping when executed by a computer processor, the method comprising:

[0142] Obtain the business order number of the business process and the sub-process number during the execution of the business process;

[0143] Obtaining a process instance number of a process instance corresponding to the business process;

[0144] By presetting the configuration information of the process lineage tree component in the business process template, the process lineage tree component is called to save the mapping relationship between the business process and the process engine to the node of the process lineage tree, wherein the mapping relationship includes the mapping relationship between the business order number and the process instance number, and the mapping relationship between the sub-process number and the process instance number.

[0145] Of course, the computer executable instructions of the storage medium provided by the embodiment of the present invention are not limited to the above-mentioned method operations, but can also perform the related operations in the management method of business and process engine mapping provided by any embodiment of the present invention.

[0146] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0147] It is worth noting that in the embodiment of the management device for mapping the above-mentioned business to the process engine, the various units and modules included are divided only according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the various functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0148] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A management method for business and process engine mapping, characterized in that: include: Obtain the business order number of the business process and the sub-process number during the execution of the business process; Obtaining a process instance number of a process instance corresponding to the business process; By presetting the configuration information of the process lineage tree component in the business process template, the process lineage tree component is called to save the mapping relationship between the business process and the process engine to the node of the process lineage tree, wherein the mapping relationship includes the mapping relationship between the business order number and the process instance number, and the mapping relationship between the sub-process number and the process instance number; The process of calling the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree by presetting the configuration information of the process lineage tree component in the business process template includes: By presetting the configuration information of the process lineage tree component in the business process template, the process lineage tree component is called to use the mapping relationship between the business order number, the process instance number and the root process instance information number as the root information of the process lineage tree; By presetting the configuration information of the process lineage tree component in the business process template, the process lineage tree component is called to use the mapping relationship between the business order number, sub-process number, process instance number, root process instance information number and process hierarchy relationship number as the branch information of the corresponding level in the process lineage tree.

2. The method according to claim 1, characterized in that Obtain the business order number of the business process and the sub-process number during the execution of the business process, including: When a service start message sent by the application layer is detected, a service order generated by the application layer is obtained, the service order is parsed, and a service order number is obtained; During the execution of the business process, the sub-process number of the current sub-process is obtained.

3. The method according to claim 1, characterized in that Obtaining the process instance number of the process instance corresponding to the business process, including: Get the process instance IDs of all process instances corresponding to the business process of the current startup business.

4. The method according to claim 1, characterized in that: By presetting the configuration information of the process lineage tree component in the business process template, the process lineage tree component is called to use the mapping relationship between the business order number, the sub-process number, the process instance number, the root process instance information number and the process level relationship number as the branch information of the corresponding level in the process lineage tree, including: Determine the storage node of the mapping relationship in the process lineage tree according to the process hierarchical relationship number; By presetting the configuration information of the process lineage tree component in the business process template, the process lineage tree component is called to associate and store the business order number, sub-process number, process instance number, root process instance information number and process hierarchy relationship number to the storage node in the process lineage tree.

5. The method according to claim 4, characterized in that After calling the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree, it also includes: In response to a business order freezing operation on the business system interaction interface, obtaining a first target business order number of the business order to be frozen; The process lineage tree is queried based on the first target business order number to obtain all first target process instance numbers associated with the first target business order number, and the process instance corresponding to the first target process instance number is frozen.

6. The method according to claim 4, characterized in that After calling the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree, it also includes: In response to a business order cancellation operation on the business system interaction interface, a second target business order number of the business order to be cancelled is obtained; The process lineage tree is queried based on the second target business order number to obtain all second target process instance numbers associated with the second target business order number, and the state of the process instance corresponding to the second target process instance number is modified to an invalid state.

7. The method according to claim 1, characterized in that After obtaining the business order number of the business process and the sub-process number during the execution of the business process, the following is also included: Get the business order version number; And, by presetting the configuration information of the process lineage tree component in the business process template, calling the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree, including: By presetting the configuration information of the process lineage tree component in the business process template, the process lineage tree component is called to use the mapping relationship between the business order number, the business order version number and the process instance number as the root information of the process lineage tree; By presetting the configuration information of the process lineage tree component in the business process template, the process lineage tree component is called to use the mapping relationship between the business order number, business order version number, sub-process number and process instance number as the branch information of the corresponding level in the process lineage tree.

8. The method according to claim 7, characterized in that After calling the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree, it also includes: In response to a business order freezing operation on the business system interaction interface, obtaining a third target business order number and a first target version number of the business order to be frozen; Based on the third target business order number and the first target version number, the process lineage tree is queried to obtain all third target process instance numbers associated with the third target business order number and the first target version number, and the process instance corresponding to the third target process instance number is frozen.

9. The method according to claim 7, characterized in that: After calling the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree, it also includes: In response to a business order cancellation operation on the business system interaction interface, a fourth target business order number and a second target version number of the business order to be cancelled are obtained; Based on the fourth target business order number and the second target version number, the process lineage tree is queried to obtain all fourth target process instance numbers associated with the fourth target business order number and the second target version number, and the status of the process instance corresponding to the fourth target process instance number is modified to an invalid status.

10. The method according to claim 1, characterized in that After calling the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree, it also includes: When a mapping relationship change event is detected, the process lineage tree is queried according to the number corresponding to the subject that triggered the mapping relationship change event to obtain a target node; The mapping relationship in the target node is updated according to the mapping relationship between the business process and the process engine included in the mapping relationship change event.

11. The method according to claim 10, characterized in that Querying the process lineage tree according to the number corresponding to the subject that triggers the mapping relationship change event to obtain the target node includes: Determine the subject that triggers the mapping relationship change event; When the subject is a process engine, query the process lineage tree according to the process instance number to obtain a target node containing the process instance number; When the subject is the application layer, the process lineage tree is queried according to the service order number to obtain a target node containing the service order number.

12. A management device for business and process engine mapping, characterized in that: include: A first acquisition module is used to acquire a business order number of a business process and a sub-process number during the execution of the business process; A second acquisition module is used to acquire a process instance number of a process instance corresponding to the business process; A mapping establishment module, used to call the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree through the configuration information of the process lineage tree component in the preset business process template, wherein the mapping relationship includes the mapping relationship between the business order number and the process instance number, and the mapping relationship between the sub-process number and the process instance number; The process of calling the process lineage tree component to save the mapping relationship between the business process and the process engine to the node of the process lineage tree by presetting the configuration information of the process lineage tree component in the business process template includes: By presetting the configuration information of the process lineage tree component in the business process template, the process lineage tree component is called to use the mapping relationship between the business order number, the process instance number and the root process instance information number as the root information of the process lineage tree; By presetting the configuration information of the process lineage tree component in the business process template, the process lineage tree component is called to use the mapping relationship between the business order number, sub-process number, process instance number, root process instance information number and process hierarchy relationship number as the branch information of the corresponding level in the process lineage tree.

13. An electronic device, characterized in that: The electronic device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the management method for business and process engine mapping as described in any one of claims 1-11.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for managing business and process engine mapping as described in any one of claims 1 to 11 is implemented.

Citation Information

Patent Citations

  • Business flow processing method and intermediate agent layer

    CN108829385A