Business flow chart processing method and device
By listening to copy and paste events and using shared storage to realize the copy and paste function of cross-business flow charts, the problem of inability to facilitate operation and process reuse between multiple bpmn diagrams in the prior art is solved, and operation flexibility and generation efficiency are improved.
Patent Information
- Application Number
- CN202411629553.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-03-21
AI Technical Summary
The existing bpmn diagram editor cannot easily switch and operate between multiple diagrams, and lacks the copy-paste function across browser windows, which limits the process reuse of business flow charts and affects user workflow and operation flexibility.
By listening to copy events and pasting events, the process to be reused in the first business flow chart is copied and pasted into the second business flow chart using shared storage, thereby realizing the copy and pasting function of cross-business flow chart.
It realizes convenient switching and operation between multiple business flow charts, solves the problem of process reuse, simplifies user workflow, improves operation flexibility and business flow chart generation efficiency.
Smart Images

Figure CN119668680A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for processing a business process diagram. Background Art
[0002] In the process of software development, it is usually necessary to develop business functions based on business process diagrams. In many scenarios of business function development, all or part of the processes in the existing business process diagrams need to be reused. For example, both data query and data modification business functions require user identity authentication, so both business functions need to implement the common function of identity authentication. At this time, there is a need to reuse the business process diagram corresponding to the identity authentication function.
[0003] However, when using the bpmn (Business Process Modeling Notation) diagram editor to edit a business process diagram, the existing technology can only edit on a single bpmn diagram, and cannot conveniently switch and operate between multiple diagrams. At the same time, the existing bpmn diagram editor does not provide a copy and paste function across browser windows, which limits the reuse of processes between bpmn diagrams, affects the user's workflow and operational flexibility, and has the problem of low efficiency in generating business process diagrams. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a method and device for processing a business process diagram, which can monitor copy events and paste events, and copy and paste the process to be reused in a first business process diagram into a second business process diagram through shared storage, thereby realizing the copy and paste function across business process diagrams, and can conveniently switch and operate between multiple business process diagrams, solve the problem of process reuse between business process diagrams, simplify the user's workflow, and improve the operational flexibility and generation efficiency of business process diagrams.
[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for processing a business process diagram is provided, comprising: In response to monitoring the copy event, saving the process to be reused in the first business process diagram to the shared storage, wherein the process to be reused includes at least one process node and connection relationships between the process nodes; In response to monitoring a paste event, acquiring the process to be reused from the shared storage; Paste the process to be reused into the second business process diagram to edit the second business process diagram.
[0006] Optionally, the shared storage is local browser storage, and the process to be reused in the first business process diagram is saved in the shared storage, including: serializing the process to be reused in the first business process diagram to obtain a reused process string, and saving the reused process string in the shared storage; obtaining the process to be reused from the shared storage, including: obtaining the reused process string from the shared storage, and deserializing the reused process string to obtain the process to be reused.
[0007] Optionally, saving the process to be reused in the first business process diagram to a shared storage includes: encapsulating the process to be reused in the first business process diagram into a message, and sending the message in the form of a broadcast to the window where the second business process diagram is located, so that the window where the second business process diagram is located parses the message and saves it to the memory of the window where the second business process diagram is located, so as to share the storage of the process to be reused; obtaining the process to be reused from the shared storage includes: obtaining the process to be reused from the memory of the window where the second business process diagram is located.
[0008] Optionally, the first business process diagram and the second business process diagram are two business process diagrams located in different browser windows, or in different tabs of the same browser window, or in the same tab.
[0009] Optionally, by encapsulating a label component in an editor of the business process diagram, multiple business process diagrams in different browser windows, or in different tabs of the same browser window, or in the same tab are processed.
[0010] According to another aspect of an embodiment of the present invention, a device for processing a business process graph is provided, including: A reused process copy module, configured to save the process to be reused in the first business process diagram to a shared storage in response to monitoring a copy event, wherein the process to be reused includes at least one process node and a connection relationship between the process nodes; A reuse process acquisition module, configured to acquire the process to be reused from the shared storage in response to monitoring a paste event; The reused process pasting module is used to paste the process to be reused into the second business process diagram to edit the second business process diagram.
[0011] Optionally, the shared storage is local browser storage, and the reused process copy module is also used to: serialize the process to be reused in the first business process diagram to obtain a reused process string, and save the reused process string to the shared storage; the reused process acquisition module is also used to: obtain the reused process string from the shared storage, and deserialize the reused process string to obtain the process to be reused.
[0012] Optionally, the reused process copy module is also used to: encapsulate the process to be reused in the first business process diagram into a message, and send the message in the form of a broadcast to the window where the second business process diagram is located, so that the window where the second business process diagram is located parses the message and saves it to the memory of the window where the second business process diagram is located, so as to share the storage of the process to be reused; the reused process acquisition module is also used to: acquire the process to be reused from the memory of the window where the second business process diagram is located.
[0013] Optionally, the first business process diagram and the second business process diagram are two business process diagrams located in different browser windows, or in different tabs of the same browser window, or in the same tab.
[0014] Optionally, by encapsulating a label component in an editor of the business process diagram, multiple business process diagrams in different browser windows, or in different tabs of the same browser window, or in the same tab are processed.
[0015] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method for processing the business process diagram provided by an embodiment of the present invention.
[0016] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for processing a business process graph provided by an embodiment of the present invention is implemented.
[0017] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the method for processing a business process graph provided by an embodiment of the present invention is implemented.
[0018] An embodiment of the above invention has the following advantages or beneficial effects: by responding to monitoring a copy event, saving the process to be reused in the first business process diagram to a shared storage, the process to be reused includes no less than one process node and the connection relationship between the process nodes; in response to monitoring a paste event, obtaining the process to be reused from the shared storage; pasting the process to be reused into the second business process diagram to edit the second business process diagram, the technical scheme realizes the copy and paste function across business process diagrams by monitoring copy events and paste events, and copying and pasting the process to be reused in the first business process diagram into the second business process diagram through shared storage, which can easily switch and operate between multiple business process diagrams, solve the problem of process reuse between business process diagrams, simplify the user's workflow, and improve the operational flexibility and the efficiency of generating business process diagrams.
[0019] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention. Figure 1 It is a schematic diagram of the processing method of the existing business process diagram; Figure 2 It is a schematic diagram of a processing method of a business flow diagram of an embodiment of the present invention; Figure 3 is a system principle diagram of an embodiment of the present invention; Figure 4 is a schematic diagram of main steps of a method for processing a business flow chart according to an embodiment of the present invention; Figure 5 is a schematic diagram of main modules of a device for processing a business process graph according to an embodiment of the present invention; Figure 6 is an exemplary system architecture diagram to which embodiments of the present invention may be applied; Figure 7 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0021] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0022] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution disclosed in the present invention are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.
[0023] Figure 1 This is a schematic diagram of the processing method of the existing business process diagram. Figure 1 As shown, when the prior art processes a business process diagram (i.e., bpmn diagram), for bpmn diagrams in different browser windows, or different bpmn diagrams in the same browser window, it is impossible to copy and paste part or all of the process diagram between any two bpmn diagrams, and it can only be copied and pasted within the same bpmn diagram. Therefore, the existing processing method of business process diagrams cannot perform copy and paste operations between different bpmn diagrams, which limits the workflow and operational flexibility of users when editing business process diagrams.
[0024] In order to solve the technical problems existing in the prior art, the present invention needs to implement a more flexible way of processing business process diagrams. Figure 2 FIG. 1 is a schematic diagram of a processing method of a business flow chart of an embodiment of the present invention. Figure 2 As shown, it is shown that in an embodiment of the present invention, based on the processing method of the business process diagram provided by the present invention, it can be realized that for bpmn diagrams in different browser windows, or different bpmn diagrams in the same browser window, part or all of the flow charts can be copied and pasted between any two bpmn diagrams.
[0025] Figure 3 This is a system principle diagram of an embodiment of the present invention, which shows how the present invention implements a more flexible way of processing business process diagrams. The present invention provides an efficient and convenient business process diagram editing manager, which can copy and paste business process diagrams between multiple bpmn diagram editors, between multiple browser windows of a bpmn diagram editor, and between multiple business process diagrams in a browser window, ultimately improving the work efficiency and operation experience of users in editing business process diagrams.
[0026] like Figure 3 In an embodiment of the present invention, the business process diagram is processed by a bpmn manager, and the bpmn manager includes three parts: an editor, a shared storage, and a controller.
[0027] Among them, the editor is used to edit the bpmn diagram. The editor displays multiple browser windows. Each browser window includes different tab pages through a tabs component (label component), and each tab page has a bpmn diagram instance. In an embodiment of the present invention, in order to realize the function of switching multiple bpmn diagrams in the same browser window, the tabs component is encapsulated in the editor. In one browser window, the user can view and edit multiple bpmn diagrams at the same time. The user can switch different bpmn diagrams by clicking on different tab pages of the tabs component, thereby realizing the copy and paste operation between multiple bpmn diagrams.
[0028] Shared storage is used to store the node content and node connection relationship of the process nodes included in all or part of the flowchart in the bpmn diagram that needs to be copied and pasted, where the node content refers to the node-related description information and configuration information attached to each node, and the node connection relationship refers to the logical relationship between nodes, such as the information of the arrow connection between nodes: from which node (such as node id1) to which node (such as node id2), and the corresponding configuration information on the connection, etc.
[0029] The controller is used to control the copying or migration of the business process diagram by listening to the copy event and the paste event. The business process diagram to be copied or migrated is the node content and node connection relationship in the shared storage. At the same time, it can also monitor the tab switching event to determine whether the tab page is switched, and monitor the node addition event to monitor whether each bpmn diagram has been modified.
[0030] According to the technical solution of the embodiment of the present invention, the present invention can also open multiple editors, and accordingly, the present invention can also implement copying and pasting of business process diagrams between multiple editors.
[0031] Figure 4 FIG. 1 is a schematic diagram of the main steps of the method for processing a business flow chart according to an embodiment of the present invention. Figure 4 As shown, the method for processing the business process diagram of the embodiment of the present invention mainly includes the following steps S401 to S403.
[0032] Step S401: In response to monitoring a copy event, saving the process to be reused in the first business process diagram to a shared storage, wherein the process to be reused includes at least one process node and connection relationships between the process nodes.
[0033] According to one embodiment of the present invention, the shared storage is local browser storage. In this embodiment, the localStorage method is used to utilize the local browser storage to achieve data sharing under the same domain name. When using the local browser storage as the shared storage, the process to be reused in the first business process diagram is saved in the shared storage, which may specifically include: serializing the process to be reused in the first business process diagram to obtain a reused process string, and saving the reused process string to the shared storage. Since localStorage can only store data in the form of a string when storing data, when storing the process to be reused in the first business process diagram in the local browser storage, it is necessary to serialize the process to be reused to obtain a reused process string, and then save the reused process string to the shared storage.
[0034] According to another embodiment of the present invention, the Web API (network interface) of Broadcast Channel can also be used to realize shared storage of data. In the specific implementation, the process to be reused in the first business process diagram is saved in the shared storage, which can specifically include: encapsulating the process to be reused in the first business process diagram into a message, and sending the message in the form of broadcast to the window where the second business process diagram is located, so that the window where the second business process diagram is located parses the message and saves it to the memory of the window where the second business process diagram is located, so as to share the storage of the process to be reused. When the Web API of Broadcast Channel is used to realize shared storage of data, cross-window communication can be realized between different browser windows, different tabs in the same browser window, or different frames, and then the data to be shared is placed in the memory corresponding to each browser window, different tabs in the browser window, or different frames, thereby realizing shared storage of data.
[0035] Step S402: In response to monitoring a paste event, obtaining the process to be reused from the shared storage. When the user switches to the second business process diagram to paste the process to be reused and performs a paste operation, a paste event is generated, so that the controller can obtain the process to be reused from the shared storage after monitoring the paste event.
[0036] According to one embodiment of the present invention, when the shared storage is local browser storage, obtaining the process to be reused from the shared storage may specifically include: obtaining the reuse process string from the shared storage, and deserializing the reuse process string to obtain the process to be reused. Since when the process to be reused in the first business process diagram is stored in the local browser storage, the process to be reused is serialized to obtain the reuse process string, and then the reuse process string is saved in the shared storage, when obtaining the process to be reused from the shared storage, it is necessary to first obtain the reuse process string from the shared storage, and deserialize the reuse process string to obtain the process to be reused.
[0037] According to another embodiment of the present invention, when using the Web API (network interface) of Broadcast Channel to realize shared storage of data, since when the process to be reused in the first business process diagram is saved to the shared storage, the process to be reused is stored in the memory corresponding to each browser window, different tabs in the browser window, or different frames, therefore, when obtaining the process to be reused from the shared storage, it can specifically include: obtaining the process to be reused from the memory of the window where the second business process diagram is located. In this way, the process to be reused can be copied and pasted from the first business process diagram to the second business process diagram through shared storage.
[0038] Step S403: Paste the process to be reused into the second business process diagram to edit the second business process diagram. When the user switches to the second business process diagram to paste the process to be reused and performs the paste operation, the process to be reused can be pasted into the second business process diagram, thereby realizing the copy and paste of the business process diagram, which is convenient for editing the second business process diagram.
[0039] According to one embodiment of the present invention, the first business process diagram and the second business process diagram are two business process diagrams located in different browser windows, or in different tabs of the same browser window, or in the same tab.
[0040] Specifically, in an embodiment of the present invention, multiple business process diagrams in different browser windows, or in different tabs of the same browser window, or in the same tab can be processed by encapsulating a tag component in an editor of the business process diagram.
[0041] According to the above-mentioned steps S401 to S403, the present invention allows users to implement copy and paste operations between multiple bpmn diagrams. When a user selects a certain (or some) process node in a browser window (or a tab page of the tabs component) and performs a copy operation, the process node (or the connection relationship between these process nodes and the nodes) will be copied to the system's clipboard for shared storage. For the copy and paste of multiple process nodes, the system will retain the connection relationship between the nodes to ensure that the copied nodes can be correctly inserted into the target position in the target bpmn diagram. The user can then perform a paste operation in another browser window (or another tab page of the tabs component) to paste the data in the clipboard into the bpmn diagram in the browser window (or the tab page), thereby realizing the copy and paste operation across bpmn diagrams.
[0042] Figure 5 1 is a schematic diagram of the main modules of a processing device for a business flow chart according to an embodiment of the present invention. Figure 5 As shown, the business process graph processing device 500 of the embodiment of the present invention mainly includes a reused process copy module 501, a reused process acquisition module 502 and a reused process pasting module 503.
[0043] The reused process copy module 501 is used to save the process to be reused in the first business process diagram to the shared storage in response to monitoring the copy event, wherein the process to be reused includes at least one process node and the connection relationship between the process nodes; A reuse process acquisition module 502, configured to acquire the to-be-reused process from the shared storage in response to monitoring a paste event; The reused process pasting module 503 is used to paste the process to be reused into the second business process diagram to edit the second business process diagram.
[0044] According to one embodiment of the present invention, the shared storage is local browser storage, and the reuse process copy module 501 can also be used to: serialize the process to be reused in the first business process diagram to obtain a reuse process string, and save the reuse process string to the shared storage; the reuse process acquisition module 502 can also be used to: obtain the reuse process string from the shared storage, and deserialize the reuse process string to obtain the process to be reused.
[0045] According to another embodiment of the present invention, the reused process copy module 501 can also be used to: encapsulate the process to be reused in the first business process diagram as a message, and send the message to the window where the second business process diagram is located in the form of a broadcast, so that the window where the second business process diagram is located parses the message and saves it to the memory of the window where the second business process diagram is located, so as to share the storage of the process to be reused; the reused process acquisition module 502 can also be used to: obtain the process to be reused from the memory of the window where the second business process diagram is located.
[0046] According to another embodiment of the present invention, the first business process diagram and the second business process diagram are two business process diagrams located in different browser windows, or in different tabs of the same browser window, or in the same tab.
[0047] According to another embodiment of the present invention, a tag component is encapsulated in an editor of a business process diagram to process multiple business process diagrams in different browser windows, or in different tabs of the same browser window, or in the same tab.
[0048] According to the technical solution of the embodiment of the present invention, in response to monitoring a copy event, the process to be reused in the first business process diagram is saved in a shared storage, and the process to be reused includes no less than one process node and a connection relationship between the process nodes; in response to monitoring a paste event, the process to be reused is obtained from the shared storage; and the process to be reused is pasted into the second business process diagram to edit the second business process diagram. The technical solution realizes the copy and paste function across business process diagrams by monitoring copy events and paste events, and copying and pasting the process to be reused in the first business process diagram into the second business process diagram through shared storage. It can easily switch and operate between multiple business process diagrams, solve the problem of process reuse between business process diagrams, simplify the user's workflow, and improve the operational flexibility and the generation efficiency of business process diagrams.
[0049] Figure 6 An exemplary system architecture 600 is shown to which the method for processing a business process graph or the device for processing a business process graph according to the embodiment of the present invention can be applied.
[0050] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0051] The user can use the terminal devices 601, 602, 603 to interact with the server 605 through the network 604 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 601, 602, 603, such as flowchart editing applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0052] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0053] The server 605 may be a server that provides various services, such as a background management server that provides support for shopping websites browsed by users using terminal devices 601, 602, and 603 (for example only). The background management server may respond to the received business process diagram processing request and other data by listening to a copy event, saving the process to be reused in the first business process diagram to a shared storage, wherein the process to be reused includes no less than one process node and the connection relationship between the process nodes; in response to listening to a paste event, obtaining the process to be reused from the shared storage; pasting the process to be reused into the second business process diagram to edit the second business process diagram and other processing, and feeding back the processing result (for example, the edited second business process diagram - for example only) to the terminal device.
[0054] It should be noted that the method for processing the business process diagram provided in the embodiment of the present invention is generally executed by the server 605 , and accordingly, the processing device for the business process diagram is generally arranged in the server 605 .
[0055] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0056] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of a terminal device or a server suitable for implementing an embodiment of the present invention. Figure 7 The terminal device or server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0057] like Figure 7As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0058] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.
[0059] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.
[0060] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0061] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0062] The units or modules involved in the embodiments of the present invention may be implemented in software or in hardware. The units or modules described may also be provided in a processor. For example, they may be described as follows: a processor includes a reused process copy module, a reused process acquisition module, and a reused process paste module. Among them, the names of these units or modules do not constitute limitations on the units or modules themselves in certain circumstances. For example, the reused process paste module may also be described as "a module for pasting the process to be reused into a second business process diagram to edit the second business process diagram."
[0063] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: in response to monitoring a copy event, saving the process to be reused in the first business process diagram to a shared storage, wherein the process to be reused includes no less than one process node and a connection relationship between process nodes; in response to monitoring a paste event, obtaining the process to be reused from the shared storage; pasting the process to be reused into the second business process diagram to edit the second business process diagram.
[0064] According to the technical solution of the embodiment of the present invention, in response to monitoring a copy event, the process to be reused in the first business process diagram is saved in a shared storage, and the process to be reused includes no less than one process node and a connection relationship between the process nodes; in response to monitoring a paste event, the process to be reused is obtained from the shared storage; and the process to be reused is pasted into the second business process diagram to edit the second business process diagram. The technical solution realizes the copy and paste function across business process diagrams by monitoring copy events and paste events, and copying and pasting the process to be reused in the first business process diagram into the second business process diagram through shared storage. It can easily switch and operate between multiple business process diagrams, solve the problem of process reuse between business process diagrams, simplify the user's workflow, and improve the operational flexibility and the generation efficiency of business process diagrams.
[0065] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for processing a business process diagram, characterized in that: include: In response to monitoring the copy event, saving the process to be reused in the first business process diagram to the shared storage, wherein the process to be reused includes at least one process node and connection relationships between the process nodes; In response to monitoring a paste event, acquiring the process to be reused from the shared storage; Paste the process to be reused into the second business process diagram to edit the second business process diagram.
2. The method according to claim 1, characterized in that The shared storage is a local browser storage, and the process to be reused in the first business process diagram is saved in the shared storage, including: Serializing the process to be reused in the first business process diagram to obtain a reused process string, and saving the reused process string to a shared storage; Acquiring the process to be reused from the shared storage includes: The reused process string is obtained from the shared storage, and the reused process string is deserialized to obtain the process to be reused.
3. The method according to claim 1, characterized in that Saving the process to be reused in the first business process diagram to the shared storage includes: Encapsulating the process to be reused in the first business process diagram as a message, and sending the message to the window where the second business process diagram is located in the form of broadcast, so that the window where the second business process diagram is located parses the message and saves it to the memory of the window where the second business process diagram is located, so as to perform shared storage for the process to be reused; Acquiring the process to be reused from the shared storage includes: The process to be reused is obtained from the memory of the window where the second business process diagram is located.
4. The method according to claim 1, characterized in that: The first business process diagram and the second business process diagram are two business process diagrams located in different browser windows, or in different tabs of the same browser window, or in the same tab.
5. The method according to claim 4, characterized in that By encapsulating a label component in the editor of the business process diagram, multiple business process diagrams in different browser windows, or in different tabs of the same browser window, or in the same tab are processed.
6. A device for processing a business process diagram, characterized in that: include: A reused process copy module, configured to save the process to be reused in the first business process diagram to a shared storage in response to monitoring a copy event, wherein the process to be reused includes at least one process node and a connection relationship between the process nodes; A reuse process acquisition module, configured to acquire the process to be reused from the shared storage in response to monitoring a paste event; The reused process pasting module is used to paste the process to be reused into the second business process diagram to edit the second business process diagram.
7. The device according to claim 6, characterized in that The shared storage is local browser storage, and the reuse process copy module is also used for: Serializing the process to be reused in the first business process diagram to obtain a reused process string, and saving the reused process string to a shared storage; The reuse process acquisition module is also used for: The reused process string is obtained from the shared storage, and the reused process string is deserialized to obtain the process to be reused.
8. An electronic device, characterized in that: include: one or more processors; a storage device 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 method according to any one of claims 1 to 5.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.