CN109447582B - Business process processing method, device and storage medium - Google Patents

Business process processing method, device and storage medium Download PDF

Info

Publication number
CN109447582B
CN109447582B CN201811210817.6A CN201811210817A CN109447582B CN 109447582 B CN109447582 B CN 109447582B CN 201811210817 A CN201811210817 A CN 201811210817A CN 109447582 B CN109447582 B CN 109447582B
Authority
CN
China
Prior art keywords
json file
business process
server
service flow
modification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811210817.6A
Other languages
Chinese (zh)
Other versions
CN109447582A (en
Inventor
崔宝卫
张霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Neusoft Corp
Original Assignee
Neusoft Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Neusoft Corp filed Critical Neusoft Corp
Priority to CN201811210817.6A priority Critical patent/CN109447582B/en
Publication of CN109447582A publication Critical patent/CN109447582A/en
Application granted granted Critical
Publication of CN109447582B publication Critical patent/CN109447582B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Abstract

The embodiment of the invention provides a method, equipment and a storage medium for processing a business process, wherein the method comprises the following steps: the method comprises the steps of sending a modification message for modifying a first element in a service flow to be modified to a server, receiving a first JSON file of the service flow to be modified sent by the server, modifying the first element in the service flow to obtain a second JSON file of the service flow, sending an acquisition instruction for acquiring a third JSON file of the service flow to the server, receiving the third JSON file of the service flow sent by the server, comparing whether a first element in the third JSON file is consistent with a first element in the first JSON file or not, sending the second JSON file to the server if the first element in the third JSON file is consistent with the first element in the first JSON file, supporting a plurality of users to operate the same element in the service flow at the same time, and improving the operation efficiency.

Description

Business process processing method, device and storage medium
Technical Field
The embodiment of the invention relates to the field of computers, in particular to a method, equipment and a storage medium for processing a business process.
Background
With the development of enterprises, the businesses of the enterprises are diversified, and the businesses of the enterprises relate to products, financial data, clients and the like, so that the reasonable management of the businesses is more important.
In the prior art, the key of service management is to establish an effective service flow, and generally, a service flow includes multiple elements that can be designed and modified, and currently, multiple users are allowed to operate the service flow of a server in a serial manner through a client, for example, after a user a operates the service flow, a user B operates the service flow.
However, the scheme in the prior art cannot support multiple users to operate the same element in the service flow at the same time, which reduces the operation efficiency.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, and a storage medium for processing a service flow, so as to solve a problem that a prior art cannot support multiple users to simultaneously operate a same element in the service flow.
In a first aspect, an embodiment of the present invention provides a method for processing a service flow, including:
sending a modification message for modifying a first element in a service flow to be modified to a server so that the server finds a first JavaScript object notation JSON file corresponding to the service flow according to the modification message;
receiving the first JSON file of the service flow to be modified, which is sent by the server;
modifying the first element in the business process to obtain a second JSON file of the business process;
sending an acquisition instruction for acquiring a third JSON file of the business process to the server so that the server sends the third JSON file of the business process to the terminal equipment;
receiving a third JSON file of the business process sent by the server;
comparing whether a first element in the third JSON file is consistent with the first element in the first JSON file;
and if the first element in the third JSON file is consistent with the first element in the first JSON file, sending the second JSON file to the server.
Optionally, the method further includes:
and if the first element in the third JSON file is inconsistent with the first element in the first JSON file, determining that the modification of the first element in the third JSON file is different from or conflicting with the modification of the first element in the second JSON file.
Optionally, the method further includes:
if the modification of the first element in the third JSON file is different from the modification of the first element in the second JSON file, acquiring a fourth JSON file; the first element in the fourth JSON file is obtained by combining the modification of the first element in the third JSON file and the modification of the first element in the second JSON file;
and sending the fourth JSON file to the server.
Optionally, the method further includes:
if the modification of the first element in the third JSON file is in conflict with the modification of the first element in the second JSON file, acquiring a fifth JSON file; wherein the first element in the fifth JSON file is the first element in the third JSON file selected by the user or the first element in the second JSON file;
and sending the fifth JSON file to the server.
In a second aspect, an embodiment of the present invention provides a method for processing a service flow, including:
receiving a modification message sent by a terminal device for modifying a first element in a service flow to be modified;
searching a first JavaScript object numbered notation JSON file corresponding to the business process according to the modification message;
sending the first JSON file of the service flow to be modified to the terminal equipment so that the terminal equipment modifies the first element in the service flow to obtain a second JSON file of the service flow;
receiving an acquisition instruction which is sent by the terminal equipment and used for acquiring a third JSON file of the business process;
sending a third JSON file of the business process to the terminal equipment so that the terminal equipment compares whether a first element in the third JSON file is consistent with the first element in the first JSON file;
and when a first element in a third JSON file is consistent with the first element in the first JSON file, receiving a second JSON file of the business process sent by the terminal equipment, and updating the locally stored third JSON file corresponding to the business process into the second JSON file.
In a third aspect, an embodiment of the present invention provides a terminal device, including:
the system comprises a sending module, a receiving module and a processing module, wherein the sending module is used for sending a modification message for modifying a first element in a service flow to be modified to a server so that the server can find a first JavaScript object notation JSON file corresponding to the service flow according to the modification message;
the receiving module is used for receiving the first JSON file of the service flow to be modified, which is sent by the server;
the processing module is used for modifying the first element in the business process to obtain a second JSON file of the business process;
the sending module is further configured to send an obtaining instruction for obtaining the third JSON file of the service flow to the server, so that the server sends the third JSON file of the service flow to the terminal device;
the receiving module is further configured to receive a third JSON file of the business process sent by the server;
the sending module is further configured to send the second JSON file to the server if the first element in the third JSON file is consistent with the first element in the first JSON file.
Optionally, the processing module is further configured to:
and if the first element in the third JSON file is inconsistent with the first element in the first JSON file, determining that the modification of the first element in the third JSON file is different from or conflicting with the modification of the first element in the second JSON file.
Optionally, the system further includes an obtaining module, where the obtaining module is configured to:
if the modification of the first element in the third JSON file is different from the modification of the first element in the second JSON file, acquiring a fourth JSON file; the first element in the fourth JSON file is obtained by combining the modification of the first element in the third JSON file and the modification of the first element in the second JSON file;
the sending module is further configured to send the fourth JSON file to the server.
Optionally, the obtaining module is further configured to:
if the modification of the first element in the third JSON file is in conflict with the modification of the first element in the second JSON file, acquiring a fifth JSON file; wherein the first element in the fifth JSON file is the first element in the third JSON file selected by the user or the first element in the second JSON file;
the sending module is further configured to send the fifth JSON file to the server.
In a fourth aspect, an embodiment of the present invention provides a server, including:
the receiving module is used for receiving a modification message sent by the terminal equipment for modifying a first element in a service flow to be modified;
the processing module is used for searching a first JavaScript object numbered notation JSON file corresponding to the business process according to the modification message;
the sending module is used for sending the first JSON file of the service flow to be modified to the terminal equipment so that the terminal equipment modifies the first element in the service flow to obtain a second JSON file of the service flow;
the receiving module is further configured to receive an obtaining instruction sent by the terminal device and used for obtaining a third JSON file of the business process;
the sending module is further configured to send a third JSON file of the business process to the terminal device, so that the terminal device compares whether a first element in the third JSON file is consistent with the first element in the first JSON file;
the receiving module is further configured to receive a second JSON file of the business process sent by the terminal device when a first element in the third JSON file is consistent with the first element in the first JSON file, update a locally stored third JSON file corresponding to the business process to the second JSON file, and the processing module is configured to update a locally stored third JSON file corresponding to the business process to the second JSON file.
In a fifth aspect, an embodiment of the present invention provides a terminal device, including: a receiver, a transmitter, a memory, a processor, and a computer program;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored by the memory, so that the processor executes the processing method of the business process according to the first aspect.
In a sixth aspect, an embodiment of the present invention provides a server, including: a receiver, a transmitter, a memory, a processor, and a computer program;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored by the memory, so that the processor executes the processing method of the business process according to the second aspect.
In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the method for processing the business process according to the first aspect is implemented.
In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the method for processing a business process according to the second aspect is implemented.
The method, the device and the storage medium for processing the service flow provided by the embodiment of the invention send a modification message for modifying a first element in the service flow to be modified to a server, so that the server searches a first JavaScript object notation JSON file corresponding to the service flow according to the modification message, receives the first JSON file of the service flow to be modified sent by the server, modifies the first element in the service flow to obtain a second JSON file of the service flow, sends an acquisition instruction for acquiring a third JSON file of the service flow to the server, so that the server sends the third JSON file of the service flow to a terminal device, receives the third JSON file of the service flow sent by the server, compares whether the first element in the third JSON file is consistent with the first element in the first JSON file, and if the first element in the third JSON file is consistent with the first element in the first JSON file, and sending the second JSON file to a server to support a plurality of users to operate the same element in the service flow at the same time, thereby improving the operation efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of a processing system of a business process according to an embodiment of the present invention;
FIG. 2 is a flow chart of a medical visit provided by an embodiment of the present invention;
fig. 3 is a first flowchart of a method for processing a business process according to an embodiment of the present invention;
fig. 4 is a second schematic flowchart of a method for processing a business process according to an embodiment of the present invention;
fig. 5 is a third schematic flow chart of a method for processing a business process according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a hardware structure of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic view of a scenario of a processing system of a business process according to an embodiment of the present invention, and as shown in fig. 1, the processing system of a business process according to an embodiment of the present invention includes a terminal device 101 and a server 102. The terminal device 101 may be a mobile phone, a tablet computer, a notebook computer, etc., and the implementation manner of the terminal device 101 is not particularly limited in this embodiment.
The business process refers to activities which are completed by different people to achieve specific targets, and the activities are limited by strict sequence, and the content, mode, responsibility and the like of the activities also need to be arranged and defined clearly. The form of the service flow includes a service flow chart, a text flow, and the like, which is not limited in this embodiment.
Currently, when a business process is processed, a plurality of users are allowed to operate the business process of a server (server 102) in a serial manner through a client (terminal device 101), for example, modify, delete, add, and the like, specifically, a user downloads the business process stored in the server 102 to the local of the terminal 101, and then operates the business process through the terminal device 101 in a serial manner; or, the terminal 101 stores the service flow locally in advance, so that the user can operate the service flow in a serial manner. The following will explain the medical examination flow chart in fig. 2 as an example.
Fig. 2 is a flow chart of a medical treatment provided by an embodiment of the present invention, as shown in fig. 2, the flow chart of the medical treatment includes "seeking medical table", "registration", "selecting doctor", etc., and the medical treatment flow chart is usually modified as the medical treatment flow is gradually improved, for example, "cash payment" is modified to "bank card payment" or "cash payment" is modified to "medical insurance card payment".
Currently, multiple hospital managers are not allowed to make the same modification to the same element (for example, cash payment) in the visit flow chart, and usually only one person is allowed to make the modification to the visit flow chart, and another person can make the modification, that is, the business flow can be operated in a serial manner.
For example, when the first administrator modifies the "cash payment" in the visit flow chart, the second administrator cannot modify the "cash payment", and the second administrator can modify the "cash payment" only after the first administrator completes the modification and closes the visit flow chart.
However, in some scenarios, the above scheme cannot support multiple users to simultaneously operate the same element of a certain service flow, i.e., perform parallel operation, which reduces operation efficiency. In order to solve the technical problem, the present embodiment provides a method for processing a business process, which allows multiple users to simultaneously operate on the same element in the same business process. The following examples are given for illustrative purposes.
Fig. 3 is a first schematic flow chart of a method for processing a service flow according to an embodiment of the present invention, where an execution main body of the embodiment is a terminal device, and as shown in fig. 3, the method includes:
s301, sending a modification message for modifying a first element in a service process to be modified to a server, so that the server searches a first JSON file corresponding to the service process according to the modification message.
It should be understood that the terminal device is installed with software of the process design class, or a small tool of the process design class is configured in a browser of the terminal device, and the specific implementation manner of the process designer is not limited in this scheme as long as it can implement drawing of the business process. The service process may be a flow chart, such as: the purchase flow chart, the visit flow chart, etc., can also be texts, such as: the flow of the character recording is not limited by the scheme.
In this step, according to the user operation, the terminal device receives a modification message for modifying a first element in a service flow to be modified, and sends the modification message to the server, where the modification message carries an identifier of the service flow, and the identifier may be a service name corresponding to the service flow, such as: the purchase process, or the code of the business process, such as: the number 1 service flow is not limited in this respect, as long as the identifier can uniquely represent the service flow. The first element may be an item such as number of people, price, department, etc. in the business process.
S302, receiving a first JSON file of the business process to be modified, which is sent by the server.
After the terminal device sends the modification message to the server, the server searches for the first JSON file corresponding to the service flow according to the identifier of the service flow carried by the modification message, and sends the first JSON file to the terminal device.
The "first JSON file" is the entire JSON file of the service process, and is not a part of the JSON file, the "first" is only to indicate that the JSON file sent by the server is received for the first time, and similarly, the "second", "third", "fourth", and "fifth" that follow are also the entire JSON file of the service process, and for clarity, the "first", "third", "fourth", and "fifth" are used in the present scheme to distinguish the JSON files obtained for the second time.
S303, modifying the first element in the business process to obtain a second JSON file of the business process.
The business process can be stored locally in the terminal equipment or on the server, and the scheme does not limit the storage path of the business process. According to the user operation, after the first element in the business process is modified, the first JSON file is updated to obtain a second JSON file of the business process, and the specific mode of generating the JSON file according to the business process is similar to that in the prior art, and is not repeated herein.
And S304, sending an acquisition instruction for acquiring the third JSON file of the business process to the server so that the server sends the third JSON file of the business process to the terminal equipment.
And S305, receiving a third JSON file of the business process sent by the server.
In a possible implementation manner, the terminal device may store the second JSON file and send the stored message to the server, after receiving the stored message, the server searches for a third JSON file according to the identifier of the service flow carried in the stored message, and sends the third JSON file to the terminal device, or the terminal device may send an acquisition instruction to the server after obtaining the second JSON file, where the acquisition instruction carries the identifier of the service flow, after receiving the acquisition instruction, the server searches for the third JSON file according to the identifier, and sends the third JSON file to the terminal device, and accordingly, the terminal device receives the third JSON file of the service flow sent by the server. The acquisition instruction in the present embodiment is used to acquire the third JSON file, and is not limited to the form.
It should be appreciated that the third JSON is the most recent JSON file on the server.
S306, whether the first element in the third JSON file is consistent with the first element in the first JSON file or not is compared.
And S307, if the first element in the third JSON file is consistent with the first element in the first JSON file, the terminal equipment sends the second JSON file to the server.
The terminal equipment compares whether the first element in the first JSON file is consistent with the first element in the third JSON file, if so, the first element in the JSON file on the current server is not modified by other users, and the second JSON file is uploaded to the server; and if the two elements are not consistent, the fact that the first element in the JSON file on the current server is modified by other users is indicated.
Specifically, during the process that the user A modifies the business process, if no other person modifies the same element and uploads a JSON file to the server, the third JSON file is the first JSON file; if there is another person who modifies the same element and uploads the JSON file to the server during the modification of the service flow by the user a, the third JSON file is different from the first JSON file, that is, a plurality of users are allowed to operate the same element at the same time.
Optionally, the first JSON file includes first version information of the service flow, the second JSON file includes second version information of the service flow, and the third JSON file includes third version information of the service flow; the version information includes a version number of the business process and/or a version number of the first element.
Optionally, the version number of the business process and the version number of the first element are named in an incremental manner, for example: v1.0, v1.1, v1.2, etc.
For example, the first JSON file includes a first version number and/or a version number of the first element of the business process, such as v1.0, and the third JSON file includes a third version number and/or a version number of the first element of the business process, such as v 1.3. Optionally, the terminal device compares, according to the first version information and the third version information, whether a first element in the third JSON file is consistent with a first element in the first JSON file, specifically, if the first version number is consistent with the third version number, the first element in the third JSON file is consistent with the first element in the first JSON file;
or judging whether the version number of the first element in the first JSON file is consistent with the version number of the first element in the third JSON file, and if the version number of the first element is consistent, enabling the first element in the third JSON file to be consistent with the first element in the first JSON file.
Correspondingly, if the first version number is not consistent with the third version number, or the version number of the first element in the first JSON file is not consistent with the version number of the first element in the third JSON file, the first element in the third JSON file is not consistent with the first element in the first JSON file.
In this step, if the first element in the third JSON file is consistent with the first element in the first JSON file, that is, no other user edits the first element during the period that the user edits the business process, and the latest JSON file is generated when the modified second JSON file is described, the latest JSON file, that is, the second JSON file, is sent to the server,
in the method for processing a service flow provided in this embodiment, a modification message for modifying a first element in a service flow to be modified is sent to a server, so that the server searches a first JavaScript object notation JSON file corresponding to the service flow according to the modification message, receives the first JSON file of the service flow to be modified sent by the server, modifies the first element in the service flow to obtain a second JSON file of the service flow, sends an obtaining instruction for obtaining a third JSON file of the service flow to the server, so that the server sends the third JSON file of the service flow to a terminal device, receives the third JSON file of the service flow sent by the server, compares whether a first element in the third JSON file is consistent with the first element in the first JSON file, if the first element in the third JSON file is consistent with the first element in the first JSON file, and sending the second JSON file to a server to support a plurality of users to operate the same element in the service flow at the same time, thereby improving the operation efficiency.
Fig. 4 is a second flowchart illustrating a method for processing a business process according to an embodiment of the present invention, where on the basis of the embodiment of fig. 3, if a first element in a third JSON file is not consistent with a first element in a first JSON file, the method shown in fig. 4 is executed, and as shown in fig. 4, the method includes:
s401, if the first element in the third JSON file is inconsistent with the first element in the first JSON file, determining that the modification of the first element in the third JSON file is different from or conflicting with the modification of the first element in the second JSON file.
Specifically, if the first element in the third JSON file is inconsistent with the first element in the first JSON file, it indicates that the first element in the JSON file on the current server has been modified by another user, specifically, during the modification of the business process by the user a, another person modifies the first element and uploads the modified JSON file to the server, that is, the third JSON file is different from the first JSON file, that is, multiple users are allowed to operate the same element at the same time. In this way, it is determined whether the modification of the first element in the third JSON file is different from or conflicting with the modification of the first element in the second JSON file, so as to determine whether to retain the two modifications in the following.
Wherein, the differential modification refers to the modification of different elements of the same business process or different types of the same element. For example, the first element is financial management, the third JSON file adds a product in the financial management column, and the first JSON file modifies the unit price of a product in the financial management, and the two modifications do not interfere with each other, so that the modification is called differential modification.
Conflicting modifications are modifications of the same type to the same element of the same business process. For example, the third JSON file changes the unit price of the product to 200 at the "financial management" and the first JSON file changes the unit price of the product to 150 at the "financial management", both of which are made for the "product unit price", but the modification results are different, and therefore, are conflicting modifications.
S402, if the modification of the first element in the third JSON file is different from the modification of the first element in the second JSON file, a fourth JSON file is obtained.
And S403, sending the fourth JSON file to a server.
If the modification of the first element in the third JSON file and the modification of the first element in the second JSON file are differentially modified, the modification of the first element in the third JSON file and the modification of the first element in the second JSON file are combined to obtain a fourth JSON file, for example, if the third JSON file adds a product in the financial management column, and the first JSON file modifies the unit price of a certain product in the financial management column, both the modifications are reserved, the modification of the first element in the second JSON file is added to the third JSON file, or the modification of the first element in the third JSON file is added to the second JSON file to obtain the fourth JSON file, and the fourth JSON file is uploaded to the server. And the first element in the fourth JSON file is obtained by combining the modification of the first element in the third JSON file and the modification of the first element in the second JSON file.
S404, if the modification of the first element in the third JSON file is in conflict with the modification of the first element in the second JSON file, acquiring a fifth JSON file.
S405, the fifth JSON file is sent to a server.
And if the modification of the first element in the third JSON file is in conflict modification with the modification of the first element in the second JSON file, the user judges which modification is more reasonable to the modification of the first element in the third JSON file or the modification of the first element in the second JSON file, namely, which modification is reserved, and the modification is used as a fifth JSON file.
If the user selects the third JSON file, taking the third JSON file as a fifth JSON file, and uploading the fifth JSON file to the server; and if the user selects the second JSON file, taking the second JSON file as a fifth JSON file, and uploading the fifth JSON file to the server. And the first element in the fifth JSON file is the first element in the third JSON file selected by the user or the first element in the second JSON file.
In the method for processing a service flow provided in this embodiment, if a first element in a third JSON file is inconsistent with a first element in a first JSON file, it is determined that modification of the first element in the third JSON file is different from modification of the first element in the second JSON file or conflicting modification, if modification of the first element in the third JSON file is different from modification of the first element in the second JSON file, a fourth JSON file is obtained and uploaded to a server, and if modification of the first element in the third JSON file is conflicting modification of the first element in the second JSON file, a fifth JSON file is obtained and uploaded to the server, so that multiple users are supported to simultaneously operate the same element in the service flow, and operation efficiency is improved.
Fig. 5 is a third schematic flow chart of a method for processing a business process according to an embodiment of the present invention, where an execution main body of the embodiment is a server, and as shown in fig. 5, the method includes:
s501, receiving a modification message sent by the terminal device for modifying the first element in the service flow to be modified.
S502, searching a first JavaScript object notation JSON file corresponding to the business process according to the modification message.
The modification message carries an identifier of the service process, where the identifier may be a service name corresponding to the service process, such as: the purchase process, or the code of the business process, such as: the number 1 service flow is not limited in this respect, as long as the identifier can uniquely represent the service flow. The first element may be an item such as number of people, price, department, etc. in the business process.
In the above steps, the server sends a modification message for modifying the first element in the service flow to be modified, searches for the first JavaScript object notation JSON file corresponding to the service flow according to the modification message, and sends the first JSON file to the terminal device.
The "first JSON file" is the entire JSON file of the service flow, and is not a part of the JSON file, the "first" is only to indicate the JSON file loaded from the server for the first time, and similarly, the following "second", "third", "fourth", and "fifth" are also the entire JSON file of the service flow, and for clarity, the scheme adopts the "first", "third", "fourth", and "fifth" to distinguish the JSON files obtained for the second time.
S503, sending the first JSON file of the service flow to be modified to the terminal equipment.
After finding out the first JSON file of the service flow to be modified, the server sends the first JSON file to the terminal equipment, so that the terminal equipment can modify the first element in the service flow, and the first JSON file is updated to obtain the second JSON file of the service flow.
And S504, receiving an acquisition instruction which is sent by the terminal equipment and used for acquiring the third JSON file of the business process.
The obtaining instruction carries an identifier of the service flow, where the identifier may be a service name corresponding to the service flow, such as: the purchase process, or the code of the business process, such as: the number 1 service flow is not limited in this respect, as long as the identifier can uniquely represent the service flow. The first element may be an item such as number of people, price, department, etc. in the business process.
In a possible implementation manner, the terminal device may store the second JSON file and send the stored message to the server, after receiving the stored message, the server searches for the third JSON file according to the identifier of the service flow carried in the stored message, and sends the third JSON file to the terminal device, or the terminal device may send an acquisition instruction to the server after obtaining the second JSON file, where the acquisition instruction carries the identifier of the service flow, after receiving the acquisition instruction, the server searches for the third JSON file according to the identifier, and sends the third JSON file to the terminal device, and accordingly, the server receives the acquisition instruction sent by the terminal device to acquire the third JSON file of the service flow. The acquisition instruction in the present embodiment is used to acquire the third JSON file, and is not limited to the form.
And S505, sending the third JSON file of the business process to the terminal equipment so that the terminal equipment compares whether the first element in the third JSON file is consistent with the first element in the first JSON file.
After receiving the acquisition instruction, the server searches the latest JSON file, namely the third JSON file, on the current server, and sends the third JSON file of the service process to the terminal device, so that the terminal device can compare whether the first element in the third JSON file is consistent with the first element in the first JSON file.
S506, when the first element in the third JSON file is consistent with the first element in the first JSON file, receiving a second JSON file of the service process sent by the terminal equipment, and updating the locally stored third JSON file corresponding to the service process into a second JSON file.
And after the terminal equipment receives the third JSON file, comparing whether the first element in the third JSON file is consistent with the first element in the first JSON file, if so, receiving a second JSON file of the service flow sent by the terminal equipment by the server, and updating the third JSON file corresponding to the locally stored service flow into the second JSON file, so that the JSON file stored on the server is the latest JSON file.
Optionally, as described in S402-S405 in the embodiment of fig. 4, if the modification to the first element in the third JSON file is different from the modification to the first element in the second JSON file, the terminal device obtains a fourth JSON file, and sends the fourth JSON file to the server; and if the modification of the first element in the third JSON file is in conflict with the modification of the first element in the second JSON file, the terminal equipment acquires a fifth JSON file and sends the fifth JSON file to the server.
Correspondingly, the server receives a fourth JSON file or a fifth JSON file sent by the terminal equipment.
The method for processing a service flow provided in this embodiment includes receiving a modification message sent by a terminal device to modify a first element in a service flow to be modified, searching a first JavaScript object notation JSON file corresponding to the service flow according to the modification message, sending the first JSON file of the service flow to be modified to the terminal device, so that the terminal device modifies the first element in the service flow to obtain a second JSON file of the service flow, receiving an acquisition instruction sent by the terminal device to acquire a third JSON file of the service flow, sending the third JSON file of the service flow to the terminal device, so that the terminal device compares whether a first element in the third JSON file is consistent with the first element in the first JSON file, and receiving the second JSON file of the service flow sent by the terminal device when the first element in the third JSON file is consistent with the first element in the first JSON file, and updating the locally stored third JSON file corresponding to the service flow into a second JSON file, supporting a plurality of users to simultaneously operate the same element in the service flow, and improving the operation efficiency.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, and as shown in fig. 6, the terminal device 60 includes: a sending module 601, a receiving module 602, and a processing module 603, wherein:
a sending module 601, configured to send a modification message for modifying a first element in a service flow to be modified to a server, so that the server finds a first JavaScript object notation JSON file corresponding to the service flow according to the modification message;
a receiving module 602, configured to receive the first JSON file of the service flow to be modified, where the first JSON file is sent by the server;
the processing module 603 is configured to modify the first element in the business process to obtain a second JSON file of the business process;
the sending module 601 is further configured to send an obtaining instruction for obtaining the third JSON file of the service flow to the server, so that the server sends the third JSON file of the service flow to the terminal device;
the receiving module 602 is further configured to receive a third JSON file of the business process sent by the server;
the sending module 601 is further configured to send the second JSON file to the server if the first element in the third JSON file is consistent with the first element in the first JSON file.
Optionally, the processing module 603 is further configured to:
and if the first element in the third JSON file is inconsistent with the first element in the first JSON file, determining that the modification of the first element in the third JSON file is different from or conflicting with the modification of the first element in the second JSON file.
Optionally, an obtaining module 604 is further included, where the obtaining module 604 is configured to:
if the modification of the first element in the third JSON file is different from the modification of the first element in the second JSON file, acquiring a fourth JSON file; the first element in the fourth JSON file is obtained by combining the modification of the first element in the third JSON file and the modification of the first element in the second JSON file;
the sending module 601 is further configured to send the fourth JSON file to the server.
Optionally, the obtaining module 604 is further configured to:
if the modification of the first element in the third JSON file is in conflict with the modification of the first element in the second JSON file, acquiring a fifth JSON file; wherein the first element in the fifth JSON file is the first element in the third JSON file selected by the user or the first element in the second JSON file;
the sending module 601 is further configured to send the fifth JSON file to the server.
The terminal device provided in the embodiment of the present invention may execute the method embodiments shown in fig. 3 and fig. 4, which have similar implementation principles and technical effects, and are not described herein again.
Fig. 7 is a schematic structural diagram of a server according to an embodiment of the present invention, and as shown in fig. 7, the server 70 includes: a receiving module 701, a processing module 702, and a sending module 703.
A receiving module 701, configured to receive a modification message sent by a terminal device and used for modifying a first element in a service flow to be modified;
a processing module 702, configured to search, according to the modification message, a first JavaScript object notation JSON file corresponding to the service flow;
a sending module 703, configured to send the first JSON file of the service flow to be modified to the terminal device, so that the terminal device modifies the first element in the service flow to obtain a second JSON file of the service flow;
the receiving module 701 is further configured to receive an obtaining instruction sent by the terminal device and used for obtaining a third JSON file of the business process;
the sending module 703 is further configured to send a third JSON file of the business process to the terminal device, so that the terminal device compares whether a first element in the third JSON file is consistent with the first element in the first JSON file;
the receiving module 701 is further configured to receive a second JSON file of the service flow sent by the terminal device when a first element in the third JSON file is consistent with the first element in the first JSON file, update a locally stored third JSON file corresponding to the service flow to the second JSON file, and the processing module 702 is configured to update a locally stored third JSON file corresponding to the service flow to the second JSON file.
The server provided in the embodiment of the present invention may execute the method embodiment shown in fig. 5, which has similar implementation principles and technical effects, and is not described herein again.
Fig. 8 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention, and as shown in fig. 8, the terminal device according to the embodiment includes:
a receiver, a transmitter, a memory, a processor, and a computer program;
the memory stores computer-executable instructions;
the processor runs the computer program to implement the steps performed by the terminal device in the above embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Fig. 9 is a schematic diagram of a hardware structure of a server according to an embodiment of the present invention, and as shown in fig. 9, the server according to the embodiment includes:
a receiver, a transmitter, a memory, a processor, and a computer program;
the memory stores computer-executable instructions;
the processor runs the computer program to realize the steps executed by the server in the above embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer execution instruction is stored in the computer-readable storage medium, and when a processor executes the computer execution instruction, the method for processing a service flow of a terminal device provided in any of the foregoing solutions is implemented.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer execution instruction is stored in the computer-readable storage medium, and when a processor executes the computer execution instruction, the method for processing a service flow of a server provided in any of the foregoing solutions is implemented.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device or host device.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for processing a business process is characterized by comprising the following steps:
sending a modification message for modifying a first element in a service flow to be modified to a server so that the server finds a first JavaScript object notation JSON file corresponding to the service flow according to the modification message;
receiving the first JSON file of the service flow to be modified, which is sent by the server;
modifying the first element in the business process to obtain a second JSON file of the business process;
sending an acquisition instruction for acquiring a third JSON file of the business process to the server so that the server sends the third JSON file of the business process to terminal equipment;
receiving a third JSON file of the business process sent by the server;
comparing whether a first element in the third JSON file is consistent with the first element in the first JSON file;
if the first element in the third JSON file is consistent with the first element in the first JSON file, sending the second JSON file to the server;
the method further comprises the following steps:
and if the first element in the third JSON file is inconsistent with the first element in the first JSON file, determining that the modification of the first element in the third JSON file is different from or conflicting with the modification of the first element in the second JSON file.
2. The method of claim 1, further comprising:
if the modification of the first element in the third JSON file is different from the modification of the first element in the second JSON file, acquiring a fourth JSON file; the first element in the fourth JSON file is obtained by combining the modification of the first element in the third JSON file and the modification of the first element in the second JSON file;
and sending the fourth JSON file to the server.
3. The method of claim 1, further comprising:
if the modification of the first element in the third JSON file is in conflict with the modification of the first element in the second JSON file, acquiring a fifth JSON file; wherein the first element in the fifth JSON file is the first element in the third JSON file selected by the user or the first element in the second JSON file;
and sending the fifth JSON file to the server.
4. A method for processing a business process is characterized by comprising the following steps:
receiving a modification message sent by a terminal device for modifying a first element in a service flow to be modified;
searching a first JavaScript object numbered notation JSON file corresponding to the business process according to the modification message;
sending the first JSON file of the service flow to be modified to the terminal equipment so that the terminal equipment modifies the first element in the service flow to obtain a second JSON file of the service flow;
receiving an acquisition instruction which is sent by the terminal equipment and used for acquiring a third JSON file of the business process;
sending a third JSON file of the business process to the terminal equipment so that the terminal equipment compares whether a first element in the third JSON file is consistent with the first element in the first JSON file;
when a first element in a third JSON file is consistent with the first element in the first JSON file, receiving a second JSON file of the business process sent by the terminal equipment, and updating the locally stored third JSON file corresponding to the business process into the second JSON file;
and if the first element in the third JSON file is inconsistent with the first element in the first JSON file, modifying the first element in the third JSON file and modifying the first element in the second JSON file in a difference way or a conflict way.
5. A terminal device, comprising:
the system comprises a sending module, a receiving module and a processing module, wherein the sending module is used for sending a modification message for modifying a first element in a service flow to be modified to a server so that the server can find a first JavaScript object notation JSON file corresponding to the service flow according to the modification message;
the receiving module is used for receiving the first JSON file of the service flow to be modified, which is sent by the server;
the processing module is used for modifying the first element in the business process to obtain a second JSON file of the business process;
the sending module is further configured to send an obtaining instruction for obtaining the third JSON file of the service flow to the server, so that the server sends the third JSON file of the service flow to the terminal device;
the receiving module is further configured to receive a third JSON file of the business process sent by the server;
the sending module is further configured to send the second JSON file to the server if the first element in the third JSON file is consistent with the first element in the first JSON file;
the processing module is further configured to:
and if the first element in the third JSON file is inconsistent with the first element in the first JSON file, determining that the modification of the first element in the third JSON file is different from or conflicting with the modification of the first element in the second JSON file.
6. A server, comprising:
the receiving module is used for receiving a modification message sent by the terminal equipment for modifying a first element in a service flow to be modified;
the processing module is used for searching a first JavaScript object numbered notation JSON file corresponding to the business process according to the modification message;
the sending module is used for sending the first JSON file of the service flow to be modified to the terminal equipment so that the terminal equipment modifies the first element in the service flow to obtain a second JSON file of the service flow;
the receiving module is further configured to receive an obtaining instruction sent by the terminal device and used for obtaining a third JSON file of the business process;
the sending module is further configured to send a third JSON file of the business process to the terminal device, so that the terminal device determines whether a first element in the third JSON file is consistent with the first element in the first JSON file;
the receiving module is further configured to receive a second JSON file of the business process sent by the terminal device when a first element in the third JSON file is consistent with the first element in the first JSON file, update a locally stored third JSON file corresponding to the business process to the second JSON file, and update the locally stored third JSON file corresponding to the business process to the second JSON file;
and if the first element in the third JSON file is inconsistent with the first element in the first JSON file, modifying the first element in the third JSON file and modifying the first element in the second JSON file in a difference way or a conflict way.
7. A terminal device, comprising: a receiver, a transmitter, a memory, a processor, and a computer program;
the memory stores computer-executable instructions;
the receiver, transmitter, and processor execute computer-executable instructions stored by the memory, causing the processor to perform the method of processing for a business process of any of claims 1 to 3.
8. A server, comprising: a receiver, a transmitter, a memory, a processor, and a computer program;
the memory stores computer-executable instructions;
the processor executing the computer-executable instructions stored by the memory causes the processor to perform the method of processing a business process of claim 4.
9. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which when executed by a processor, implement the business process processing method of any one of claims 1 to 3.
10. A computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement the business process processing method of claim 4.
CN201811210817.6A 2018-10-17 2018-10-17 Business process processing method, device and storage medium Active CN109447582B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811210817.6A CN109447582B (en) 2018-10-17 2018-10-17 Business process processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811210817.6A CN109447582B (en) 2018-10-17 2018-10-17 Business process processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN109447582A CN109447582A (en) 2019-03-08
CN109447582B true CN109447582B (en) 2020-12-22

Family

ID=65547281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811210817.6A Active CN109447582B (en) 2018-10-17 2018-10-17 Business process processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN109447582B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110210824B (en) * 2019-05-23 2021-11-09 贝壳技术有限公司 Business process change processing method and device
CN113780778A (en) * 2021-08-30 2021-12-10 北京沃东天骏信息技术有限公司 Information processing method and device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8712858B2 (en) * 2004-08-21 2014-04-29 Directworks, Inc. Supplier capability methods, systems, and apparatuses for extended commerce
CN104503864A (en) * 2014-11-20 2015-04-08 北京世纪高蓝科技有限公司 Method and device for file backup based on local area network
CN107818143B (en) * 2017-10-16 2021-12-17 中国银联股份有限公司 Page configuration and generation method and device

Also Published As

Publication number Publication date
CN109447582A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
US10394939B2 (en) Resolving outdated items within curated content
CN105359140A (en) Variable search query vertical access
US20220121438A1 (en) Low latency dynamic content management
CN109447582B (en) Business process processing method, device and storage medium
CN112686519A (en) Gray scale adjusting method and device, electronic equipment and storage medium
CN110597511A (en) Page automatic generation method, system, terminal equipment and storage medium
CN112559913B (en) Data processing method, device, computing equipment and readable storage medium
US20210263960A1 (en) Information processing device, information processing system, and non-transitory recording medium
US20170140009A1 (en) Caching linked queries for optimized compliance management
CN112445783A (en) Method, device and server for updating database
CN114611039B (en) Analysis method and device of asynchronous loading rule, storage medium and electronic equipment
CN107526759A (en) Message processing device and information processing method
CN107330126B (en) Method and apparatus for outputting information
CN110543457A (en) Track type document processing method and device, storage medium and electronic device
CN113360127B (en) Audio playing method and electronic equipment
CN113301203B (en) Method and device for updating historical information data based on address book
CN109271564A (en) Declaration form querying method and equipment
CN103812908A (en) Cloud file processing method and system
US20170161237A1 (en) Method for creating a hyperlink in a video-playing page and electronic device
KR101862178B1 (en) Method for customized posting and server implementing the same
CN110580200A (en) Data synchronization method and device
JP2021022199A (en) Classification method for terminal data, terminal, and program
WO2018214094A1 (en) Parser
US20090241134A1 (en) Remote storage service api
CN111339125B (en) Data query method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant